现在的位置: 首页 > 综合 > 正文

Create Swing Image Button

2013年11月01日 ⁄ 综合 ⁄ 共 356字 ⁄ 字号 评论关闭

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.

抱歉!评论已关闭.