JComponent () { mySaveCollectionHistoryCheckBox = new JCheckBox(JavaDebuggerBundle.message("label.collection.breakpoint.properties.save.history")); AnActionLink button = new AnActionLink(ActionsBundle.message("action.Debugger.ShowCollectionHistory.text"), new MyShowCollectionHistoryAction()); Box box = Box.createVerticalBox(); JPanel panel = JBUI.Panels.simplePanel(); panel.add(mySaveCollectionHistoryCheckBox, BorderLayout.NORTH); mySaveCollectionHistoryCheckBox.setPreferredSize(new Dimension(panel.getPreferredSize().width, PREFERRED_PANEL_HEIGHT)); box.add(panel); panel = JBUI.Panels.simplePanel(); panel.add(button); button.setPreferredSize(new Dimension(panel.getPreferredSize().width, PREFERRED_PANEL_HEIGHT)); box.add(panel); panel = JBUI.Panels.simplePanel(); panel.add(box); return panel; }