java.awt.CardLayout.first()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(185)

本文整理了Java中java.awt.CardLayout.first()方法的一些代码示例,展示了CardLayout.first()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CardLayout.first()方法的具体详情如下:
包路径:java.awt.CardLayout
类名称:CardLayout
方法名:first

CardLayout.first介绍

[英]Flips to the first card of the container.
[中]翻转到容器的第一张卡片。

代码示例

代码示例来源:origin: lbalazscs/Pixelitor

public void hideProgressBar() {
  cardLayout.first(this);
}

代码示例来源:origin: pentaho/pentaho-reporting

public void actionPerformed( final ActionEvent e ) {
  hsbColorSelectorPanel.setComponent( component );
  colorSelectorLayout.first( colorSelectorPanel );
  reconfigureSlider( component );
 }
}

代码示例来源:origin: syedlopez/proguard

/**
 * Selects the first tab.
 */
public void first()
{
  cardLayout.first(cardPanel);
  updateButtonSelection();
}

代码示例来源:origin: protegeproject/protege

public void setViewMode(Optional<ViewMode> viewMode) {
  currentMode = viewMode;
  CardLayout cardLayout = (CardLayout) getLayout();
  if (viewMode.isPresent()) {
    cardLayout.show(this, viewMode.get().getName());
  }
  else {
    cardLayout.first(this);
  }
  T component = mode2Component.get(currentMode);
  if(component != null) {
    component.requestFocus();
  }
}

代码示例来源:origin: edu.stanford.protege/protege-editor-owl

public void setViewMode(Optional<ViewMode> viewMode) {
  currentMode = viewMode;
  CardLayout cardLayout = (CardLayout) getLayout();
  if (viewMode.isPresent()) {
    cardLayout.show(this, viewMode.get().getName());
  }
  else {
    cardLayout.first(this);
  }
  T component = mode2Component.get(currentMode);
  if(component != null) {
    component.requestFocus();
  }
}

代码示例来源:origin: edu.stanford.protege/org.coode.owlviz

/**
 * Programmatically sets the Wizard to display the
 * first page.
 */
public void firstPage()
{
  currentPage = 0;
  getPagePanelLayout().first(pagePanel);
  setButtonState();
  firePageChangedEvent();
}

代码示例来源:origin: abel533/DBMetadata

@Override
  public void actionPerformed(ActionEvent e) {
    Object catalog = loadFrame.getChoosePanel().getComboBoxCatalog().getSelectedItem();
    Object schema = loadFrame.getChoosePanel().getComboBoxSchema().getSelectedItem();
    loadFrame.setTitle(I18n.key("tools.load.title.loading"));
    loadFrame.getCardLayout().first(loadFrame.getContentPanel());
    loadData(new DatabaseConfig(catalog == null ? null : catalog.toString(), schema == null ? null : schema.toString()));
  }
});

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

@Override
  public void loginFailed(LoginEvent source) {
      assert EventQueue.isDispatchThread();
//            remove(progressPanel);
//            add(contentPanel, BorderLayout.CENTER);
      ((CardLayout) contentCardPane.getLayout()).first(contentCardPane);
      getActionMap().get(LOGIN_ACTION_COMMAND).setEnabled(true);
      errorMessageLabel.setVisible(true);
      revalidate();
      repaint();
      setStatus(Status.FAILED);
    }

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

@Override
  public void loginFailed(LoginEvent source) {
      assert EventQueue.isDispatchThread();
//            remove(progressPanel);
//            add(contentPanel, BorderLayout.CENTER);
      ((CardLayout) contentCardPane.getLayout()).first(contentCardPane);
      getActionMap().get(LOGIN_ACTION_COMMAND).setEnabled(true);
      errorMessageLabel.setVisible(true);
      revalidate();
      repaint();
      setStatus(Status.FAILED);
    }

代码示例来源:origin: org.swinglabs.swingx/swingx-core

@Override
  public void loginFailed(LoginEvent source) {
      assert EventQueue.isDispatchThread();
//            remove(progressPanel);
//            add(contentPanel, BorderLayout.CENTER);
      ((CardLayout) contentCardPane.getLayout()).first(contentCardPane);
      getActionMap().get(LOGIN_ACTION_COMMAND).setEnabled(true);
      errorMessageLabel.setVisible(true);
      revalidate();
      repaint();
      setStatus(Status.FAILED);
    }

