I'm trying open a JDialog in current screen using dual screens. However, the dialog always open in main screen.
To get the screens I'm using this code:
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[] screens = ge.getScreenDevices();
I need to know which monitor I'm running the application, and force the dialog to open in current screen.