Solved

Need to reliably repaint a container and its components

Posted on 2002-04-02
2
194 Views
Last Modified: 2010-03-31
Hi all,

I have a container with GridLayout. I add and remove components from it, but some small problems with painting occur. If I then resize the whole frame, the problem vanishes. I wonder how the resizement of the frame solves the problem, what method is called?

I even had bigger problems, the components I added didn't even show, until I called (after the addition) the .doLayout method on the container.

.repaint is quite useless! Any suggestions?
0
Comment
Question by:bisbeeper
  • 2
2 Comments
 
LVL 3

Accepted Solution

by:
msterjev earned 100 total points
Comment Utility
Call containers invalidate() method.
0
 
LVL 3

Expert Comment

by:msterjev
Comment Utility
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now