mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
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:
committed by
michael.will
parent
c767115f6a
commit
2538cd8a3b
@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user