javax.swing.JEditorPane.updateUI()方法的使用及代码示例

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

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

JEditorPane.updateUI介绍

暂无

代码示例

代码示例来源:origin: org.xworker/xworker_swt

@Override
public void controlResized(ControlEvent arg0) {
  if(editorPane != null) {
    editorPane.updateUI();
  }
}

代码示例来源:origin: de.dfki.mary/marytts-transcription

private void helpMenuItemActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_helpMenuItemActionPerformed
  try {
    htmlEditor.setContentType("text/html; charset=UTF-8");
    htmlEditor
        .read(new InputStreamReader(TranscriptionGUI.class.getResourceAsStream("instructions.html"), "UTF-8"), null);
    htmlEditor.setPreferredSize(new Dimension(500, 400));
    htmlEditor.setEditable(true);
    htmlEditor.updateUI();
    startUpHelpDialog.setSize(new Dimension(700, 500));
    startUpHelpDialog.repaint();
    closeHelp.grabFocus();
    startUpHelpDialog.setVisible(true);
    startUpHelpDialog.repaint();
  } catch (IOException e) {
    e.printStackTrace();
    System.out.println("Could not read file : " + e.getMessage());
  }
}// GEN-LAST:event_helpMenuItemActionPerformed

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/org-netbeans-modules-editor-lib

public void deinstall(JEditorPane c) {
  executeDeinstallActions(c);
  c.updateUI();
  
  // #41209: reset ancestor override flag if previously set
  if (c.getClientProperty("ancestorOverride") != null) { // NOI18N
    c.putClientProperty("ancestorOverride", Boolean.FALSE); // NOI18N
  }
}

代码示例来源:origin: net.sourceforge.ondex.apps/ovtk2

System.out.println(pane.getText());
curr = e;
pane.updateUI();
pane.repaint();

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

@Override
public void updateUI() {
  super.updateUI();
  if (samplePanel != null) {
    samplePanel.updateUI();
    setBackground(samplePanel.getBackground());
    updateUIData();
  }
}

相关文章

JEditorPane类方法