swing repainting issue

  • Thread starter Dave Programmer
  • Start date
D

Dave Programmer

Hi,
I've recently resurrected a very old swing-based project I started a
long time ago (JDK 1.1). To catch up with the times, I'm tryng to
migrate to JDK 1.5. The main application GUI is capable of launching
other GUIs (for setting preferences, etc). The issue I'm seeing is
that, when the launched JFrame is placed partially or totally over the
JFrame from which it was launched (or vice versa) and then moved out of
the way so that both JFrames are visible, the subcomponents of the
formally covered JFrame are no longer visible (in their spot is a blank
piece of canvas with the color of getContentPane().getBackground().
This didn't happen in JDK 1.1, but of course there have been numerous
changes since then. I'm at a bit of a loss as to where to start trying
to debug this issue.

Can anyone give me some guidance?

Thanks!
 
T

Thomas Weidenfeller

Dave said:
The issue I'm seeing is
that, when the launched JFrame is placed partially or totally over the
JFrame from which it was launched (or vice versa) and then moved out of
the way so that both JFrames are visible, the subcomponents of the
formally covered JFrame are no longer visible (in their spot is a blank
piece of canvas with the color of getContentPane().getBackground().

You somehow managed to break the repainting mechanism. Show us real
(small, complete, compiles, and runs) code demonstrating the problem.

/Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top