仔细看一下它们的构造函数就明白的差不多了

解决方案 »

  1.   

    窗口、窗体、对话框
    -------------------------------------------------------
     属性                  窗口        窗体         对话框
    -------------------------------------------------------
    模态 否    否    否
    -------------------------------------------------------
    可调大小 否    是    是
    -------------------------------------------------------
    标题栏 否    是    是
    -------------------------------------------------------
    边框 否    是    是
    -------------------------------------------------------
    标题 否    是    是
    -------------------------------------------------------
    菜单栏 否    是    否
    -------------------------------------------------------
    焦点管理器 是    是    是
    -------------------------------------------------------
    警告字符串 是    是    是
    -------------------------------------------------------
    图标图像 否    是    否
    -------------------------------------------------------
    链接到一个窗体 是    否    是
    -------------------------------------------------------
    是/否指缺省的属性状态
      

  2.   

    Class Window
    java.lang.Object
      |
      +--java.awt.Component
            |
            +--java.awt.Container
                  |
                  +--java.awt.Window
    show
    public void show()Makes the Window visible. If the Window and/or its owner are not yet displayable, both are made displayable. The Window will be validated prior to being made visible. If the Window is already visible, this will bring the Window to the front.
    Class Component
    java.lang.Object
      |
      +--java.awt.ComponentsetVisible
    public void setVisible(boolean b)Shows or hides this component depending on the value of parameter b.