Last active
August 29, 2015 14:03
-
-
Save vladholubiev/ccbd772426430081a867 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); | |
JFrame frame = new JFrame(); | |
frame.setContentPane(MainWindow); | |
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); | |
frame.setMinimumSize(new Dimension(640, 480)); | |
frame.setUndecorated(true); | |
frame.setOpaque(true); | |
frame.setBackground(new Color(0, 0, 0, 0)); | |
frame.setLocationRelativeTo(null); | |
frame.pack(); | |
frame.setVisible(true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment