Tabnine Logo
WizardDialog.pack
Code IndexAdd Tabnine to your IDE (free)

How to use
pack
method
in
org.jfree.ui.WizardDialog

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

origin: jfree/jcommon

/**
 * Handles a click on the "previous" button, by displaying the previous panel in the sequence.
 */
public void previous() {
  if (this.step > 0) {
    final WizardPanel previousPanel = getWizardPanel(this.step - 1);
    // tell the panel that we are returning
    previousPanel.returnFromLaterStep();
    final Container content = getContentPane();
    content.remove(this.currentPanel);
    content.add(previousPanel);
    this.step = this.step - 1;
    this.currentPanel = previousPanel;
    setTitle("Step " + (this.step + 1));
    enableButtons();
    pack();
  }
}
origin: org.jfree/jcommon

/**
 * Handles a click on the "previous" button, by displaying the previous panel in the sequence.
 */
public void previous() {
  if (this.step > 0) {
    final WizardPanel previousPanel = getWizardPanel(this.step - 1);
    // tell the panel that we are returning
    previousPanel.returnFromLaterStep();
    final Container content = getContentPane();
    content.remove(this.currentPanel);
    content.add(previousPanel);
    this.step = this.step - 1;
    this.currentPanel = previousPanel;
    setTitle("Step " + (this.step + 1));
    enableButtons();
    pack();
  }
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Handles a click on the "previous" button, by displaying the previous panel in the sequence.
 */
public void previous() {
  if (this.step > 0) {
    final WizardPanel previousPanel = getWizardPanel(this.step - 1);
    // tell the panel that we are returning
    previousPanel.returnFromLaterStep();
    final Container content = getContentPane();
    content.remove(this.currentPanel);
    content.add(previousPanel);
    this.step = this.step - 1;
    this.currentPanel = previousPanel;
    setTitle("Step " + (this.step + 1));
    enableButtons();
    pack();
  }
}
origin: org.jfree/jcommon

/**
 * Displays the next step in the wizard sequence.
 */
public void next() {
  WizardPanel nextPanel = getWizardPanel(this.step + 1);
  if (nextPanel != null) {
    if (!this.currentPanel.canRedisplayNextPanel()) {
      nextPanel = this.currentPanel.getNextPanel();
    }
  }
  else {
    nextPanel = this.currentPanel.getNextPanel();
  }
  this.step = this.step + 1;
  if (this.step < this.panels.size()) {
    this.panels.set(this.step, nextPanel);
  }
  else {
    this.panels.add(nextPanel);
  }
  final Container content = getContentPane();
  content.remove(this.currentPanel);
  content.add(nextPanel);
  this.currentPanel = nextPanel;
  setTitle("Step " + (this.step + 1));
  enableButtons();
  pack();
}
origin: jfree/jcommon

/**
 * Displays the next step in the wizard sequence.
 */
public void next() {
  WizardPanel nextPanel = getWizardPanel(this.step + 1);
  if (nextPanel != null) {
    if (!this.currentPanel.canRedisplayNextPanel()) {
      nextPanel = this.currentPanel.getNextPanel();
    }
  }
  else {
    nextPanel = this.currentPanel.getNextPanel();
  }
  this.step = this.step + 1;
  if (this.step < this.panels.size()) {
    this.panels.set(this.step, nextPanel);
  }
  else {
    this.panels.add(nextPanel);
  }
  final Container content = getContentPane();
  content.remove(this.currentPanel);
  content.add(nextPanel);
  this.currentPanel = nextPanel;
  setTitle("Step " + (this.step + 1));
  enableButtons();
  pack();
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Displays the next step in the wizard sequence.
 */
public void next() {
  WizardPanel nextPanel = getWizardPanel(this.step + 1);
  if (nextPanel != null) {
    if (!this.currentPanel.canRedisplayNextPanel()) {
      nextPanel = this.currentPanel.getNextPanel();
    }
  }
  else {
    nextPanel = this.currentPanel.getNextPanel();
  }
  this.step = this.step + 1;
  if (this.step < this.panels.size()) {
    this.panels.set(this.step, nextPanel);
  }
  else {
    this.panels.add(nextPanel);
  }
  final Container content = getContentPane();
  content.remove(this.currentPanel);
  content.add(nextPanel);
  this.currentPanel = nextPanel;
  setTitle("Step " + (this.step + 1));
  enableButtons();
  pack();
}
org.jfree.uiWizardDialogpack

Popular methods of WizardDialog

  • canDoNextPanel
    Returns true if there is a 'next' panel, and false otherwise.
  • canFinish
    Returns true if it is possible to finish the sequence at this point (possibly with defaults for the
  • createContent
    Creates a panel containing the user interface for the dialog.
  • enableButtons
    Enables/disables the buttons according to the current step. A good idea would be to ask the panels t
  • finish
    Finishes the wizard.
  • getContentPane
  • getWizardPanel
    Returns the panel for the specified step (steps are numbered from zero).
  • next
    Displays the next step in the wizard sequence.
  • previous
    Handles a click on the "previous" button, by displaying the previous panel in the sequence.
  • setContentPane
  • setTitle
  • setVisible
  • setTitle,
  • setVisible

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • compareTo (BigDecimal)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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