Solved

problem with applet getting covered up by another screen

Posted on 2006-10-28
3
195 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
  • 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
egit plugin on eclipse 8 64
difference of if loops 23 49
by zero exception 10 41
Desingning Refactoring existing code 2 24
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

803 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