|
I am trying to create a popup window for my GUI system, and got the basics working. I just create a new GLWindow and add the following WindowListener to it, to keep it from losing focus:
public class PopupWindow extends GLWindow {
public PopupWindow() {
// This constructor isn't public, that's why I have to inherit from GLWindow
super(NewtFactory.createWindow(existingCapabilitiesIStoreSomewhereElse));
this.addWindowListener(new WindowListener() {
@Override
public void windowLostFocus(WindowEvent e) {
requestFocus();
}
//... other methods
});
setVisible(true);
}
}
As I said this works, but it isn't very pretty yet. Therefore, some questions:
Is it possible, to...
- hide the popup window from the taskbar?
- hide the maximize/minimize buttons or entirely disable the row of buttons at the top?
- stop mouse events from reaching the main (not popup) window?
- and have that blinking effect when the user tries to click on the unfocused main window?
I'm aware that's quite a lot of questions and am thankful for anyone who is willing to help me!
|