JFrame添加组件的两种方式 对JFrame添加组件有两种方式:1) 用getContentPane()方法获得JFrame的内容面板,再对其加入组件:frame.getContentPane().add(childCompont … 继续阅读 JFrame添加组件的两种方式