本文整理了Java中javax.swing.JEditorPane.setFocusable()
方法的一些代码示例,展示了JEditorPane.setFocusable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JEditorPane.setFocusable()
方法的具体详情如下:
包路径:javax.swing.JEditorPane
类名称:JEditorPane
方法名:setFocusable
暂无
代码示例来源:origin: GoldenGnu/jeveassets
private static JEditorPane getMessage(File file) {
JLabel jLabel = new JLabel();
JEditorPane jEditorPane = new JEditorPane("text/html", "");
jEditorPane.setEditable(false);
jEditorPane.setFocusable(false);
jEditorPane.setOpaque(false);
jEditorPane.setText("<html><body style=\"font-family: " + jLabel.getFont().getName() + "; font-size: " + jLabel.getFont().getSize() + "pt\">"
+ General.get().fileLockMsg(file.getName())
+ "</body></html>");
jEditorPane.addHyperlinkListener(DesktopUtil.getHyperlinkListener(null));
return jEditorPane;
}
}
代码示例来源:origin: org.gephi/desktop-import
reportEditor.setFocusable(false);
tab2ScrollPane.setViewportView(reportEditor);
代码示例来源:origin: GoldenGnu/jeveassets
public DonePanel() {
jResult = new JLabel();
jResult.setFont(new Font(this.getFont().getName(), Font.BOLD, this.getFont().getSize()));
jHelp = new JEditorPane("text/html", "");
//jHelp.setLineWrap(true);
//jHelp.setWrapStyleWord(true);
jHelp.addHyperlinkListener(DesktopUtil.getHyperlinkListener(getDialog()));
jHelp.setFont(this.getFont());
jHelp.setEditable(false);
jHelp.setOpaque(false);
jHelp.setFocusable(false);
jHelp.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
JScrollPane jScroll = new JScrollPane(jHelp, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
jScroll.setBorder(BorderFactory.createLineBorder(this.getBackground().darker(), 1));
cardLayout.setHorizontalGroup(
cardLayout.createParallelGroup()
.addGroup(cardLayout.createSequentialGroup()
.addGap(5)
.addComponent(jResult)
)
.addComponent(jScroll, 400, 400, 400)
);
cardLayout.setVerticalGroup(
cardLayout.createSequentialGroup()
.addComponent(jResult, Program.getButtonsHeight(), Program.getButtonsHeight(), Program.getButtonsHeight())
.addComponent(jScroll, 98, 98, 98)
);
}
代码示例来源:origin: org.gephi/desktop-import
reportEditor.setFocusable(false);
tab2ScrollPane.setViewportView(reportEditor);
代码示例来源:origin: GoldenGnu/jeveassets
jHelp.setFont(getFont());
jHelp.setEditable(false);
jHelp.setFocusable(false);
jHelp.setOpaque(false);
jHelp.addHyperlinkListener(DesktopUtil.getHyperlinkListener(getDialog()));
代码示例来源:origin: GoldenGnu/jeveassets
jHelp.setFont(getFont());
jHelp.setEditable(false);
jHelp.setFocusable(false);
jHelp.setOpaque(false);
代码示例来源:origin: net.sf.taverna.t2.ui-components/credential-manager-ui
message.setEditable(false);
message.setBackground(this.getBackground());
message.setFocusable(false);
HTMLEditorKit kit = new HTMLEditorKit();
message.setEditorKit(kit);
代码示例来源:origin: net.sf.taverna.t2.ui-impl/workbench-impl
termsAndConditionsURL.setEditable(false);
termsAndConditionsURL.setBackground(this.getBackground());
termsAndConditionsURL.setFocusable(false);
HTMLEditorKit kit = new HTMLEditorKit();
termsAndConditionsURL.setEditorKit(kit);
代码示例来源:origin: GoldenGnu/jeveassets
jHelp.setFont(getFont());
jHelp.setEditable(false);
jHelp.setFocusable(false);
jHelp.setOpaque(false);
jHelp.addHyperlinkListener(DesktopUtil.getHyperlinkListener(getDialog()));
内容来源于网络,如有侵权,请联系作者删除!