Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How do you change the look&feel of a JButton  RSS feed

 
Sam Zheng
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Under the java's look and feel, the JButton looks silly. It is just a small area with an etch boundary. How to change the look and feel of the JButton so that it really looks like a button, with the look of a "raised" appearance?
Thanks!
Sam
 
Bhagya Tangutur
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
one way of doing it is changing border and increase the Margin.
ig u want to change look and feel.u can use putClientProperty() method.
 
George McCain
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the default L&F is metal
you can change the L&F to something else like windows L&F
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!