This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
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

"Style" for a Swing application...  RSS feed

 
Igor Romanov
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello folks!
What is the common solution for giving a common "style" to all controls in a application?
What I mean is like having all the JSplitPanes with empty borders, all the JButtons with the same gaps between text/button edge and so on...
Is the some right way to set such a defaults or I need to create own means - create fabrics, or extend original controls and setup in constructor code maybe?
regards...
 
Igor Romanov
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Igor
Take a look on UIDefaults class.
Consider reading this article, I did, it helps 8))
http://community.borland.com/article/0,1410,29991,00.html
regards!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!