-
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?
Question asked by visitor John Smith
-
Contributing Member
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.
---Smile, it makes people wonder what you are thinking. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules