Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Set specific size for JTextfield/Jbutton in BorderLayout?

843805Jan 25 2007 — edited Jun 12 2007
can some one tell me how to set a specific size for JTextfield/JButton in Border/BoxLayout please?
I stried setSize, setPrefersize, setMAxsize, setMinsize, setBounds... but it won't work?
For example. If I add a jbutton to a jpanel, which has borderlayout, it will take up ALL the space in that jpanel.
Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 10 2007
Added on Jan 25 2007
3 comments
285 views