I want to change a portion of that Imageicon with another image "b.jpg".
Regards<br />P Jain
posted 12 years ago
Would it not be easier to create a third icon file c.jpg which is made from the a.jpg and b.jpg files and then apply that file to the JLabel ? I have never tried appling a GridBagLayout to JLabel but JLabel does inherit the setLayout method from java.awt.Container, so in theory it is possible.