The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Swing and CSS
Subject:  Re: What about UIDefaults?
Date:  2003-10-15 05:38:05
From:  joshy
Response to: What about UIDefaults?


I designed it this way because it can do more than just set defaults by class. What if you would like to set defaults by location in the component tree, or by the getName property? It also lets us introduce new behaviors that are supported by default, like adding a sound to button presses or pulling in images. And most importantly we can do this without the knowledge of the existing program.

I also wanted to do it in a way that was similar to CSS, since many people already understand how that works.

 Feed java.net RSS Feeds