Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 jbutton border
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
raptors892004




PostPosted: 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
Sponsor
sponsor
raptors892004




PostPosted: 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




PostPosted: 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




PostPosted: 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 Smile
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: