This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 101169 - Center horizontally issue
Summary: Center horizontally issue
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-16 15:33 UTC by Jiri Vagner
Modified: 2010-08-25 12:13 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
before-center.png (3.07 KB, image/png)
2007-04-16 15:39 UTC, Jiri Vagner
Details
after-center.png (3.86 KB, image/png)
2007-04-16 15:40 UTC, Jiri Vagner
Details
center-01.png (2.32 KB, image/png)
2007-04-16 15:42 UTC, Jiri Vagner
Details
center-02.png (2.28 KB, image/png)
2007-04-16 15:45 UTC, Jiri Vagner
Details
center-03.png (3.41 KB, image/png)
2007-04-16 15:46 UTC, Jiri Vagner
Details
center-04.png (2.78 KB, image/png)
2007-04-16 15:48 UTC, Jiri Vagner
Details
center-05.png (4.03 KB, image/png)
2007-04-16 15:49 UTC, Jiri Vagner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Vagner 2007-04-16 15:33:34 UTC
After using "Center horizontally" icon, jpanel is resized in a strange way. The
goal is to have a middle button centered between left and right button. 

Steps to reproduce ...
 - create jframe and add jpanel and three jbuttons (before-center.png)
 - choose jButoon3 and jPanel1 and press "Center horizontally" icon
 - jpanel is resized now and it's very hard to setup original width of jpanel
(after-center.png)

"Workaround" ...
 - create jFrame with one button (center-01.png)
 - choose jButoon1 and jPanel1 and press "Center horizontally" icon (center-02.png)
 - add jButton2 beneath left bottom corner of jPanel1 (jButton1 is not centered
after adding jButton2) (center-02.png)
 - add jButton3 beneath right bottom corner of jPanel1 (center-04.png)
 - move jButton1 horizontally and "catch" dashed vertical center line
(center-05.png)
Comment 1 Jiri Vagner 2007-04-16 15:39:41 UTC
Created attachment 40972 [details]
before-center.png
Comment 2 Jiri Vagner 2007-04-16 15:40:41 UTC
Created attachment 40973 [details]
after-center.png
Comment 3 Jiri Vagner 2007-04-16 15:42:59 UTC
Created attachment 40974 [details]
center-01.png
Comment 4 Jiri Vagner 2007-04-16 15:45:47 UTC
Created attachment 40975 [details]
center-02.png
Comment 5 Jiri Vagner 2007-04-16 15:46:27 UTC
Created attachment 40976 [details]
center-03.png
Comment 6 Jiri Vagner 2007-04-16 15:48:19 UTC
Created attachment 40977 [details]
center-04.png
Comment 7 Jiri Vagner 2007-04-16 15:49:56 UTC
Created attachment 40978 [details]
center-05.png
Comment 8 Tomas Pavek 2010-08-25 12:13:13 UTC
The centering feature can align selected components on common center axis, but is not able to center a component within given space (e.g. between other components). That is a missing feature.