mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-08 06:50:56 +03:00
Demo: exit even if UI defaults inspector window is shown
This commit is contained in:
@@ -69,6 +69,13 @@ class DemoFrame
|
||||
} );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
super.dispose();
|
||||
|
||||
System.exit( 0 );
|
||||
}
|
||||
|
||||
private void showHints() {
|
||||
Hint fontMenuHint = new Hint(
|
||||
"Use 'Font' menu to increase/decrease font size or try different fonts.",
|
||||
@@ -109,7 +116,7 @@ class DemoFrame
|
||||
}
|
||||
|
||||
private void exitActionPerformed() {
|
||||
System.exit( 0 );
|
||||
dispose();
|
||||
}
|
||||
|
||||
private void aboutActionPerformed() {
|
||||
@@ -337,7 +344,7 @@ class DemoFrame
|
||||
|
||||
//======== this ========
|
||||
setTitle("FlatLaf Demo");
|
||||
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
|
||||
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
|
||||
Container contentPane = getContentPane();
|
||||
contentPane.setLayout(new BorderLayout());
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ new FormModel {
|
||||
add( new FormWindow( "javax.swing.JFrame", new FormLayoutManager( class java.awt.BorderLayout ) ) {
|
||||
name: "this"
|
||||
"title": "FlatLaf Demo"
|
||||
"defaultCloseOperation": 3
|
||||
"defaultCloseOperation": 2
|
||||
"$locationPolicy": 2
|
||||
"$sizePolicy": 2
|
||||
add( new FormContainer( "javax.swing.JToolBar", new FormLayoutManager( class javax.swing.JToolBar ) ) {
|
||||
|
||||
Reference in New Issue
Block a user