[calculinum~subversion:10] Fixed L&F so that the system L&F is used

  • From: joshis@kenai.com
  • To: commits@calculinum.kenai.com
  • Subject: [calculinum~subversion:10] Fixed L&F so that the system L&F is used
  • Date: Mon, 7 Dec 2009 04:43:04 +0000

Project:    calculinum
Repository: subversion
Revision:   10
Author:     joshis
Date:       2009-12-06 13:27:58 UTC
Link:       

Log Message:
------------
Fixed L&F so that the system L&F is used


Revisions:
----------
10


Modified Paths:
---------------
PreciseCalcUI/src/org/joshis/calc/ui/CalculatorUI.java


Diffs:
------
Index: PreciseCalcUI/src/org/joshis/calc/ui/CalculatorUI.java
===================================================================
--- PreciseCalcUI/src/org/joshis/calc/ui/CalculatorUI.java      (revision 9)
+++ PreciseCalcUI/src/org/joshis/calc/ui/CalculatorUI.java      (revision 10)
@@ -16,6 +16,8 @@
 import java.util.logging.Logger;
 import javax.swing.JButton;
 import javax.swing.SwingUtilities;
+import javax.swing.UIManager;
+import javax.swing.UnsupportedLookAndFeelException;
 import javax.swing.text.BadLocationException;
 import javax.swing.text.html.HTMLDocument;
 import javax.swing.text.html.HTMLEditorKit;
@@ -630,6 +632,19 @@
      * @param args the command line arguments
      */
     public static void main(String args[]) {
+        try {
+            // Set System L&F
+            
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
+        } catch (UnsupportedLookAndFeelException e) {
+            // handle exception
+        } catch (ClassNotFoundException e) {
+            // handle exception
+        } catch (InstantiationException e) {
+            // handle exception
+        } catch (IllegalAccessException e) {
+            // handle exception
+        }
+
         java.awt.EventQueue.invokeLater(new Runnable() {
 
             public void run() {





[calculinum~subversion:10] Fixed L&F so that the system L&F is used

joshis 12/07/2009
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close