tried this, but nothing happened:
setPreferredSize(new Dimension(img.getWidth, img.getHeight())); // when image is added to the jpanel
Tried calling repaint() too, nothing happened.
Thanks guys
This post has been edited by oha055: 28 August 2012 - 01:14 PM

New Topic/Question
Reply




MultiQuote





|