Solved

How to send a covered object to the front?

Posted on 1997-03-30
3
168 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
Comment Utility
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
Comment Utility
Edited text of question
0
 

Author Comment

by:ahkin
Comment Utility
Edited text of question
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

772 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

16 Experts available now in Live!

Get 1:1 Help Now