Solved

How to send a covered object to the front?

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This video teaches viewers about errors in exception handling.

860 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