摘要:
public class JButtonTest extends JFrame{ public JButtonTest() { // TODO Auto-generated constructor stub Icon icon = new ImageIcon("src/huasacm.png"); setLayout(new GridLay... 阅读全文
posted @ 2019-03-22 14:26
小小超plus
阅读(291)
评论(0)
推荐(0)
摘要:
public class JscrollPaneTest extends JFrame{ public JscrollPaneTest() { // TODO Auto-generated constructor stu Container c = getContentPane(); JTextArea ta = new JTextAre... 阅读全文
posted @ 2019-03-22 14:08
小小超plus
阅读(648)
评论(0)
推荐(0)
摘要:
public class JPanelTest extends JFrame{ public JPanelTest() { // TODO Auto-generated constructor stub Container c = getContentPane(); setLayout(new GridLayout(2,2,10,10)); JP... 阅读全文
posted @ 2019-03-22 13:48
小小超plus
阅读(443)
评论(0)
推荐(0)
摘要:
public class GridLayoutPsoition extends JFrame{ public GridLayoutPsoition() { // TODO Auto-generated constructor stub Container c = getContentPane(); setLayout(new GridLayout(7,3,... 阅读全文
posted @ 2019-03-22 13:31
小小超plus
阅读(134)
评论(0)
推荐(0)
摘要:
public class Borderlayout extends JFrame{ public Borderlayout() { // TODO Auto-generated constructor stub String[] border = {BorderLayout.CENTER,BorderLayout.NORTH,BorderLayout.SO... 阅读全文
posted @ 2019-03-22 13:13
小小超plus
阅读(218)
评论(0)
推荐(0)
摘要:
public class FlowLayoutPosition extends JFrame{ public FlowLayoutPosition() { // TODO Auto-generated constructor stub setTitle("本窗口使用流布局管理器"); Container c = getContentPane(); ... 阅读全文
posted @ 2019-03-22 12:34
小小超plus
阅读(119)
评论(0)
推荐(0)
摘要:
public class AbsolutePosition extends JFrame{ public AbsolutePosition() { // TODO Auto-generated constructor stub setTitle("本窗口使用绝对布局"); setLayout(null); setBounds(0,0,200,15... 阅读全文
posted @ 2019-03-22 12:25
小小超plus
阅读(364)
评论(0)
推荐(0)

浙公网安备 33010602011771号