Yeah, well I am currently trying to create a window with just [x]. I'm currently trying to create a 1x1 undecorated JFrame and create a JDialog which is a child of the JFrame and send all windowActivated/Deactivated events to the JFrame instead. Currently its not working.
public class Dummy extends JFrame {
private GameWindow window;
public Dummy() {
setUndecorated(true);
setSize(1, 1);
setVisible(true);
window = new GameWindow();
window.setVisible(true);
this.addWindowListener(new DummyWindowListener(window));
}
}
public class GameWindow extends JDialog {
}
Did that because JDialogs only have a close button. DummyWindowListener is just a listener which redirects all events to the JDialog instead.