Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
07-03-2013, 06:22 AM #1
- Join Date
- Apr 2011
- Thanked 0 Times in 0 Posts
Adding objects to JLabel vs JFrame, layering
So when you add an object (like a button) to a JFrame it puts it underneath whatever other objects are currently in that space. But when adding a button to a JLabel (I know most wouldn't do this because its normally silly) it adds the button on top of whatever is in that space. Why does the JFrame act differently than the JLabel when it comes to adding? Can you alter either one to act like the other?