
-----------------------------------
raptors892004
Sat Dec 30, 2006 2:13 pm

jbutton border
-----------------------------------
Is there any way to change the color of/put in a border for a JButton?

-----------------------------------
raptors892004
Sat Dec 30, 2006 2:31 pm


-----------------------------------
I found how to set a border but now how do I reset it back to the JButton default one?

-----------------------------------
ericfourfour
Sat Dec 30, 2006 2:39 pm


-----------------------------------
Try setBorder (null). I don't know if it works but it might.

-----------------------------------
raptors892004
Sat Dec 30, 2006 3:10 pm


-----------------------------------
I tried setting it to null but then the problem is if I want to print out the border (toString() ) its a null pointer exception. Not that I would need to print it out but I tried using other borders like EmptyBorder. Thanks for the reply anyways :)
