Add Main class to start application through JFrames

osx
Hammy 3 years ago
parent 69dab1b3c0
commit 08d50c49d9

@ -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);
}
}
Loading…
Cancel
Save