View Single Post
Old 01-16-2013, 08:10 PM   PM User | #8
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,738
Thanks: 4
Thanked 2,464 Times in 2,433 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
You sorta can use CSS, but they are hard properties in Java. You're better off using a LookAndFeel manager instead. Customizing the actual L&F is quite a bit of work in Java; its not simple like CSS and HTML is (but that's all HTML/CSS' job is, so I think that's a fair trade).
You can see some screenshots and download links for a few themes here: http://geeknizer.com/best-java-swing...casual-top-10/

Scrolling in Java gui is very simple. Simply add the scrollable content to a JScrollPane and add that panel to the frame instead of the large component. Without customizing a thing, the JScrollPane's job is to determine the viewport size you have and add scrollable content to it.
__________________
PHP Code:
header('HTTP/1.1 420 Enhance Your Calm'); 
Fou-Lu is offline   Reply With Quote