Hi all,
I have a problem with Java GUI.
How can I set a certain component to be in front of another component or behind it?!
i.e. Is there a way to: SendToBack & SendToFront in java?

If you are using java 1.5 or above, the java.awt.Container class (which pretty much every Swing UI component extends from in it's hierarchy) has a method setComponentZOrder(java.awt.Component, int) that you can use for this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.