标签:style class blog code color get
dialog.pack(); dialog.setAlwaysOnTop(true); Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); Insets screenInsets = Toolkit.getDefaultToolkit().getScreenInsets( dialog.getGraphicsConfiguration()); int x = (int) (dim.getWidth() - dialog.getWidth() - 3); int y = (int) (dim.getHeight() - dialog.getHeight() - screenInsets.bottom - 3); dialog.setLocation(x, y); dialog.setVisible(true);
标签:style class blog code color get
原文地址:http://www.cnblogs.com/sosomaxba/p/3785941.html