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.
Summary: | LAYOUT: Aligning of chackeboxes/radiobuttons situated below label in Matisse | ||
---|---|---|---|
Product: | guibuilder | Reporter: | Jindrich Dinga <jdinga> |
Component: | Natural Layout | Assignee: | issues@guibuilder <issues> |
Status: | NEW --- | ||
Severity: | blocker | CC: | dpavlica, jkopsa, josefpavlicek, jrojcek, psomol, rbock |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
radiobuttons
checkboxes |
Description
Jindrich Dinga
2006-03-15 14:51:39 UTC
Created attachment 29250 [details]
radiobuttons
Created attachment 29251 [details]
checkboxes
I suggest using LayoutStyle.INDENT gap to determine the space needed for indentation. This allows for Look and Feel aware indentation rules. Rationale: On Mac OS X, the indentation depends on the components that are involved and on their current size style. On Mac OS X: 1) a JLabel below a JComboBox should be indented by a specific number of pixels in order to have the text of the JLabel left aligned with the contents of the JComboBox. 2) a JLabel below a JRadioButton should be indented by a specific number of pixels in order to have the text of the JLabel left aligned with the text of the JRadioButton. 3) a small JLabel below a small JRadioButton should be indented by a specific number of pixels in order to have the text of the JLabel left aligned with the text of the JRadioButton. The number of pixels needed for cases 1) and 2) differ, because the text in a JRadioButton is much farther away from the left boundary than the contents of a JComboBox is. The number of pixels needed for cases 2) and 3) differ, because the artwork for regular sized component and for small sized component has different sizes on Mac OS X. LayoutStyle.INDENT can handle such complex cases nicely. Yes, INDENT gap should be used here, not UNRELATED. The bug is that the GUI builder does not put the symbolic gap into the resulting layout definition (code), just the absolute number of pixels corresponding to the INDENT obtained from LayoutStyle at the moment (based on actual L&F of NetBeans IDE). This should be fixed, but given that this is not defined in any guidelines, I'm lowering priority to P3. |