JWindow类与JFrame类类似。他使用JRootPane用于组件管理并且实现了RootPaneContainer接口。他是一个无装饰的顶层窗口。
8.3.1 创建JWindowJWindow类有五个构造函数:
public JWindow() JWindow window = new JWindow(); public JWindow(Frame owner) JWindow window = new JWindow(aFrame); public JWindow(GraphicsConfiguration config) GraphicsConfiguration gc = ...; JWindow window = new JWindow(gc); public JWindow(Window owner) JWindow window = new JWindow(anotherWindow); public JWindow(Window owner, GraphicsConfiguration config) GraphicsConfiguration gc = ...; JWindow window = new JWindow(anotherWindow, gc);
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)