Author: mes
Date: 2011-06-22 17:09:51 -0700 (Wed, 22 Jun 2011)
New Revision: 25884
Modified:
core3/work-swing-api/trunk/src/main/java/org/cytoscape/work/swing/AbstractGUITunableInterceptor.java
Log:
forcing the tunable dialog to respect the look and feel
Modified:
core3/work-swing-api/trunk/src/main/java/org/cytoscape/work/swing/AbstractGUITunableInterceptor.java
===================================================================
---
core3/work-swing-api/trunk/src/main/java/org/cytoscape/work/swing/AbstractGUITunableInterceptor.java
2011-06-22 23:21:30 UTC (rev 25883)
+++
core3/work-swing-api/trunk/src/main/java/org/cytoscape/work/swing/AbstractGUITunableInterceptor.java
2011-06-23 00:09:51 UTC (rev 25884)
@@ -8,6 +8,8 @@
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
+import javax.swing.SwingUtilities;
+import javax.swing.UIManager;
import org.cytoscape.work.TunableHandlerFactory;
import org.cytoscape.work.TunableValidator;
@@ -133,6 +135,12 @@
tunnableDialog.setLocationRelativeTo(parent);
tunnableDialog.setTitle("Set Parameters");
+ try {
+
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
+ SwingUtilities.updateComponentTreeUI(tunnableDialog);
+ } catch (Exception e) { /* not really a problem if this fails
*/ }
+
+
tunnableDialog.addComponent(optionPanel);
tunnableDialog.setVisible(true);
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.