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!

How to Left align the Jbutton.

843806Apr 7 2008 — edited Apr 7 2008
I have added a JButton inside a Jpanel. But the button was placed in center defaultly. I want to make the button to the left. I have tried with setHorizontalAlignment,setAlignmentX,, but nothing makes any change. How this is possible?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 5 2008
Added on Apr 7 2008
2 comments
155 views