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

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

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

JScrollPane.setVisible介绍

暂无

代码示例

代码示例来源:origin: libgdx/libgdx

boolean isJava = javaRadio.isSelected();
addEffectButton.setVisible(isJava);
effectsScroll.setVisible(isJava);
appliedEffectsScroll.setVisible(isJava);
boldCheckBox.setEnabled(!isFreeType);
italicCheckBox.setEnabled(!isFreeType);

代码示例来源:origin: libgdx/libgdx

boolean isJava = javaRadio.isSelected();
addEffectButton.setVisible(isJava);
effectsScroll.setVisible(isJava);
appliedEffectsScroll.setVisible(isJava);
boldCheckBox.setEnabled(!isFreeType);
italicCheckBox.setEnabled(!isFreeType);

代码示例来源:origin: runelite/runelite

resultsWrapper.getVerticalScrollBar().setPreferredSize(new Dimension(12, 0));
resultsWrapper.getVerticalScrollBar().setBorder(new EmptyBorder(0, 5, 0, 0));
resultsWrapper.setVisible(false);

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

public void hideTextComponent() {
  this.scrollPane.setVisible(false);
}

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

public void showTextComponent() {
  if (oldWidth != this.getWidth()) {
    initBounds(false);
  }
  this.scrollPane.setVisible(true);
}

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

@Override
public void paintComponent(Graphics graphics) {
  Graphics2D g2 = (Graphics2D) graphics;
  this.setSize(this.getPreferredSize());
  if (permanent.isTapped()) {
    this.getText().setVisible(false);
    g2.drawImage(tappedImage, 0, 0, this);
  }
  else {
    this.getText().setVisible(true);
    g2.drawImage(small, 0, 0, this);
  }
  //Add a border, red if card currently has focus
  if (isFocusOwner()) {
   g2.setColor(Color.RED);
  } else {
   g2.setColor(Color.BLACK);
  }
  if (permanent.isTapped()) {
    g2.drawRect(0, 0, Config.dimensions.frameHeight - 1, Config.dimensions.frameWidth - 1);
  }
  else {
    g2.drawRect(0, 0, Config.dimensions.frameWidth - 1, Config.dimensions.frameHeight - 1);
  }
}

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

public BigCard(boolean rotated) {
  initComponents();
  if (!Plugins.instance.isCardPluginLoaded()) {
    initBounds(rotated);
  }
  setDoubleBuffered(true);
  setOpaque(true);
  this.scrollPane.setOpaque(true);
  this.scrollPane.setVisible(false);
}

代码示例来源:origin: mucommander/mucommander

@Override
public void setVisible(boolean visible) {
  if (visible)
    super.setVisible(true);
}

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

/**
 * Defines, whether the scroll pane of the exception stack trace area is visible.
 *
 * @param b
 *          true, if the scroller should be visible, false otherwise.
 */
protected void setScrollerVisible( final boolean b ) {
 scroller.setVisible( b );
}

代码示例来源:origin: undera/jmeter-plugins

@Override
  public void actionPerformed(ActionEvent e) {
    errorPane.setVisible(false);
    updateGui();
  }
}

代码示例来源:origin: kg.apc/jmeter-plugins-cmn-jmeter

@Override
  public void actionPerformed(ActionEvent e) {
    errorPane.setVisible(false);
    updateGui();
  }
}

代码示例来源:origin: kg.apc/jmeter-plugins-extras

@Override
  public void actionPerformed(ActionEvent e) {
    errorPane.setVisible(false);
    updateGui();
  }
}

代码示例来源:origin: com.eas.platypus/platypus-js-forms

@ScriptFunction
@Override
public void setVisible(boolean aValue) {
  super.setVisible(aValue);
}

代码示例来源:origin: undera/jmeter-plugins

@Override
  public void actionPerformed(ActionEvent e) {
    errorPane.setVisible(false);
    updateGui();
  }
}

代码示例来源:origin: undera/jmeter-plugins

@Override
  public void actionPerformed(ActionEvent e) {
    errorPane.setVisible(false);
    updateGui();
  }
}

代码示例来源:origin: undera/jmeter-plugins

private void addErrorMessage(String msg, long time) {
  errorPane.setVisible(true);
  SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss");
  String newLine = "";
  if (errorTextArea.getText().length() != 0) {
    newLine = "\n";
  }
  errorTextArea.setText(errorTextArea.getText() + newLine + formatter.format(time) + " - ERROR: " + msg);
  errorTextArea.setCaretPosition(errorTextArea.getDocument().getLength());
  updateGui();
}

代码示例来源:origin: kg.apc/jmeter-plugins-extras

private void addErrorMessage(String msg, long time) {
  errorPane.setVisible(true);
  SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss");
  String newLine = "";
  if (errorTextArea.getText().length() != 0) {
    newLine = "\n";
  }
  errorTextArea.setText(errorTextArea.getText() + newLine + formatter.format(time) + " - ERROR: " + msg);
  errorTextArea.setCaretPosition(errorTextArea.getDocument().getLength());
  updateGui();
}

代码示例来源:origin: undera/jmeter-plugins

private void addErrorMessage(String msg, long time) {
  errorPane.setVisible(true);
  SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss");
  String newLine = "";
  if (errorTextArea.getText().length() != 0) {
    newLine = "\n";
  }
  errorTextArea.setText(errorTextArea.getText() + newLine + formatter.format(time) + " - ERROR: " + msg);
  errorTextArea.setCaretPosition(errorTextArea.getDocument().getLength());
  updateGui();
}

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

private JScrollPane getStackTraceScrollPane() {
  if (stackTraceScrollPane == null) {
    stackTraceScrollPane = new JScrollPane();
    stackTraceScrollPane.setViewportView(getStackTraceTextArea());
    stackTraceScrollPane.setPreferredSize(new Dimension(500, 200));
    stackTraceScrollPane.setVisible(getStackTraceCheckBox().isSelected());
  }
  return stackTraceScrollPane;
}

代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

/**
 * Positions and sizes the overlay.
 * @param r the bounding Rectangle2D.Double for the overlay
 * @param text the text to edit
 */
public void setBounds(Rectangle2D.Double r, String text) {
  textArea.setText(text);
  editScrollContainer.setBounds(view.drawingToView(r));
  editScrollContainer.setVisible(true);
  textArea.setCaretPosition(0);
  textArea.requestFocus();
}

相关文章

JScrollPane类方法