aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Positioning of JButton Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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
Gui Re-Implementation or Modification
Auto Maximise GUI
what is this for: setLocationRelativeTo()
AWT Scroll problem
Layout Policy