Skip to content

Instantly share code, notes, and snippets.

@vladholubiev
Last active August 29, 2015 14:03
Show Gist options
  • Save vladholubiev/ccbd772426430081a867 to your computer and use it in GitHub Desktop.
Save vladholubiev/ccbd772426430081a867 to your computer and use it in GitHub Desktop.
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