-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebButtonGroup doesn't group buttons if added with 'add()' #96
Comments
Thanks for reporting! |
I have also made some improvements to WebButtonGroup - it will now properly style inner WebButtonGroup with an opposite orientation. Here is an example: public class WebButtonGroupExample
{
public static void main ( final String[] args )
{
WebLookAndFeel.install ();
final WebButtonGroup buttonGroup = new WebButtonGroup ( HORIZONTAL, new WebButton ( "ABC" ) );
buttonGroup.add ( new WebButtonGroup ( VERTICAL, new WebButton ( "1" ), new WebButton ( "2" ), new WebButton ( "3" ) ) );
buttonGroup.add ( new WebButton ( WebLookAndFeel.getIcon ( 32 ) ).setLeftRightSpacing ( 10 ) );
buttonGroup.add ( new WebButtonGroup ( VERTICAL, new WebButton ( "1" ), new WebButton ( "2" ), new WebButton ( "3" ) ) );
buttonGroup.add ( new WebButton ( "DEF" ) );
TestFrame.show ( buttonGroup, 50 );
}
} |
One more thing about WebButtonGroup you might want to know - in next few updates (not in v1.27 yet) it will be renamed to something like WebComponentGroup and will be able to group any kind of components which support side-hiding, not only buttons like it does right now. It will be able to group comboboxes, decorated panels, scrollpanes and whatever else that has similar decoration with buttons. |
Interesting. Good to know :) And thanks for the fix. |
…ange options #105 - WebButton decoration is now handled a bit differently when it is inside WebButtonGroup #72 #79 #104 - Fixed window transparency update method for later versions of JDK 7 #96 - WebButtonGroup "add" methods fix and proper style updates for various cases #95 - WebScrollPane method to hide scroll bar buttons added #93 - WebPopupPainter bottom side corner fix #91 - Small code refactoring #90 - WebInternalFrame buttons made non-focusable #55 - "OptionPane.isYesLast" is now set to true for Mac OS X StyleManager initialization is not required anymore for Web-styled components creation StyleManager now supports custom component painters StyleManager now has a better support for custom settings StyleManager skin file parsing improvements 9-patch-based painters added for JLabel and JPanel components JLabel painter support added WebVerticalLabel painter support added WebBreadcrumbLabel painter support added WebBreadcrumbPanel painter support added WebAsyncTree root sorting/filtering do not cause an exception anymore NinePatchEditor image rotation features added WebButtonUI margin fix for hidden sides case NinePatchIcon cache initialization fix Improved text representation for UniqueNode WebListUI rollover cell highlight fix Default SettingsProcessors small bugfixes Demo application heavy animation switch fix Version files updated
Should be fixed now with v1.27 update. |
This will group the buttons:
This won't group them:
The text was updated successfully, but these errors were encountered: