摘要:
public class JButtonTest extends JFrame{ public JButtonTest() { // TODO Auto-generated constructor stub Icon icon = new ImageIcon("src/huasacm.png"); setLayout(new GridLay... 阅读全文
摘要:
public class JscrollPaneTest extends JFrame{ public JscrollPaneTest() { // TODO Auto-generated constructor stu Container c = getContentPane(); JTextArea ta = new JTextAre... 阅读全文
摘要:
public class JPanelTest extends JFrame{ public JPanelTest() { // TODO Auto-generated constructor stub Container c = getContentPane(); setLayout(new GridLayout(2,2,10,10)); JP... 阅读全文
摘要:
public class GridLayoutPsoition extends JFrame{ public GridLayoutPsoition() { // TODO Auto-generated constructor stub Container c = getContentPane(); setLayout(new GridLayout(7,3,... 阅读全文
摘要:
public class Borderlayout extends JFrame{ public Borderlayout() { // TODO Auto-generated constructor stub String[] border = {BorderLayout.CENTER,BorderLayout.NORTH,BorderLayout.SO... 阅读全文
摘要:
public class FlowLayoutPosition extends JFrame{ public FlowLayoutPosition() { // TODO Auto-generated constructor stub setTitle("本窗口使用流布局管理器"); Container c = getContentPane(); ... 阅读全文
摘要:
public class AbsolutePosition extends JFrame{ public AbsolutePosition() { // TODO Auto-generated constructor stub setTitle("本窗口使用绝对布局"); setLayout(null); setBounds(0,0,200,15... 阅读全文