1、用到的JFrame类的对象frame的方法:
frame.setLayout();设置框架布局格式,有frame.setLayout(new GridLayout(5,1));为网格布局格式
frame.add();添加组件到窗体内
frame.setVisible();设置窗体是否可见
pColor.setBackground();设置面板的背景颜色
3、所用到的JLabel类对象的方法:(这里设是label是JLabel类的对象)
label.setText();设置标签里显示的内容
窗体页眉rgb颜色值怎么设置求高手给解答
1、用到的JFrame类的对象frame的方法:
frame.setLayout();设置框架布局格式,有frame.setLayout(new GridLayout(5,1));为网格布局格式
frame.add();添加组件到窗体内
frame.setVisible();设置窗体是否可见
pColor.setBackground();设置面板的背景颜色
3、所用到的JLabel类对象的方法:(这里设是label是JLabel类的对象)
label.setText();设置标签里显示的内容