How do I get the real usable resolution
问题 With Toolkit.getDefaultToolkit().getScreenSize() I get the screen size. But usually this isn't the available size I have for my own program, because on the mac there is a menubar on top and on the bottom an iconbar. Windows also has an iconbar. So how do I get the real available space? 回答1: From Java forum: UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); Rectangle bounds = ge