摘要:
JButton btn=new JButton("TEST");btn.setForeground(Color.white);// 设置前景色(文字颜色)btn.setBackground(new Color(3,23,47));// 设置背景色注意上述颜色的使用。 阅读全文
posted @ 2014-05-06 17:25
逆火狂飙
阅读(722)
评论(0)
推荐(0)
摘要:
Swing的GUI组件如JButtin,JTextArea,JRadioButton,JComboBox等,可以使用requestFocus()方法来获得焦点。 阅读全文
posted @ 2014-05-06 17:22
逆火狂飙
阅读(659)
评论(0)
推荐(0)