JPanel() 里不可以设置大小 JPanel() JPanel(boolean isDoubleBuffered) JPanel(LayoutManager layout) JPanel(LayoutManager layout, boolean isDoubleBuffered) 只有这四种 这是java的chm介绍的具体在这 Constructor Summary JPanel() Creates a new JPanel with a double buffer and a flow layout. JPanel(boolean isDoubleBuffered) Creates a new JPanel with FlowLayout and the specified buffering strategy. JPanel(LayoutManager layout) Create a new buffered JPanel with the specified layout manager JPanel(LayoutManager layout, boolean isDoubleBuffered) Creates a new JPanel with the specified layout manager and buffering strategy. 你看看哪
JPanel() 里不可以设置大小 JPanel() JPanel(boolean isDoubleBuffered) JPanel(LayoutManager layout) JPanel(LayoutManager layout, boolean isDoubleBuffered) 具体在这 Constructor Summary JPanel() Creates a new JPanel with a double buffer and a flow layout. JPanel(boolean isDoubleBuffered) Creates a new JPanel with FlowLayout and the specified buffering strategy. JPanel(LayoutManager layout) Create a new buffered JPanel with the specified layout manager JPanel(LayoutManager layout, boolean isDoubleBuffered) Creates a new JPanel with the specified layout manager and buffering strategy.
里不可以设置大小
JPanel()
JPanel(boolean isDoubleBuffered)
JPanel(LayoutManager layout)
JPanel(LayoutManager layout, boolean isDoubleBuffered)
只有这四种
这是java的chm介绍的具体在这
Constructor Summary
JPanel()
Creates a new JPanel with a double buffer and a flow layout.
JPanel(boolean isDoubleBuffered)
Creates a new JPanel with FlowLayout and the specified buffering strategy.
JPanel(LayoutManager layout)
Create a new buffered JPanel with the specified layout manager
JPanel(LayoutManager layout, boolean isDoubleBuffered)
Creates a new JPanel with the specified layout manager and buffering strategy.
你看看哪
c.setLayout(new GridLayout(1,2));
c.add(panel1);
你当然要用布局了。
另外,如果不用jb之类的集成开发环境,你根本做不出好的界面。你想想没有vc能写windows程序吗?不要自己难为自己,既然做界面,就要用所见即所得的开发工具支持。
------------------------
反对!
初学还是使用jdk或者j creator好
jb不适合初学!
另:记事本也能作出很精彩的布局!
里不可以设置大小
JPanel()
JPanel(boolean isDoubleBuffered)
JPanel(LayoutManager layout)
JPanel(LayoutManager layout, boolean isDoubleBuffered) 具体在这
Constructor Summary
JPanel()
Creates a new JPanel with a double buffer and a flow layout.
JPanel(boolean isDoubleBuffered)
Creates a new JPanel with FlowLayout and the specified buffering strategy.
JPanel(LayoutManager layout)
Create a new buffered JPanel with the specified layout manager
JPanel(LayoutManager layout, boolean isDoubleBuffered)
Creates a new JPanel with the specified layout manager and buffering strategy.