aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Positioning of JButton" Watch "Positioning of JButton" New topic
Author

Positioning of JButton

Dhivya Krishnan
Greenhorn

Joined: Apr 27, 2010
Posts: 28
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
 
Similar Threads
Layout Policy
AWT Scroll problem
Gui Re-Implementation or Modification
Auto Maximise GUI
what is this for: setLocationRelativeTo()