• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • Last Modified:

problem with applet getting covered up by another screen

   I have an applet to also gets inputs from the command line screen. Whenever I move the command line screen, it just repaints or erases a portion of the applet. Is there any way to keep the applet frozen after it has been drawn? thanks!
  • 2
1 Solution
Hi azcalv,

That can happen for several reasons. One common mistake is to not put "super.paint(g);" at the beggining of all your paint methods.

Can you post your code?
azcalv408Author Commented:
all my paint components are in the paint method. If I move the screen, it'll redraw the components or erase one part. Just wondering if there's a way to not repaint when something interrupts the screen.
Can you paste all or part of your paint method so I can see it? There is essentially no way to prevent a repaint when something interrupts the screen, this is part of the operating system and  virtual machine functionality.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now