本文整理了Java中javax.swing.JEditorPane.setMargin()
方法的一些代码示例,展示了JEditorPane.setMargin()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JEditorPane.setMargin()
方法的具体详情如下:
包路径:javax.swing.JEditorPane
类名称:JEditorPane
方法名:setMargin
暂无
代码示例来源:origin: sarahtattersall/PIPE
private void setupResults() {
resultsPane.setEditable(false);
resultsPane.setMargin(new Insets(5, 5, 5, 5));
resultsPane.setContentType("text/html");
JScrollPane scrollPane = new JScrollPane(resultsPane);
scrollPane.setPreferredSize(new Dimension(600, 600));
scrollPane.setBorder(new BevelBorder(BevelBorder.LOWERED));
this.add(scrollPane);
}
代码示例来源:origin: stefanhaustein/nativehtml
void configureEditor(JEditorPane editor) {
final Dictionary<URL, Image> imageCache = ((SwingPlatform) document.getPlatform()).imageCache;
editor.setEditorKit(new HTMLEditorKit() {
@Override
public javax.swing.text.Document createDefaultDocument() {
HTMLDocument result = (HTMLDocument) super.createDefaultDocument();
try {
result.setBase(document.getUrl().toURL());
} catch (MalformedURLException e) {
e.printStackTrace();
}
result.putProperty("imageCache", imageCache);
return result;
}
});
editor.setMargin(new Insets(0,0,0,0));
editor.setOpaque(false);
editor.setEditable(false);
}
代码示例来源:origin: onyxbits/Raccoon
message.setMargin(new Insets(10, 10, 10, 10));
progress = new JProgressBar();
progress.setIndeterminate(true);
代码示例来源:origin: de.sciss/scisslib
gbc.fill = 2;
ggCredits = new JEditorPane();
ggCredits.setMargin(new Insets(2, 4, 2, 4));
ggCredits.setEditable(false);
scrollCredits = new JScrollPane(ggCredits);
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-ui
PreviewPane.setMargin(new Insets(4, 4, 4, 4));
JScrollPane previewViewport = new JScrollPane(PreviewPane);
previewViewport.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
代码示例来源:origin: notzippy/JALOPY2-MAIN
_textArea.setEditable(false);
_textArea.setCaretPosition(0);
_textArea.setMargin(new Insets(2, 2, 2, 2));
_textArea.setOpaque(true);
_textArea.setEditorKit(kit);
_textOriginal.setEditable(false);
_textOriginal.setCaretPosition(0);
_textOriginal.setMargin(new Insets(2, 2, 2, 2));
_textOriginal.setOpaque(true);
_textOriginal.setEditorKit(new SyntaxEditorKit());
代码示例来源:origin: com.haulmont.thirdparty/swingx-core
editor.setEditable(false);
editor.setBorder(null);
editor.setMargin(null);
editor.setOpaque(false);
tipScroll.getViewport().setView(editor);
代码示例来源:origin: org.swinglabs.swingx/swingx-all
editor.setEditable(false);
editor.setBorder(null);
editor.setMargin(null);
editor.setOpaque(false);
tipScroll.getViewport().setView(editor);
代码示例来源:origin: lbalazscs/Pixelitor
editor.setEditable(false);
editor.setBorder(null);
editor.setMargin(null);
editor.setOpaque(false);
tipScroll.getViewport().setView(editor);
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core
editor.setEditable(false);
editor.setBorder(null);
editor.setMargin(null);
editor.setOpaque(false);
tipScroll.getViewport().setView(editor);
代码示例来源:origin: org.swinglabs.swingx/swingx-core
editor.setEditable(false);
editor.setBorder(null);
editor.setMargin(null);
editor.setOpaque(false);
tipScroll.getViewport().setView(editor);
代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop
editor.setEditable(false);
editor.setBorder(null);
editor.setMargin(null);
editor.setOpaque(false);
tipScroll.getViewport().setView(editor);
代码示例来源:origin: onyxbits/Raccoon
buttons.add(permissions);
entry = new HypertextPane(TmplTool.transform("app.html", model)); //$NON-NLS-1$
entry.setMargin(new Insets(10, 10, 10, 10));
entry.addHyperlinkListener(new BrowseUtil());
代码示例来源:origin: org.netbeans.api/org-jruby
text.setMargin(new Insets(8,8,8,8));
text.setCaretColor(new Color(0xa4, 0x00, 0x00));
text.setBackground(new Color(0xf2, 0xf2, 0xf2));
代码示例来源:origin: freeplane/freeplane
tip.setMargin(new Insets(0, 0, 0, 0));
final LinkMouseListener linkMouseListener = new LinkMouseListener();
tip.addMouseListener(linkMouseListener);
内容来源于网络,如有侵权,请联系作者删除!