Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to send a covered object to the front?

Posted on 1997-03-30
3
Medium Priority
?
179 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
[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
 

Accepted Solution

by:
Pavlo earned 40 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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 will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

670 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