javax.swing.JSpinner.setVisible()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(5.2k)|赞(0)|评价(0)|浏览(118)

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

JSpinner.setVisible介绍

暂无

代码示例

代码示例来源:origin: magefree/mage

public void showLevel(boolean show) {
  this.spnLevel.setVisible(show);
  this.lblLevel.setVisible(show);
}

代码示例来源:origin: magefree/mage

this.pnlDraftOptions.setVisible(tournamentType.isDraft());
this.lblNumRounds.setVisible(!tournamentType.isElimination());
this.spnNumRounds.setVisible(!tournamentType.isElimination());
this.spnConstructTime.setVisible(tournamentType.isLimited());

代码示例来源:origin: Audiveris/audiveris

public void setVisible (boolean bool)
  {
    label.setVisible(bool);
    spinner.setVisible(bool);
  }
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2ee-sun-appsrv81

void includeSip(boolean b) {
  sipPortLbl.setVisible(b);
  sipPort.setVisible(b);
  sipSslPortLbl.setVisible(b);
  sipSslPort.setVisible(b);
}

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

private void jComboBoxSectionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxSectionActionPerformed
  jSpinnerMaxResults.setVisible(!jComboBoxSection.getSelectedItem().toString().equals("All"));
}//GEN-LAST:event_jComboBoxSectionActionPerformed
  private boolean repopup = false;

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

@Override
public void mouseWheelMoved(MouseWheelEvent e) {
  spinner.setVisible(true);
  setSpinnerDate(new Date(((Date) spinner.getValue()).getTime() - 1000 * 60 * 60 * e.getWheelRotation()));
  //spinner.setValue(new Date(((Date) spinner.getValue()).getTime() - 1000 * 60 * 60 * e.getWheelRotation()));
}

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

/** This shows or hides the alpha controls.
 * <P>Note the alpha spinner live inside the "expert controls", so if <code>setExpertControlsVisible(false)</code>
 * has been called, then this method does not affect that spinner.
 * However, the opacity slider is <i>not</i> affected by the visibility of the export controls.
 * @param b
 */
public void setOpacityVisible(boolean b) {
  opacityLabel.setVisible(b);
  opacitySlider.setVisible(b);
  alpha.label.setVisible(b);
  alpha.spinner.setVisible(b);
}

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

public void setVisible(boolean b) {
    boolean radioButtonsAllowed = true;
    Boolean z = (Boolean)getClientProperty(MODE_CONTROLS_VISIBLE_PROPERTY);
    if(z!=null) radioButtonsAllowed = z.booleanValue();
    
    radioButton.setVisible(b && radioButtonsAllowed);
    if(slider!=null)
      slider.setVisible(b);
    if(spinner!=null)
      spinner.setVisible(b);
    label.setVisible(b);
  }
}

代码示例来源:origin: omegat-org/omegat

private static void removeTransparencySlider(JColorChooser jc) throws Exception {
  AbstractColorChooserPanel[] colorPanels = jc.getChooserPanels();
  for (int i = 1; i < colorPanels.length; i++) {
    AbstractColorChooserPanel cp = colorPanels[i];
    Field f = cp.getClass().getDeclaredField("panel");
    f.setAccessible(true);
    Object colorPanel = f.get(cp);
    Field f2 = colorPanel.getClass().getDeclaredField("spinners");
    f2.setAccessible(true);
    Object spinners = f2.get(colorPanel);
    Object transpSlispinner = Array.get(spinners, 3);
    if (i == colorPanels.length - 1) {
      transpSlispinner = Array.get(spinners, 4);
    }
    Field f3 = transpSlispinner.getClass().getDeclaredField("slider");
    f3.setAccessible(true);
    JSlider slider = (JSlider) f3.get(transpSlispinner);
    slider.setEnabled(false);
    slider.setVisible(false);
    Field f4 = transpSlispinner.getClass().getDeclaredField("spinner");
    f4.setAccessible(true);
    JSpinner spinner = (JSpinner) f4.get(transpSlispinner);
    spinner.setEnabled(false);
    spinner.setVisible(false);
    Field f5 = transpSlispinner.getClass().getDeclaredField("label");
    f5.setAccessible(true);
    JLabel label = (JLabel) f5.get(transpSlispinner);
    label.setVisible(false);
  }
}

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

private void setSpinnerDate(Date date) {
  spinner.setVisible(date != null);
  if (date != null) {
    picker.setToolTipText(TOOLTIP2);
    spinner.setValue(date);
    spinner.requestFocus();
  } else {
    picker.setToolTipText(TOOLTIP1);
  }
}

代码示例来源:origin: stackoverflow.com

JSpinner spinner = (JSpinner) f4.get(transpSlispinner);
spinner.setEnabled(false);
spinner.setVisible(false);

代码示例来源:origin: tonikelope/megabasterd

@Override
  public void run() {
    getView().getSlots_label().setVisible(true);
    getView().getSlots_spinner().setVisible(true);
    getView().getSlot_status_label().setVisible(true);
  }
});

代码示例来源:origin: org.jboss.jbossts/jbossjta

sampleSizeSpinner.setEditor(new JSpinner.NumberEditor(sampleSizeSpinner, "#"));
pollIntervalSpinner.setVisible(false);
sampleSizeSpinner.setVisible(false);
enableStatsCB.setSelected(false);
resetStatsBtn.setVisible(false);

代码示例来源:origin: omegat-org/omegat

form.m_filterButton.setVisible(false);
form.m_numberLabel.setVisible(false);
form.m_numberOfResults.setVisible(false);
form.m_panelSearch.setVisible(false);
form.m_panelReplace.setVisible(true);

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

((DefaultEditor) spinner.getEditor()).getTextField().setFormatterFactory(
    new DefaultFormatterFactory(new DateFormatter(format)));
spinner.setVisible(date != null);
add(spinner);
((DefaultEditor) spinner.getEditor()).getTextField().addCaretListener(new CaretListener() {

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

jPanelToPanel.add(toTime);
jLabelTo.setLabelFor(toTime);
jSpinnerMaxResults.setVisible(false);
jComboBoxStation.addKeyListener(
    new KeyAdapter() {

相关文章