Results 1 to 4 of 4
Thread: Components one over the other
- 09-11-2012, 12:27 AM #1
Member
- Join Date
- Mar 2012
- Posts
- 28
- Rep Power
- 0
Components one over the other
Hello,
I create a frame and add a panel in it. I set panel layout to null so I can paint it myself giving the exact bounds.
I add a button A, then a button B. I animate the button B and at some point it passes over A. My problem is that it passes behind A and not in front as intended.
How can I choose which button is on top in view?
Thank you.
-
Re: Components one over the other
Use a JLayeredPane and specify which layer each component is to be placed on. The tutorials will show you how to do this.
- 09-11-2012, 04:10 PM #3
Member
- Join Date
- Mar 2012
- Posts
- 28
- Rep Power
- 0
Re: Components one over the other
I read the API and implemented the JLayeredPane, as you suggested.
Thank you Fuba.
-
Similar Threads
-
Components as containers
By wired-in=p in forum AWT / SwingReplies: 8Last Post: 09-12-2011, 03:19 AM -
components display
By asmitarnd in forum AWT / SwingReplies: 7Last Post: 04-13-2011, 07:18 AM -
Different components in an AWT list
By alinaqvi90 in forum AWT / SwingReplies: 10Last Post: 08-13-2010, 10:39 AM -
Components of SWingx.
By SANDY_INDIA in forum Advanced JavaReplies: 4Last Post: 07-14-2008, 09:46 AM -
Gui Components
By Marty in forum New To JavaReplies: 1Last Post: 05-28-2007, 04:04 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks