import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JRootPane;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.plaf.ColorUIResource;
import javax.swing.plaf.metal.DefaultMetalTheme;
import javax.swing.plaf.metal.MetalLookAndFeel;
public class Main {
public static void main_helper(String args[]) {
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
f.setSize(300, 300);
f.setUndecorated(true);
f.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
JPanel panel = new JPanel();
panel.setBackground(java.awt.Color.white);
f.setContentPane(panel);
MetalLookAndFeel.setCurrentTheme(new MyDefaultMetalTheme());
try {
UIManager.setLookAndFeel(new MetalLookAndFeel());
} catch (Exception e) {
e.printStackTrace();
}
SwingUtilities.updateComponentTreeUI(f);
f.setVisible(true);