public static JComponent createButtonBar ( Object [ ] groupMembers ) { CommandGroupFactoryBean commandGroupFactoryBean = new CommandGroupFactoryBean ( null , groupMembers ) ; // CommandGroup dialogCommandGroup = // CommandGroup.createCommandGroup(null, // groupMembers); CommandGroup dialogCommandGroup = commandGroupFactoryBean . getCommandGroup ( ) ; JComponent buttonBar = dialogCommandGroup . createButtonBar ( ) ; GuiStandardUtils . attachDialogBorder ( buttonBar ) ; return buttonBar ; }
Return a standardized row of command buttons .