Ho bisogno di posizionare JFrame sul mio schermo. Ma non posso farli apparire sul lato destro dello schermo in basso.Position on Screen Right Bottom
Per favore qualcuno può spiegarmi come posizionarli, se è possibile descrivere come farlo, sarebbe fantastico.
Ecco il codice fino ad ora.
//Gets the screen size and positions the frame left bottom of the screen
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice defaultScreen = ge.getDefaultScreenDevice();
Rectangle rect = defaultScreen.getDefaultConfiguration().getBounds();
int x = (int)rect.getMinX();
int y = (int)rect.getMaxY()- frame.getHeight();
frame.setLocation(x ,y - 45);
Alcune piattaforme limitano questo, come accennato [qui] (http://stackoverflow.com/a/2188981/230513). – trashgod