Improved code readability
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Wed, 21 Jun 2023 21:19:36 +0000 (00:19 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Wed, 21 Jun 2023 21:19:36 +0000 (00:19 +0300)
src/main/java/eu/svjatoslav/sixth/e3d/examples/launcher/Main.java

index f972085..0d15f43 100755 (executable)
@@ -9,6 +9,9 @@ package eu.svjatoslav.sixth.e3d.examples.launcher;
 import javax.swing.*;
 import java.awt.*;
 
+import static java.awt.BorderLayout.CENTER;
+import static javax.swing.WindowConstants.DISPOSE_ON_CLOSE;
+
 
 class Main {
 
@@ -23,10 +26,10 @@ class Main {
         JFrame frame = new JFrame("Sixth 3D engine demos");
 
         // Keep application running until last frame is closed.
-        frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
+        frame.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
 
         frame.getContentPane().setLayout(new BorderLayout());
-        frame.getContentPane().add(new ApplicationListPanel(), BorderLayout.CENTER);
+        frame.getContentPane().add(new ApplicationListPanel(), CENTER);
         frame.setSize(400, 300);
 
         frame.setLocationRelativeTo(null); // center frame on screen