Troubleshooting

   

Creating an Alternate PLAF

How do I create my own PLAF?

Creating your own PLAF is a significant task and not for the faint of heart. Don't even think about writing code until you have a solid understanding of Swing's PLAF architecture. You can obtain this understanding by "surfing " to the following Web page:

 http://manning.spindoczine.com/sbe/files/uts2/Chapter21html/Chapter21.htm 

When you arrive , you'll discover that this Web page contains the contents of Chapter 21 in an online book on Swing. The material being discussed is Swing's PLAF architecture. Not only is the PLAF architecture thoroughly examined, this Web page shows you the source code to an alternate PLAF.

You can learn more about how PLAF works by reading an overview of Swing architecture at the following Web page:

 http://java.sun.com/products/jfc/tsc/articles/architecture/index.html 

This is just one of many useful Swing Connection articles that discusses various aspects of Swing architecture. Enjoy!

Debugging Swing Components

How do I find out what is happening to a malfunctioning Swing component?

The JComponent class provides a setDebugGraphicsOptions method for activating (or deactivating ) debugging mode. In this mode, component information is either logged or displayed as a Swing program executes. You can also find out the state of Swing's debugging mode by calling JComponent 's getDebugGraphicsOptions method.

   


Special Edition Using Java 2 Standard Edition
Special Edition Using Java 2, Standard Edition (Special Edition Using...)
ISBN: 0789724685
EAN: 2147483647
Year: 1999
Pages: 353

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net