Objects overlapping each other
I have created a frame in Java with 2 objects placed inside. I am having a problem because they are overlapping each other,
How can i position them side by side, or position them so they are not overlapping?
[B]Question asked by visitor John Smith[/b]
Re: Objects overlapping each other
Are you using Swing? If yes,try setting the layout to Border Layout or Flow layout. If you set it to Border Layout, add the component as frame.add(comp, BorderLayout.NORTH) and frame.add(comp2, BorderLayout.SOUTH). There are many more options for the second parameter. Check them out...
Regards,
Sahil.
[SIZE=1][COLOR=Silver] ---[/COLOR][COLOR=Silver]Smile, it makes people wonder what you are thinking. :)[/COLOR][/SIZE]