/** * Builds and returns the user interface for the dialog. This method is * shared among the constructors. * * @return the button panel. */ protected JPanel createButtonPanel() { final L1R2ButtonPanel buttons = new L1R2ButtonPanel( localizationResources.getString("Help"), localizationResources.getString("OK"), localizationResources.getString("Cancel")); final JButton helpButton = buttons.getLeftButton(); helpButton.setActionCommand("helpButton"); helpButton.addActionListener(this); final JButton okButton = buttons.getRightButton1(); okButton.setActionCommand("okButton"); okButton.addActionListener(this); final JButton cancelButton = buttons.getRightButton2(); cancelButton.setActionCommand("cancelButton"); cancelButton.addActionListener(this); buttons.setBorder(BorderFactory.createEmptyBorder(4, 0, 0, 0)); return buttons; }
/** * Builds and returns the user interface for the dialog. This method is shared among the * constructors. * * @return the button panel. */ protected JPanel createButtonPanel() { final L1R2ButtonPanel buttons = new L1R2ButtonPanel(localizationResources.getString("Help"), localizationResources.getString("OK"), localizationResources.getString("Cancel")); final JButton helpButton = buttons.getLeftButton(); helpButton.setActionCommand("helpButton"); helpButton.addActionListener(this); final JButton okButton = buttons.getRightButton1(); okButton.setActionCommand("okButton"); okButton.addActionListener(this); final JButton cancelButton = buttons.getRightButton2(); cancelButton.setActionCommand("cancelButton"); cancelButton.addActionListener(this); buttons.setBorder(BorderFactory.createEmptyBorder(4, 0, 0, 0)); return buttons; }
/** * Builds and returns the user interface for the dialog. This method is * shared among the constructors. * * @return the button panel. */ protected JPanel createButtonPanel() { final L1R2ButtonPanel buttons = new L1R2ButtonPanel( localizationResources.getString("Help"), localizationResources.getString("OK"), localizationResources.getString("Cancel")); final JButton helpButton = buttons.getLeftButton(); helpButton.setActionCommand("helpButton"); helpButton.addActionListener(this); final JButton okButton = buttons.getRightButton1(); okButton.setActionCommand("okButton"); okButton.addActionListener(this); final JButton cancelButton = buttons.getRightButton2(); cancelButton.setActionCommand("cancelButton"); cancelButton.addActionListener(this); buttons.setBorder(BorderFactory.createEmptyBorder(4, 0, 0, 0)); return buttons; }