File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Positioning of JButton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Positioning of JButton" Watch "Positioning of JButton" New topic
Author

Positioning of JButton

Dhivya Krishnan
Ranch Hand

Joined: Apr 27, 2010
Posts: 41
I have used grouplayout for designing my screen. Button is placed in the left corner of the panel. I want it to be placed in the center of the panel. Please let me know your suggestions on this positioning a button or any component. The position of the component must be in the center of the screen, even if i maximize the screen.
Thanks in advance.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
can't help with GroupLayout, but...

> The position of the component must be in the center of the screen, even if i maximize the screen.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Positioning of JButton