Solved

Catching window expose event

Posted on 1997-12-30
1
191 Views
Last Modified: 2008-02-07
When I move another windowA over windowB, things I draw on
WindowB will get erased.  How can I catch the "expose" event
on Window B so that I can redraw WindowB ?  Does it tell me
which part of WindowB are being exposed so I only redraw
that part ?
0
Comment
Question by:hori
1 Comment
 
LVL 4

Accepted Solution

by:
russgold earned 100 total points
ID: 1231888
Unfortunately not.  It simply calls your paint() method whenever it wants to refresh any part of the component - and doesn't pass the visible area.  If you have a lot of computations, move them out of your paint method.  If you are using a lot of graphics overlaying each other, use an offscreen bitmap to minimize the redraw overhead.  Currently, that is the best you can do in Java.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
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…
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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

708 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

15 Experts available now in Live!

Get 1:1 Help Now