Reflections on Tech. Life
Thursday, August 28, 2003
 
Here was a link that helped me solve a big problem of how to change the background colour and other properties for a JOptionPane in Swing. Here it is for future reference: Pluggable look And Feel:
The code looked something like:

UIManager.put("OptionPane.background", new javax.swing.plaf.ColorUIResource(cBack));

UIManager.put("Panel.background", new javax.swing.plaf.ColorUIResource(cBack));

UIManager.put("Panel.background", new javax.swing.plaf.FontUIResource(fLabel));

 
Comments: Post a Comment
Observations about Technology by an Information Technology 20 yr Vet.

ARCHIVES
08/01/2003 - 09/01/2003 / 09/01/2003 - 10/01/2003 / 10/01/2003 - 11/01/2003 / 11/01/2003 - 12/01/2003 / 12/01/2003 - 01/01/2004 / 01/01/2004 - 02/01/2004 / 02/01/2004 - 03/01/2004 / 05/01/2004 - 06/01/2004 / 09/01/2004 - 10/01/2004 / 10/01/2004 - 11/01/2004 / 11/01/2004 - 12/01/2004 / 12/01/2004 - 01/01/2005 / 02/01/2005 - 03/01/2005 / 06/01/2005 - 07/01/2005 / 07/01/2005 - 08/01/2005 / 08/01/2005 - 09/01/2005 / 09/01/2005 - 10/01/2005 / 10/01/2005 - 11/01/2005 / 11/01/2005 - 12/01/2005 / 12/01/2005 - 01/01/2006 / 03/01/2006 - 04/01/2006 / 04/01/2006 - 05/01/2006 / 06/01/2006 - 07/01/2006 / 08/01/2006 - 09/01/2006 / 01/01/2007 - 02/01/2007 /


Powered by Blogger