Solved

Need to reliably repaint a container and its components

Posted on 2002-04-02
2
198 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
login jsp example 24 85
jboss wildfly 10.1 10 436
Detect Closed Loops (circles, figure-8s, etc) in PNG Images 6 77
How to fix  socket closed error 11 29
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.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

733 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