代码示例来源:origin: org.swinglabs.swingx/swingx-all

@Override
  public void loginFailed(LoginEvent source) {
      assert EventQueue.isDispatchThread();
//            remove(progressPanel);
//            add(contentPanel, BorderLayout.CENTER);
      ((CardLayout) contentCardPane.getLayout()).first(contentCardPane);
      getActionMap().get(LOGIN_ACTION_COMMAND).setEnabled(true);
      errorMessageLabel.setVisible(true);
      revalidate();
      repaint();
      setStatus(Status.FAILED);
    }

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

@Override
  public void loginFailed(LoginEvent source) {
      assert EventQueue.isDispatchThread();
//            remove(progressPanel);
//            add(contentPanel, BorderLayout.CENTER);
      ((CardLayout) contentCardPane.getLayout()).first(contentCardPane);
      getActionMap().get(LOGIN_ACTION_COMMAND).setEnabled(true);
      errorMessageLabel.setVisible(true);
      revalidate();
      repaint();
      setStatus(Status.FAILED);
    }

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

@Override
  public void loginCanceled(LoginEvent source) {
      assert EventQueue.isDispatchThread();
//            remove(progressPanel);
//            add(contentPanel, BorderLayout.CENTER);
      ((CardLayout) contentCardPane.getLayout()).first(contentCardPane);
      getActionMap().get(LOGIN_ACTION_COMMAND).setEnabled(true);
      errorMessageLabel.setVisible(false);
      revalidate();
      repaint();
      setStatus(Status.CANCELLED);
    }
  }

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

@Override
  public void loginCanceled(LoginEvent source) {
      assert EventQueue.isDispatchThread();
//            remove(progressPanel);
//            add(contentPanel, BorderLayout.CENTER);
      ((CardLayout) contentCardPane.getLayout()).first(contentCardPane);
      getActionMap().get(LOGIN_ACTION_COMMAND).setEnabled(true);
      errorMessageLabel.setVisible(false);
      revalidate();
      repaint();
      setStatus(Status.CANCELLED);
    }
  }

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

@Override
  public void loginCanceled(LoginEvent source) {
      assert EventQueue.isDispatchThread();
//            remove(progressPanel);
//            add(contentPanel, BorderLayout.CENTER);
      ((CardLayout) contentCardPane.getLayout()).first(contentCardPane);
      getActionMap().get(LOGIN_ACTION_COMMAND).setEnabled(true);
      errorMessageLabel.setVisible(false);
      revalidate();
      repaint();
      setStatus(Status.CANCELLED);
    }
  }

代码示例来源:origin: org.swinglabs.swingx/swingx-core

@Override
  public void loginCanceled(LoginEvent source) {
      assert EventQueue.isDispatchThread();
//            remove(progressPanel);
//            add(contentPanel, BorderLayout.CENTER);
      ((CardLayout) contentCardPane.getLayout()).first(contentCardPane);
      getActionMap().get(LOGIN_ACTION_COMMAND).setEnabled(true);
      errorMessageLabel.setVisible(false);
      revalidate();
      repaint();
      setStatus(Status.CANCELLED);
    }
  }

代码示例来源:origin: org.swinglabs.swingx/swingx-all

@Override
  public void loginCanceled(LoginEvent source) {
      assert EventQueue.isDispatchThread();
//            remove(progressPanel);
//            add(contentPanel, BorderLayout.CENTER);
      ((CardLayout) contentCardPane.getLayout()).first(contentCardPane);
      getActionMap().get(LOGIN_ACTION_COMMAND).setEnabled(true);
      errorMessageLabel.setVisible(false);
      revalidate();
      repaint();
      setStatus(Status.CANCELLED);
    }
  }

代码示例来源:origin: pentaho/pentaho-reporting

colorSelectorPanel.add( "RGB", rgbColorSelectorPanel ); // NON-NLS
colorSelectorLayout.first( colorSelectorPanel );

代码示例来源:origin: dcaoyuan/nbscala

CardLayout cl = (CardLayout) cards.getLayout();
if (target == clientArea) {
  cl.first (cards);

代码示例来源:origin: org.netbeans.api/org-netbeans-modules-java-platform-ui

CardLayout cl = (CardLayout) cards.getLayout();
if (target == clientArea) {
  cl.first (cards);

相关文章