Revision: 200
http://openpcl.svn.sourceforge.net/openpcl/?rev=200&view=rev
Author: documentsystems
Date: 2007-12-04 21:30:13 -0800 (Tue, 04 Dec 2007)
Log Message:
-----------
Howard Hoagland. Made the app startup in Windows XP mode when running from an applet, but if running on a Macintosh then let it default to the Macintosh look and feel.
Modified Paths:
--------------
openpcl/src/com/openpcl/viewer/util/PosPickAppLook.java
Modified: openpcl/src/com/openpcl/viewer/util/PosPickAppLook.java
===================================================================
--- openpcl/src/com/openpcl/viewer/util/PosPickAppLook.java 2007-12-05 05:29:14 UTC (rev 199)
+++ openpcl/src/com/openpcl/viewer/util/PosPickAppLook.java 2007-12-05 05:30:13 UTC (rev 200)
@@ -14,7 +14,7 @@
/**
* Choices for the user to change the LookAndFeel at run time while using the UI
- * @author howard 9/14/06
+ * @author DocMagic, Document Systems Inc, Howard Hoagland 9/14/06
*/
public class PosPickAppLook {
OpenPCLViewer mOpenPCLViewer = null;
@@ -63,8 +63,11 @@
if (mOpenPCLViewer.getPosStartupOptions().getChangeLook()) {
try {
if ( !(OpenPCLViewer.sIsRunningOnMacintosh) /* If Macintosh then let it default to its native Look and Feel */) {
- UIManager.setLookAndFeel(new MetalLookAndFeel());
- MetalLookAndFeel.setCurrentTheme(mOceanTheme);
+ // Set to the Windows XP look and feel
+ UIManager.setLookAndFeel(new com.sun.java.swing.plaf.windows.WindowsLookAndFeel());
+ // Uncomment the below two lines to get the Metal Ocean Theme look and feel
+ // UIManager.setLookAndFeel(new MetalLookAndFeel());
+ // MetalLookAndFeel.setCurrentTheme(mOceanTheme);
// Commented out. UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
} catch (UnsupportedLookAndFeelException e) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|