Jump to content

Placing bUttons manually

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
hassan1

hassan1

    Newbie

  • Members
  • Pip
  • 2 posts
Hi....i want to place buttons in my gui manually.....means left right,top,bottom..where i want..........thnx in advance!!:)

#2
tate

tate

    Learning Programmer

  • Members
  • PipPipPip
  • 90 posts
To do so I believe you would have to set the window or frame or panel layout to null. That should allow you to place the buttons anyplace on the component you want. The method to set the layout is (someWindowObject).setLayout(null)
twas brillig

#3
kishkabear

kishkabear

    Newbie

  • Members
  • Pip
  • 5 posts
You would also have to use the setBounds property for the components to be placed where you want them in the parent component.