OSDN Git Service

made Main class
authorhizumiaoba <56146205+hizumiaoba@users.noreply.github.com>
Sun, 27 Jun 2021 02:47:33 +0000 (11:47 +0900)
committerhizumiaoba <56146205+hizumiaoba@users.noreply.github.com>
Sun, 27 Jun 2021 02:47:33 +0000 (11:47 +0900)
src/com/ranfa/main/DelesteRandomSelector.java [new file with mode: 0644]

diff --git a/src/com/ranfa/main/DelesteRandomSelector.java b/src/com/ranfa/main/DelesteRandomSelector.java
new file mode 100644 (file)
index 0000000..f9ac19f
--- /dev/null
@@ -0,0 +1,42 @@
+package com.ranfa.main;
+
+import java.awt.BorderLayout;
+import java.awt.EventQueue;
+
+import javax.swing.JFrame;
+import javax.swing.JPanel;
+import javax.swing.border.EmptyBorder;
+
+public class DelesteRandomSelector extends JFrame {
+
+       private JPanel contentPane;
+
+       /**
+        * Launch the application.
+        */
+       public static void main(String[] args) {
+               EventQueue.invokeLater(new Runnable() {
+                       public void run() {
+                               try {
+                                       DelesteRandomSelector frame = new DelesteRandomSelector();
+                                       frame.setVisible(true);
+                               } catch (Exception e) {
+                                       e.printStackTrace();
+                               }
+                       }
+               });
+       }
+
+       /**
+        * Create the frame.
+        */
+       public DelesteRandomSelector() {
+               setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+               setBounds(100, 100, 450, 300);
+               contentPane = new JPanel();
+               contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
+               contentPane.setLayout(new BorderLayout(0, 0));
+               setContentPane(contentPane);
+       }
+
+}