Demo: missing SwingUtilities.invokeLater() added

This commit is contained in:
Karl Tauber
2019-10-23 09:03:08 +02:00
parent 72e8ab70a3
commit 06766cb4db
8 changed files with 52 additions and 35 deletions

View File

@@ -31,9 +31,11 @@ public class FlatSwingXTest
extends JPanel
{
public static void main( String[] args ) {
FlatTestFrame frame = FlatTestFrame.create( args, "FlatSwingXTest" );
frame.useApplyComponentOrientation = true;
frame.showFrame( new FlatSwingXTest() );
SwingUtilities.invokeLater( () -> {
FlatTestFrame frame = FlatTestFrame.create( args, "FlatSwingXTest" );
frame.useApplyComponentOrientation = true;
frame.showFrame( new FlatSwingXTest() );
} );
}
FlatSwingXTest() {