Solved

Need to reliably repaint a container and its components

Posted on 2002-04-02
2
196 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
ID: 6912567
Call containers invalidate() method.
0
 
LVL 3

Expert Comment

by:msterjev
ID: 6912578
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
numbers ascending pyramid 101 191
how do i compare an object based on two fields 6 53
javap not working 8 44
Convert from a json string array to a Java object 3 28
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

786 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