本文整理了Java中javax.swing.JEditorPane.setUI()
方法的一些代码示例,展示了JEditorPane.setUI()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JEditorPane.setUI()
方法的具体详情如下:
包路径:javax.swing.JEditorPane
类名称:JEditorPane
方法名:setUI
暂无
代码示例来源:origin: bobbylight/RSyntaxTextArea
Color selBG = textArea.getSelectionColor();
Color selFG = textArea.getSelectedTextColor();
textArea.setUI(new javax.swing.plaf.basic.BasicEditorPaneUI());
textArea.setSelectedTextColor(selFG);
textArea.setSelectionColor(selBG);
代码示例来源:origin: net.java.abeille/abeille
public void deinstall(JEditorPane c) {
executeDeinstallActions(c);
c.setUI(null);
}
代码示例来源:origin: markiewb/nb-codeoutline
@Override
protected void setUI(ComponentUI newUI)
{
super.setUI(newUI);
fakeRepaint();
}
代码示例来源:origin: net.java.abeille/abeille
/** Called after the kit is installed into JEditorPane */
public void install(JEditorPane c) {
BaseTextUI ui = createTextUI();
c.setUI(ui);
String propName = "netbeans.editor.noinputmethods";
Object noInputMethods = System.getProperty(propName);
boolean enableIM;
if (noInputMethods != null) {
enableIM = !Boolean.getBoolean(propName);
}
else {
enableIM = SettingsUtil.getBoolean(this.getClass(), SettingsNames.INPUT_METHODS_ENABLED, true);
}
c.enableInputMethods(enableIM);
executeInstallActions(c);
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/org-netbeans-modules-editor-lib
/** Called after the kit is installed into JEditorPane */
public void install(JEditorPane c) {
BaseTextUI ui = createTextUI();
c.setUI(ui);
String propName = "netbeans.editor.noinputmethods"; // NOI18N
Object noInputMethods = System.getProperty(propName);
boolean enableIM;
if (noInputMethods != null) {
enableIM = !Boolean.getBoolean(propName);
} else {
enableIM = SettingsUtil.getBoolean(this.getClass(),
SettingsNames.INPUT_METHODS_ENABLED, true);
}
c.enableInputMethods(enableIM);
executeInstallActions(c);
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-extra
Color selBG = textArea.getSelectionColor();
Color selFG = textArea.getSelectedTextColor();
textArea.setUI(new javax.swing.plaf.basic.BasicEditorPaneUI());
textArea.setSelectedTextColor(selFG);
textArea.setSelectionColor(selBG);
代码示例来源:origin: org.nuiton.thirdparty/rsyntaxtextarea
Color selBG = textArea.getSelectionColor();
Color selFG = textArea.getSelectedTextColor();
textArea.setUI(new javax.swing.plaf.basic.BasicEditorPaneUI());
textArea.setSelectedTextColor(selFG);
textArea.setSelectionColor(selBG);
代码示例来源:origin: org.nuiton/nuiton-widgets
Color selBG = textArea.getSelectionColor();
Color selFG = textArea.getSelectedTextColor();
textArea.setUI(new javax.swing.plaf.basic.BasicEditorPaneUI());
textArea.setSelectedTextColor(selFG);
textArea.setSelectionColor(selBG);
代码示例来源:origin: com.fifesoft/autocomplete
Color selBG = textArea.getSelectionColor();
Color selFG = textArea.getSelectedTextColor();
textArea.setUI(new javax.swing.plaf.basic.BasicEditorPaneUI());
textArea.setSelectedTextColor(selFG);
textArea.setSelectionColor(selBG);
代码示例来源:origin: nroduit/Weasis
public EditorPanePrinter(JEditorPane pane, PageFormat pageFormat, Insets margins) {
JEditorPane tmpPane = new JEditorPane();
tmpPane.setUI(new BasicEditorPaneUI());
tmpPane.setContentType(pane.getContentType());
HTMLEditorKit kit = new HTMLEditorKit();
StyleSheet ss = kit.getStyleSheet();
ss.addRule(
"body {font-family:sans-serif;font-size:12pt;background-color:white;color:black;margin:3;font-weight:normal;}"); //$NON-NLS-1$
tmpPane.setEditorKit(kit);
tmpPane.setBorder(null);
tmpPane.setText(pane.getText());
this.sourcePane = tmpPane;
this.pageFormat = pageFormat;
Paper paper = pageFormat.getPaper();
this.margins = margins;
this.pageWidth = (int) paper.getWidth();
this.pageHeight = (int) paper.getHeight();
paper.setImageableArea(0, 0, paper.getWidth(), paper.getHeight());
pageFormat.setPaper(paper);
doPagesLayout();
}
代码示例来源:origin: com.fifesoft/rsyntaxtextarea
Color selBG = textArea.getSelectionColor();
Color selFG = textArea.getSelectedTextColor();
textArea.setUI(new javax.swing.plaf.basic.BasicEditorPaneUI());
textArea.setSelectedTextColor(selFG);
textArea.setSelectionColor(selBG);
内容来源于网络,如有侵权,请联系作者删除!