How to create a seperate popup window?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to create a seperate popup window?

Schred
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!
 
Reply | Threaded
Open this post in threaded view
|

Re: How to create a seperate popup window?

gouessej
Administrator
Hello

Some of your requirements are parts of requests for enhancement and aren't supported right now, especially the 2 first ones.
Julien Gouesse | Personal blog | Website