Ive programmed an app that basicly consists of a frame that contains a label. This label contains some icons. The problem Im having is, that the label (on purpose) is bigger than the frame so that the frame only displays a selected part of the label. When I start the app everything appears fine, but as soon as I reposition the label via ActionListener so that the frame now displays an area that wasnt displayed before the frame only displays the part that was painted when the app was started and the rest of the frame appears blank. As soon as I resize the frame, the painted area becomes larger but downsizing makes the newpainted area disappear again.
Ive so far tried every possibility of revalidate, repaint, pack, invalidate, setSize that I could imagine. I have also tried putting the label in a panel that didnt help either. I have also tried changing the layoutmanager to null but as every other thing I have tried that didnt help.
So basicly I want to know how I can force the frame to draw the entire label? (So that as soon as I reposition the label, it doesnt show me a blank space but the icons that are actually at that position.)
I hope I have made my self clear and I apologise for any bad english. Its not my first language. I have attached som picture to illustrate the problem: