From 08d50c49d9e9b23646805a99a0df7d1e4744122a Mon Sep 17 00:00:00 2001 From: Hammy Date: Sun, 18 Jul 2021 06:23:27 +0100 Subject: [PATCH] Add Main class to start application through JFrames --- src/main/java/me/goudham/Main.java | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/main/java/me/goudham/Main.java diff --git a/src/main/java/me/goudham/Main.java b/src/main/java/me/goudham/Main.java new file mode 100644 index 0000000..f067f45 --- /dev/null +++ b/src/main/java/me/goudham/Main.java @@ -0,0 +1,27 @@ +package me.goudham; + +import me.goudham.view.ClipboardView; + +import javax.swing.JFrame; +import java.awt.Color; +import java.awt.Dimension; + +/** + * Hello world! + * + */ +public class Main { + public static void main( String[] args ) { + JFrame jFrame = new JFrame(); + jFrame.setTitle("My Clipboard History"); + jFrame.setVisible(true); + jFrame.setContentPane(new ClipboardView().getClipboard()); + jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + jFrame.getContentPane().setBackground(new Color(1, 3, 25)); + jFrame.setPreferredSize(new Dimension(1000, 680)); + jFrame.setMaximumSize(new Dimension(1000, 680)); + jFrame.setResizable(false); + jFrame.pack(); + jFrame.setLocationRelativeTo(null); + } +}