Results 1 to 3 of 3
Thread: Changing panel Z order
- 02-19-2009, 05:45 PM #1
Member
- Join Date
- Jan 2008
- Posts
- 21
- Rep Power
- 0
Changing panel Z order
Hi
I want to have a form with a single button on and two panels. The panels have to lay dirrectly over each other. When I click the button I want the Z order of the panels to invert.
So say I had a panel with a background color of green and one with red. when the button is clicked it would appear that the background color was changing?
Is this possible?
thanks
- 02-20-2009, 05:28 AM #2
Read the API for CardLayout and check out the tutorial:
Lesson: Laying Out Components Within a Container (The Java™ Tutorials > Creating a GUI with JFC/Swing)
db
- 02-20-2009, 03:51 PM #3
Similar Threads
-
How to add coins in ascending order in arraylist
By tribujohn in forum New To JavaReplies: 2Last Post: 01-23-2009, 04:31 AM -
Sorting in descending order
By santanu in forum New To JavaReplies: 6Last Post: 11-26-2008, 11:43 PM -
Descending order
By santanu in forum New To JavaReplies: 1Last Post: 11-04-2008, 04:33 PM -
how to display the picture when the filename is not in order
By norazanita in forum New To JavaReplies: 5Last Post: 06-06-2008, 09:31 AM -
Tab order on swing components
By ashvin@projectdemo.biz in forum AWT / SwingReplies: 1Last Post: 05-31-2008, 10:06 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks