Tabnine Logo
L1R2ButtonPanel.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.jfree.ui.L1R2ButtonPanel
constructor

Best Java code snippets using org.jfree.ui.L1R2ButtonPanel.<init> (Showing top 3 results out of 315)

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;
}
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: 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;
}
org.jfree.uiL1R2ButtonPanel<init>

Javadoc

Standard constructor - creates a three button panel with the specified button labels.

Popular methods of L1R2ButtonPanel

  • 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

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • ImageIO (javax.imageio)
  • JList (javax.swing)
  • From CI to AI: The AI layer in your organization
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