mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 05:50:53 +03:00
UI defaults inspector: exclude window from being blocked by modal dialogs (issue #1048)
Some checks failed
CI / build (11) (push) Has been cancelled
CI / build-on (17, ) (push) Has been cancelled
CI / build-on (21, ) (push) Has been cancelled
CI / build-on (21, 25) (push) Has been cancelled
CI / build-on (8, ) (push) Has been cancelled
CI / snapshot (push) Has been cancelled
CI / release (push) Has been cancelled
Some checks failed
CI / build (11) (push) Has been cancelled
CI / build-on (17, ) (push) Has been cancelled
CI / build-on (21, ) (push) Has been cancelled
CI / build-on (21, 25) (push) Has been cancelled
CI / build-on (8, ) (push) Has been cancelled
CI / snapshot (push) Has been cancelled
CI / release (push) Has been cancelled
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
FlatLaf Change Log
|
FlatLaf Change Log
|
||||||
==================
|
==================
|
||||||
|
|
||||||
|
## 3.7-SNAPSHOT
|
||||||
|
|
||||||
|
- Extras: UI defaults inspector: Exclude inspector window from being blocked by
|
||||||
|
modal dialogs. (issue #1048)
|
||||||
|
|
||||||
|
|
||||||
## 3.6.2
|
## 3.6.2
|
||||||
|
|
||||||
#### New features and improvements
|
#### New features and improvements
|
||||||
|
|||||||
@@ -202,6 +202,7 @@ public class FlatUIDefaultsInspector
|
|||||||
JFrame frame = new JFrame();
|
JFrame frame = new JFrame();
|
||||||
frame.setTitle( "UI Defaults Inspector" );
|
frame.setTitle( "UI Defaults Inspector" );
|
||||||
frame.setDefaultCloseOperation( WindowConstants.DISPOSE_ON_CLOSE );
|
frame.setDefaultCloseOperation( WindowConstants.DISPOSE_ON_CLOSE );
|
||||||
|
frame.setModalExclusionType( Dialog.ModalExclusionType.TOOLKIT_EXCLUDE );
|
||||||
frame.addWindowListener( new WindowAdapter() {
|
frame.addWindowListener( new WindowAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void windowClosed( WindowEvent e ) {
|
public void windowClosed( WindowEvent e ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user