decorated for JFrame and JDialog

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@11728 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Michael Will
2010-06-22 07:40:17 +00:00
committed by michael.will
parent c767115f6a
commit 2538cd8a3b

View File

@ -29,6 +29,7 @@ import java.io.IOException;
import java.util.Locale;
import javax.swing.BorderFactory;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.SwingUtilities;
@ -170,6 +171,10 @@ public final class Spark {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
if (Spark.isWindows()) {
JFrame.setDefaultLookAndFeelDecorated(true);
JDialog.setDefaultLookAndFeelDecorated(true);
}
UIManager.setLookAndFeel(new SubstanceBusinessBlueSteelLookAndFeel());
}
catch (UnsupportedLookAndFeelException e) {
@ -194,11 +199,11 @@ public final class Spark {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
UIManager.setLookAndFeel(new SubstanceBusinessBlueSteelLookAndFeel());
}
catch (UnsupportedLookAndFeelException e) {
e.printStackTrace();
}
UIManager.setLookAndFeel(new SubstanceBusinessBlueSteelLookAndFeel());
}
catch (UnsupportedLookAndFeelException e) {
e.printStackTrace();
}
}
});