Solved

problem with applet getting covered up by another screen

Posted on 2006-10-28
3
198 Views
Last Modified: 2010-03-31
Hi,
   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!
0
Comment
Question by:azcalv408
[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
3 Comments
 
LVL 1

Accepted Solution

by:
spyderhydrant earned 50 total points
ID: 17826537
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?
0
 

Author Comment

by:azcalv408
ID: 17826569
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.
0
 
LVL 1

Expert Comment

by:spyderhydrant
ID: 17826638
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.
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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
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…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

696 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