Posição na tela inferior direita
Preciso posicionar o JFrame na minha tela. Mas não consigo fazê-los aparecer no lado direito da parte inferior da tel
Por favor, alguém pode me explicar como posicioná-los, se você puder descrever como fazê-lo, seria ótim
Aqui está o código até agora.
//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);