congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
L1R3ButtonPanel
Code IndexAdd Tabnine to your IDE (free)

How to use
L1R3ButtonPanel
in
org.jfree.ui

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

origin: jfree/jcommon

/**
 * Creates a panel containing the user interface for the dialog.
 *
 * @return the panel.
 */
public JPanel createContent() {
  final JPanel content = new JPanel(new BorderLayout());
  content.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
  content.add((JPanel) this.panels.get(0));
  final L1R3ButtonPanel buttons = new L1R3ButtonPanel("Help", "Previous", "Next", "Finish");
  this.helpButton = buttons.getLeftButton();
  this.helpButton.setEnabled(false);
  this.previousButton = buttons.getRightButton1();
  this.previousButton.setActionCommand("previousButton");
  this.previousButton.addActionListener(this);
  this.previousButton.setEnabled(false);
  this.nextButton = buttons.getRightButton2();
  this.nextButton.setActionCommand("nextButton");
  this.nextButton.addActionListener(this);
  this.nextButton.setEnabled(true);
  this.finishButton = buttons.getRightButton3();
  this.finishButton.setActionCommand("finishButton");
  this.finishButton.addActionListener(this);
  this.finishButton.setEnabled(false);
  buttons.setBorder(BorderFactory.createEmptyBorder(4, 0, 0, 0));
  content.add(buttons, BorderLayout.SOUTH);
  return content;
}
origin: org.jfree/jcommon

/**
 * Standard constructor - creates 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.
 * @param label4  the label for button 4.
 */
public L1R3ButtonPanel(final String label1, final String label2, final String label3, final String label4) {
  setLayout(new BorderLayout());
  // create the pieces...
  final JPanel panel = new JPanel(new BorderLayout());
  final JPanel panel2 = new JPanel(new BorderLayout());
  this.left = new JButton(label1);
  this.right1 = new JButton(label2);
  this.right2 = new JButton(label3);
  this.right3 = new JButton(label4);
  // ...and put them together
  panel.add(this.left, BorderLayout.WEST);
  panel2.add(this.right1, BorderLayout.EAST);
  panel.add(panel2, BorderLayout.CENTER);
  panel.add(this.right2, BorderLayout.EAST);
  add(panel, BorderLayout.CENTER);
  add(this.right3, BorderLayout.EAST);
}
origin: jfree/jcommon

/**
 * Standard constructor - creates 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.
 * @param label4  the label for button 4.
 */
public L1R3ButtonPanel(final String label1, final String label2, final String label3, final String label4) {
  setLayout(new BorderLayout());
  // create the pieces...
  final JPanel panel = new JPanel(new BorderLayout());
  final JPanel panel2 = new JPanel(new BorderLayout());
  this.left = new JButton(label1);
  this.right1 = new JButton(label2);
  this.right2 = new JButton(label3);
  this.right3 = new JButton(label4);
  // ...and put them together
  panel.add(this.left, BorderLayout.WEST);
  panel2.add(this.right1, BorderLayout.EAST);
  panel.add(panel2, BorderLayout.CENTER);
  panel.add(this.right2, BorderLayout.EAST);
  add(panel, BorderLayout.CENTER);
  add(this.right3, BorderLayout.EAST);
}
origin: org.jfree/jcommon

/**
 * Creates a panel containing the user interface for the dialog.
 *
 * @return the panel.
 */
