Swing tips

From Swing Hacks Joshua Marinacci & Chris Adamson

Enable dynamic window resize repainting and check if supported
Toolkit.getDefaultToolkit().setDynamicLayout(true);
Toolkit.getDefaultToolkit().isDynamicLayoutActive();

Ubuntu with Compiz Fusion isn't supporting dynamic JFrame resizing by default, maybe there is a switch for it.

Customizing JTable


Variable Height JTable Column Renderer



Custom JTable Header Renderer


Borders and Insets:

In a Swing application, you should not set the insets property directly. Instead, just create an EmptyBorder object, and then set its border property to display whatever amount of white space you want your component to have.


JXLayer - glass panes on component level, solves lots of problems

Patochkins (SP) Java Swing articles - Greg Kedge

Nimbus Swing

Comments

Popular posts from this blog

Sites, Newsletters, and Blogs

Oracle JDBC ReadTimeout QueryTimeout

Locks held on Oracle for hours after sessions abnormally terminated by node failure