javax.swing.JTextArea.repaint()方法的使用及代码示例

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

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

JTextArea.repaint介绍

暂无

代码示例

代码示例来源:origin: org.icepdf.os/icepdf-viewer

public void repaint(int x, int y, int width, int height) {
//        super.repaint(0, 0, getWidth(), getHeight());
    super.repaint();
  }

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

void wrap(boolean isWrap) {
  textArea.setLineWrap(isWrap);
  textArea.repaint();
}

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

private void appendMsg(String msg) {
  textArea.setText(textArea.getText() + msg + "\n");
  textArea.repaint();
}

代码示例来源:origin: org.icepdf.os/icepdf-viewer

public void valueChanged(ListSelectionEvent e) {
    int row = certificateInfoTable.getSelectedRow();
    if (row >= 0) {
      String value = (String) certificateInfoTable.getValueAt(row, 1);
      // Update text area when selection changes
      propteryValueTextAea.setText(value);
      propteryValueTextAea.repaint();
    }
  }
});

代码示例来源:origin: com.jidesoft/jide-oss

@Override
  public void repaint(long tm, int x, int y, int width, int height) {
    super.repaint(tm, x, y, width, height);
    OverlayableUtils.repaintOverlayable(this);
  }
}

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

/**
   * Appends the specified string to the shell output area.
   * @param s string to append to the shell output area.
   */
  private void addToTextArea(String s) {
    outputTextArea.append(s);
    outputTextArea.setCaretPosition(outputTextArea.getText().length());
    outputTextArea.getCaret().setVisible(true);
    outputTextArea.repaint();
  }
}

代码示例来源:origin: superzanti/ServerSync

private void internationalize() {
  setTitle(Main.strings.getString("title") + " - " + RefStrings.VERSION);
  ipLabel.setText(Main.strings.getString("server_address"));
  portLabel.setText(Main.strings.getString("server_port"));
  B_sync.setText(Main.strings.getString("go_button"));
  B_sync.setToolTipText(Main.strings.getString("button_tooltip"));
  TA_border_title.setTitle(Main.strings.getString("console_title"));
  TA_info.repaint();
}

代码示例来源:origin: nz.ac.waikato.cms.moa/moa

public void run(){
    if(!scrollPaneText.isVisible())
    {
      topWrapper.remove(scrollPaneTable);
      scrollPaneTable.setVisible(false);
      topWrapper.add(scrollPaneText, BorderLayout.CENTER);
      scrollPaneText.setVisible(true);
      topWrapper.validate();
    }
    errorTextField.setText(failedTaskReportString);
    errorTextField.repaint();
  }
}

代码示例来源:origin: org.icepdf.os/icepdf-viewer

public void repaint(int x, int y, int width, int height) {
  super.repaint(0, 0, getWidth(), getHeight());
}

代码示例来源:origin: org.infinispan/infinispan-gui-demo

@Override
  public void run() {
   if (cache != null) {
     cache.stop();
     cache = null;
   }
   if (cacheManager != null) {
     cacheManager.stop();
     cacheManager = null;
   }
   cachedDataTableModel.reset();
   configFileContents.setText("");
   configFileContents.repaint();
   configFileName.setText("");
   configFileName.repaint();
   moveCacheToState(ComponentStatus.TERMINATED);
  }
});

代码示例来源:origin: org.icepdf.os/icepdf-viewer

textArea.repaint();

代码示例来源:origin: itesla/ipst

"  end when;\n" +
    "end BouncingBall;\n");
jTextArea.repaint();
jTextArea.append("\n// see if there were any errors");
executeCommand("getErrorString()");

代码示例来源:origin: org.infinispan/infinispan-gui-demo

Util.close(is);
configFileContents.repaint();

代码示例来源:origin: org.apache.uima/uimaj-tools

getTextArea().repaint();

代码示例来源:origin: com.itextpdf/itext-rups

layout.show(panel, TEXT);
panel.repaint();
text.repaint();
return;

代码示例来源:origin: org.apache.uima/uimaj-tools

@Override
 public void itemStateChanged(ItemEvent e) {
  // a new sofa was selected. Switch to that view and update
  // display
  String sofaId = (String) e.getItem();
  this.main.setCas(this.main.getCas().getView(sofaId));
  String text = this.main.getCas().getDocumentText();
  if (text == null) {
   text = this.main.getCas().getSofaDataURI();
   if (text != null) {
    text = "SofaURI = " + text;
   } else {
    if (null != this.main.getCas().getSofaDataArray()) {
     text = "Sofa array with mime type = " + this.main.getCas().getSofa().getSofaMime();
    }
   }
  }
  String oldText = this.main.getTextArea().getText();
  if ((oldText == null) || (text == null) || !oldText.equals(text)) {
   this.main.setText(text);
  }
  if (text == null) {
   this.main.getTextArea().repaint();
  }
  this.main.updateIndexTree(true);
 }
}

相关文章

JTextArea类方法