Solved

Catching window expose event

Posted on 1997-12-30
1
218 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
[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
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

732 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