Te dejo un ejemplo de como puedes hacerlo
Código PHP:
public class NewClass {
public void buildGUI()
{
JFrame.setDefaultLookAndFeelDecorated(true);
JFrame f = new JFrame();
f.getLayeredPane().remove(f.getLayeredPane().getComponent(1));
f.setSize(400,300);
f.setLocationRelativeTo(null);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setVisible(true);
}
public static void main(String[] args)
{
SwingUtilities.invokeLater(new Runnable(){
public void run(){
new NewClass().buildGUI();
}
});
}
}
salu2