화면에 JFrame을 배치해야합니다. 하지만 화면 하단의 오른쪽에 나타나게 할 수는 없습니다.화면에서의 위치 오른쪽 하단
누군가가 나를 어떻게 배치하는지 설명해 주실 수 있습니다. 수행 방법을 설명 할 수 있다면 좋을 것입니다.
여기까지 코드가 있습니다.
//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);
일부 플랫폼에서는 [여기] (http://stackoverflow.com/a/2188981/230513)에서 설명한대로이 제한을받습니다. – trashgod