Solved

Need to reliably repaint a container and its components

Posted on 2002-04-02
2
195 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mapAB Challlenge 35 128
Java passing arguments (type error) 2 48
Java Timer (static) 9 36
servlet  URL Rewriting 1 28
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
The viewer will learn how to implement Singleton Design Pattern in Java.

864 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

23 Experts available now in Live!

Get 1:1 Help Now