试试这个,System.getproperties(keyname)

解决方案 »

  1.   

    Properties p = System.getProperties();
    Enumeration e = p.propertyNames();
    while (e.hasMoreElements()) {
    String ele = (String)e.nextElement();
    System.out.print(ele + "=====");
    System.out.println(p.getProperty(ele));
    }
      

  2.   

    找到了~~import java.awt.*;public class screenSize
    {
    public static void main(String[] args)
    {
    Toolkit tk = Toolkit.getDefaultToolkit();
    Dimension screen = tk.getScreenSize();

    System.out.println("Height = " + screen.getHeight()
    + " Width = " + screen.getWidth());
    }
    }谢谢大家~~