Here you can find the source of setFrameBottomRight(final JFrame frame)
public static void setFrameBottomRight(final JFrame frame)
//package com.java2s; //License from project: LGPL import javax.swing.*; import java.awt.*; public class Main { public static void setFrameBottomRight(final JFrame frame) { GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice defaultScreen = ge.getDefaultScreenDevice(); Rectangle rect = defaultScreen.getDefaultConfiguration().getBounds(); int x = (int) rect.getMaxX() - frame.getWidth(); int y = (int) rect.getMaxY() - frame.getHeight(); frame.setLocation(x, y);//from ww w .java 2 s . c o m } }