Solved

How to send a covered object to the front?

Posted on 1997-03-30
3
169 Views
Last Modified: 2010-04-16
When 2 objects are placed in the same cooridinates,
one is covered by another. Is there any way to
send this object to the front?

If the objects are Panel, what should I call?
Actually, I'm talking about Component in general.
0
Comment
Question by:ahkin
  • 2
3 Comments
 

Accepted Solution

by:
Pavlo earned 20 total points
ID: 1219322
If you're talking about Images, you can call repaint () and make sure the image is drawn at the end:

drawImage(anImage,x,y)
drawImage(ImageOnTop,x,y)

The second to drawImage will place ImageOnTop in front of the other image. Maybe a cheap solution, but it works for me...
0
 

Author Comment

by:ahkin
ID: 1219323
Edited text of question
0
 

Author Comment

by:ahkin
ID: 1219324
Edited text of question
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
groupNoAdj 7 83
get weblogic logged in user in java 2 57
mockito example issue 8 62
Java DateChooser? 3 29
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…
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 “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 if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

948 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now