Solved

How to send a covered object to the front?

Posted on 1997-03-30
3
171 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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
diffSum example 4 37
reverse digits of a number using for loop 5 41
SHA2 certs for IIS AND Java? 2 92
JAVA API design with micro service cloud in mind 1 18
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This video teaches viewers about errors in exception handling.

777 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