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);
Printable View
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);
This implied that you are setting the JButton's size, or the size of a container in its hierarchy, something that is rarely necessary in a correctly designed GUI.
To get better help sooner, post a SSCCE (Short, Self Contained, Correct (Compilable), Example) that demonstrates the problem. Use an image from the net that is easily accessible on this or any reputed site.
db