原创  Create Swing Image Button 收藏

WE can put a image to the swing JButton  to create a icon button.

To make the button have better appearance. we can set the following variable to false;

JButtonObj.setBorderPainted(),

JButtonObj.setContentAreaFilled(),

JButtonObj.setFocusPainted().
 

The created button will not have border and background and focus state appearance.

发表于 @ 2009年05月19日 14:38:00 | 评论( loading... ) | 编辑| 举报| 收藏

旧一篇:进一步提升 Struts 2 对 Velocity 的支持力度 | 新一篇:The significance of the class search path

  • 发表评论
  • 评论内容:
  •  
Copyright © bryanliu1982
Powered by CSDN Blog