Tabnine Logo
L1R2ButtonPanel
Code IndexAdd Tabnine to your IDE (free)

How to use
L1R2ButtonPanel
in
org.jfree.ui

Best Java code snippets using org.jfree.ui.L1R2ButtonPanel (Showing top 6 results out of 315)

origin: org.jfree/com.springsource.org.jfree

/**
 * 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;
}
origin: jfree/jcommon

/**
 * Standard constructor - creates a three button panel with the specified button labels.
 *
 * @param label1  the label for button 1.
 * @param label2  the label for button 2.
 * @param label3  the label for button 3.
 */
public L1R2ButtonPanel(final String label1, final String label2, final String label3) {
  setLayout(new BorderLayout());
  // create the pieces...
  this.left = new JButton(label1);
  final JPanel rightButtonPanel = new JPanel(new GridLayout(1, 2));
  this.right1 = new JButton(label2);
  this.right2 = new JButton(label3);
  rightButtonPanel.add(this.right1);
  rightButtonPanel.add(this.right2);
  // ...and put them together
  add(this.left, BorderLayout.WEST);
  add(rightButtonPanel, BorderLayout.EAST);
}
origin: org.jfree/jcommon

/**
 * Standard constructor - creates a three button panel with the specified button labels.
 *
 * @param label1  the label for button 1.
 * @param label2  the label for button 2.
 * @param label3  the label for button 3.
 */
public L1R2ButtonPanel(final String label1, final String label2, final String label3) {
  setLayout(new BorderLayout());
  // create the pieces...
  this.left = new JButton(label1);
  final JPanel rightButtonPanel = new JPanel(new GridLayout(1, 2));
  this.right1 = new JButton(label2);
  this.right2 = new JButton(label3);
  rightButtonPanel.add(this.right1);
  rightButtonPanel.add(this.right2);
  // ...and put them together
  add(this.left, BorderLayout.WEST);
  add(rightButtonPanel, BorderLayout.EAST);
}
origin: org.jfree/jcommon

/**
 * 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;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Standard constructor - creates a three button panel with the specified button labels.
 *
 * @param label1  the label for button 1.
 * @param label2  the label for button 2.
 * @param label3  the label for button 3.
 */
public L1R2ButtonPanel(final String label1, final String label2, final String label3) {
  setLayout(new BorderLayout());
  // create the pieces...
  this.left = new JButton(label1);
  final JPanel rightButtonPanel = new JPanel(new GridLayout(1, 2));
  this.right1 = new JButton(label2);
  this.right2 = new JButton(label3);
  rightButtonPanel.add(this.right1);
  rightButtonPanel.add(this.right2);
  // ...and put them together
  add(this.left, BorderLayout.WEST);
  add(rightButtonPanel, BorderLayout.EAST);
}
origin: jfree/jcommon

/**
 * 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;
}
org.jfree.uiL1R2ButtonPanel

Javadoc

A 'ready-made' panel that has one button on the left and two buttons on the right - nested panels and layout managers take care of resizing.

Most used methods

  • <init>
    Standard constructor - creates a three button panel with the specified button labels.
  • add
  • getLeftButton
    Returns a reference to button 1, allowing the caller to set labels, action-listeners etc.
  • getRightButton1
    Returns a reference to button 2, allowing the caller to set labels, action-listeners etc.
  • getRightButton2
    Returns a reference to button 3, allowing the caller to set labels, action-listeners etc.
  • setBorder
  • setLayout

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now