Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-15-2013, 03:09 PM   PM User | #1
Farshad
New to the CF scene

 
Join Date: Sep 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Farshad is an unknown quantity at this point
Thumbs up How set JButton icon Relative to the JButton size???

Hi dears
I have a jbutton and i set a icon for this, but my icon size is bigger than my jbutton
now I how to set icon size Relative to the jbutton size?
this is my code ..

ImageIcon icon=new ImageIcon("myUrl");
jButtonCheckPersonID.setIcon(icon);
Farshad is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:44 AM.


Advertisement
Log in to turn off these ads.