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?