Author |
Message |
raptors892004
|
Posted: Sat Dec 30, 2006 2:13 pm Post subject: jbutton border |
|
|
Is there any way to change the color of/put in a border for a JButton? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
raptors892004
|
Posted: Sat Dec 30, 2006 2:31 pm Post subject: (No subject) |
|
|
I found how to set a border but now how do I reset it back to the JButton default one? |
|
|
|
|
|
ericfourfour
|
Posted: Sat Dec 30, 2006 2:39 pm Post subject: (No subject) |
|
|
Try setBorder (null). I don't know if it works but it might. |
|
|
|
|
|
raptors892004
|
Posted: Sat Dec 30, 2006 3:10 pm Post subject: (No subject) |
|
|
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 |
|
|
|
|
|
|