Home arrow static arrow Java Programming [Archive] - hwo to let JButton's shape is same as icon's shape
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - hwo to let JButton's shape is same as icon's shape
This topic has 1 reply on 1 page.

Posts:260
Registered: 4/8/04
hwo to let JButton's shape is same as icon's shape  
Aug 4, 2004 12:37 AM



 
thanks
 

Posts:14,142
Registered: 99-04-02
Re: hwo to let JButton's shape is same as icon's shape  
Aug 4, 2004 7:28 AM (reply 1 of 1)



 
well, it's all rectangles. but you can fake it by:
JButton b = new JButton(icon);b.setOpaque(false);b.setBorder(null);....

I think...
 
This topic has 1 reply on 1 page.