Re: A fixed size window in Java




I have tried that but now I have the same problem. The objets are not shown correctly. I have a Panel with some JLables layed out with GridBagLayout. When some labels are deleted and I want to be redisplayed that area using validate(), then the old labels are not removed (the actual JLabel are removed, but their graphics are not).



The problem is that the window is not repainted. I have minimized and maximized it and the display area has been repainted ok. But calling repaint() after validate() doesn't work.

How do you think I can fix that?

Thanks!!!

.



Relevant Pages

  • Re: Labels not displaying properly...help!?
    ... revalidate() or invalidate() and validate ... > private String currentTemp; ... > repaint(); ...
    (comp.lang.java.programmer)
  • Re: JFrame help please?
    ... I rerun the setContentPane method with a different JPanel ... and do the validate and repaint but nothing happens. ...
    (comp.lang.java.programmer)
  • RE: Slow painting, flickering on complex forms
    ... I've got 200 labels on a form, and the repaint when the app ... > actually see each label paint its background first white, ...
    (microsoft.public.dotnet.framework.windowsforms)
  • JFrame help please?
    ... I rerun the setContentPane method with a different JPanel ... and do the validate and repaint but nothing happens. ...
    (comp.lang.java.programmer)
  • Re: JFrame help please?
    ... I rerun the setContentPane method with a different JPanel ... and do the validate and repaint but nothing happens. ...
    (comp.lang.java.programmer)