mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 06:57:13 -06:00
Demo: missing SwingUtilities.invokeLater() added
This commit is contained in:
@@ -26,8 +26,10 @@ public class FlatChooserTest
|
||||
extends JPanel
|
||||
{
|
||||
public static void main( String[] args ) {
|
||||
FlatTestFrame frame = FlatTestFrame.create( args, "FlatChooserTest" );
|
||||
frame.showFrame( new FlatChooserTest() );
|
||||
SwingUtilities.invokeLater( () -> {
|
||||
FlatTestFrame frame = FlatTestFrame.create( args, "FlatChooserTest" );
|
||||
frame.showFrame( new FlatChooserTest() );
|
||||
} );
|
||||
}
|
||||
|
||||
FlatChooserTest() {
|
||||
|
||||
@@ -27,8 +27,10 @@ public class FlatComponents2Test
|
||||
extends JPanel
|
||||
{
|
||||
public static void main( String[] args ) {
|
||||
FlatTestFrame frame = FlatTestFrame.create( args, "FlatComponents2Test" );
|
||||
frame.showFrame( new FlatComponents2Test() );
|
||||
SwingUtilities.invokeLater( () -> {
|
||||
FlatTestFrame frame = FlatTestFrame.create( args, "FlatComponents2Test" );
|
||||
frame.showFrame( new FlatComponents2Test() );
|
||||
} );
|
||||
}
|
||||
|
||||
FlatComponents2Test() {
|
||||
|
||||
@@ -28,8 +28,10 @@ public class FlatComponentsTest
|
||||
extends JPanel
|
||||
{
|
||||
public static void main( String[] args ) {
|
||||
FlatTestFrame frame = FlatTestFrame.create( args, "FlatComponentsTest" );
|
||||
frame.showFrame( new FlatComponentsTest() );
|
||||
SwingUtilities.invokeLater( () -> {
|
||||
FlatTestFrame frame = FlatTestFrame.create( args, "FlatComponentsTest" );
|
||||
frame.showFrame( new FlatComponentsTest() );
|
||||
} );
|
||||
}
|
||||
|
||||
FlatComponentsTest() {
|
||||
|
||||
@@ -17,8 +17,10 @@ public class FlatContainerTest
|
||||
extends JPanel
|
||||
{
|
||||
public static void main( String[] args ) {
|
||||
FlatTestFrame frame = FlatTestFrame.create( args, "FlatContainerTest" );
|
||||
frame.showFrame( new FlatContainerTest() );
|
||||
SwingUtilities.invokeLater( () -> {
|
||||
FlatTestFrame frame = FlatTestFrame.create( args, "FlatContainerTest" );
|
||||
frame.showFrame( new FlatContainerTest() );
|
||||
} );
|
||||
}
|
||||
|
||||
public FlatContainerTest() {
|
||||
|
||||
@@ -29,8 +29,10 @@ public class FlatMenusTest
|
||||
extends JPanel
|
||||
{
|
||||
public static void main( String[] args ) {
|
||||
FlatTestFrame frame = FlatTestFrame.create( args, "FlatMenusTest" );
|
||||
frame.showFrame( new FlatMenusTest() );
|
||||
SwingUtilities.invokeLater( () -> {
|
||||
FlatTestFrame frame = FlatTestFrame.create( args, "FlatMenusTest" );
|
||||
frame.showFrame( new FlatMenusTest() );
|
||||
} );
|
||||
}
|
||||
|
||||
FlatMenusTest() {
|
||||
|
||||
@@ -30,8 +30,10 @@ public class FlatOptionPaneTest
|
||||
extends JPanel
|
||||
{
|
||||
public static void main( String[] args ) {
|
||||
FlatTestFrame frame = FlatTestFrame.create( args, "FlatOptionPaneTest" );
|
||||
frame.showFrame( new FlatOptionPaneTest() );
|
||||
SwingUtilities.invokeLater( () -> {
|
||||
FlatTestFrame frame = FlatTestFrame.create( args, "FlatOptionPaneTest" );
|
||||
frame.showFrame( new FlatOptionPaneTest() );
|
||||
} );
|
||||
}
|
||||
|
||||
FlatOptionPaneTest() {
|
||||
|
||||
Reference in New Issue
Block a user