Is this your first time here? SwingWiki is a Java Swing Developer community site with an big archive of Swing-related usenet groups and mailing lists, but also tips, tricks and articles and book reviews written by your colleagues from around the world. If you came here through a search engine and did not find what you were looking for, make sure to check the wiki table of contents.

Swing painting model

Contrary to most university text-books on Java I have seen, and even most Java GUI books, most components in the Swing library do not render directly from the paint method, but delegate that work to an utility ComponentUI object (can be set using the setUI() method). If you want to modify a way that the component displays on the screen, you should first try to subclass the UI object. See column spanning for an example.

External links

 

Comments? Corrections? Contact us or Login to edit pages directly (registration is free and takes less than displaying a JLabel)
  other/swing_painting_model.txt · Last modified: 2005/02/21 04:39 by 195.137.75.14 (gojko)
 
Recent changes | RSS changes | Table of contents | News Archive | Terms And Conditions | Register | The Quest For Software++| Ruby Resources
FitNesse Resources