Results 1 to 2 of 2

Thread: Objects overlapping each other

  1. #1
    Geek_Guest
    Guest

    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


  2. #2
    Contributing Member
    Join Date
    Sep 2006
    Answers
    42

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact