JComponent () { myNotifyOnTerminateCheckBox = new JCheckBox(PyBundle.message("debugger.exception.breakpoint.on.termination")); myNotifyOnRaiseCheckBox = new JCheckBox(PyBundle.message("debugger.exception.breakpoint.on.raise")); myIgnoreLibrariesCheckBox = new JCheckBox(PyBundle.message("debugger.exception.breakpoint.ignore.library.files")); Box notificationsBox = Box.createVerticalBox(); JPanel panel = new JPanel(new BorderLayout()); panel.add(myNotifyOnTerminateCheckBox, BorderLayout.NORTH); notificationsBox.add(panel); panel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0)); panel.setBorder(JBUI.Borders.empty()); panel.add(myNotifyOnRaiseCheckBox, Integer.valueOf(FlowLayout.LEFT)); myWarningIcon = new JBLabel(AllIcons.General.BalloonWarning); IdeTooltipManager.getInstance().setCustomTooltip( myWarningIcon, new TooltipWithClickableLinks.ForBrowser(myWarningIcon, PyBundle.message("debugger.warning.message"))); myWarningIcon.setBorder(JBUI.Borders.emptyLeft(5)); panel.add(myWarningIcon); notificationsBox.add(panel); panel = new JPanel(new BorderLayout()); panel.add(myIgnoreLibrariesCheckBox, BorderLayout.NORTH); notificationsBox.add(panel); panel = new JPanel(new BorderLayout()); JPanel innerPanel = new JPanel(new BorderLayout()); innerPanel.add(notificationsBox, BorderLayout.CENTER); innerPanel.add(Box.createHorizontalStrut(3), BorderLayout.WEST); innerPanel.add(Box.createHorizontalStrut(3), BorderLayout.EAST); panel.add(innerPanel, BorderLayout.NORTH); panel.setBorder(IdeBorderFactory.createTitledBorder(PyBundle.message("debugger.exception.breakpoint.activation.policy"))); return panel; }