public JPanel createContent() {
  final JPanel content = new JPanel(new BorderLayout());
  content.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
  content.add((JPanel) this.panels.get(0));
  final L1R3ButtonPanel buttons = new L1R3ButtonPanel("Help", "Previous", "Next", "Finish");
  this.helpButton = buttons.getLeftButton();
  this.helpButton.setEnabled(false);
  this.previousButton = buttons.getRightButton1();
  this.previousButton.setActionCommand("previousButton");
  this.previousButton.addActionListener(this);
  this.previousButton.setEnabled(false);
  this.nextButton = buttons.getRightButton2();
  this.nextButton.setActionCommand("nextButton");
  this.nextButton.addActionListener(this);
  this.nextButton.setEnabled(true);
  this.finishButton = buttons.getRightButton3();
  this.finishButton.setActionCommand("finishButton");
  this.finishButton.addActionListener(this);
  this.finishButton.setEnabled(false);
  buttons.setBorder(BorderFactory.createEmptyBorder(4, 0, 0, 0));
  content.add(buttons, BorderLayout.SOUTH);
  return content;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Standard constructor - creates 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.
 * @param label4  the label for button 4.
 */
public L1R3ButtonPanel(final String label1, final String label2, final String label3, final String label4) {
  setLayout(new BorderLayout());
  // create the pieces...
  final JPanel panel = new JPanel(new BorderLayout());
  final JPanel panel2 = new JPanel(new BorderLayout());
  this.left = new JButton(label1);
  this.right1 = new JButton(label2);
  this.right2 = new JButton(label3);
  this.right3 = new JButton(label4);
  // ...and put them together
  panel.add(this.left, BorderLayout.WEST);
  panel2.add(this.right1, BorderLayout.EAST);
  panel.add(panel2, BorderLayout.CENTER);
  panel.add(this.right2, BorderLayout.EAST);
  add(panel, BorderLayout.CENTER);
  add(this.right3, BorderLayout.EAST);
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Creates a panel containing the user interface for the dialog.
 *
 * @return the panel.
 */
public JPanel createContent() {
  final JPanel content = new JPanel(new BorderLayout());
  content.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
  content.add((JPanel) this.panels.get(0));
  final L1R3ButtonPanel buttons = new L1R3ButtonPanel("Help", "Previous", "Next", "Finish");
  this.helpButton = buttons.getLeftButton();
  this.helpButton.setEnabled(false);
  this.previousButton = buttons.getRightButton1();
  this.previousButton.setActionCommand("previousButton");
  this.previousButton.addActionListener(this);
  this.previousButton.setEnabled(false);
  this.nextButton = buttons.getRightButton2();
  this.nextButton.setActionCommand("nextButton");
  this.nextButton.addActionListener(this);
  this.nextButton.setEnabled(true);
  this.finishButton = buttons.getRightButton3();
  this.finishButton.setActionCommand("finishButton");
  this.finishButton.addActionListener(this);
  this.finishButton.setEnabled(false);
  buttons.setBorder(BorderFactory.createEmptyBorder(4, 0, 0, 0));
  content.add(buttons, BorderLayout.SOUTH);
  return content;
}
origin: senbox-org/snap-desktop

/**
 * Creates a panel containing the user interface for the dialog.
 *
 * @return the panel.
 */
public JPanel createContent() {
  final JPanel content = new JPanel(new BorderLayout());
  content.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
  content.add(this.panels.get(0));
  final L1R3ButtonPanel buttons = new L1R3ButtonPanel("Help", "Previous", "Next", "Finish");
  this.helpButton = buttons.getLeftButton();
  this.helpButton.addActionListener(e -> { new HelpCtx(helpId).display();});
  this.helpButton.setEnabled(false);
  this.previousButton = buttons.getRightButton1();
  this.previousButton.setActionCommand("previousButton");
  this.previousButton.addActionListener(this);
  this.previousButton.setEnabled(false);
  this.nextButton = buttons.getRightButton2();
  this.nextButton.setActionCommand("nextButton");
  this.nextButton.addActionListener(this);
  this.nextButton.setEnabled(true);
  this.finishButton = buttons.getRightButton3();
  this.finishButton.setActionCommand("finishButton");
  this.finishButton.addActionListener(this);
  this.finishButton.setEnabled(false);
  buttons.setBorder(BorderFactory.createEmptyBorder(4, 0, 0, 0));
  content.add(buttons, BorderLayout.SOUTH);
  return content;
}
org.jfree.uiL1R3ButtonPanel

Javadoc

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

Most used methods

  • <init>
    Standard constructor - creates panel with the specified button labels.
  • 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.
  • getRightButton3
    Returns a reference to button 4, allowing the caller to set labels, action-listeners etc.
  • setBorder
  • add
  • setLayout

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Socket (java.net)
    Provides a client-side TCP socket.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for WebStorm
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