本文整理了Java中javax.swing.JScrollPane.setFont()
方法的一些代码示例,展示了JScrollPane.setFont()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JScrollPane.setFont()
方法的具体详情如下:
包路径:javax.swing.JScrollPane
类名称:JScrollPane
方法名:setFont
暂无
代码示例来源:origin: marytts/marytts
lName3.setText("Size:");
jScrollPane1.setFont(new java.awt.Font("Courier New", 0, 10));
jTextArea1.setColumns(20);
jTextArea1.setFont(new java.awt.Font("Courier New", 0, 10));
代码示例来源:origin: marytts/marytts
lName3.setText("Size:");
jScrollPane1.setFont(new java.awt.Font("Courier New", 0, 10));
jTextArea1.setColumns(20);
jTextArea1.setFont(new java.awt.Font("Courier New", 0, 10));
代码示例来源:origin: magefree/mage
public void changeGUISize(Font font) {
txtConversation.setFont(font);
txtMessage.setFont(font);
if (jScrollPaneTxt != null) {
jScrollPaneTxt.setFont(font);
jScrollPaneTxt.getVerticalScrollBar().setPreferredSize(new Dimension(GUISizeHelper.scrollBarSize, 0));
jScrollPaneTxt.getHorizontalScrollBar().setPreferredSize(new Dimension(0, GUISizeHelper.scrollBarSize));
}
int height = 30;
if (font.getSize() > 20) {
height = 30 + Math.min(font.getSize() - 10, 30);
}
txtMessage.setMinimumSize(new Dimension(20, height));
txtMessage.setMaximumSize(new Dimension(txtMessage.getWidth(), height));
txtMessage.setPreferredSize(new Dimension(txtMessage.getWidth(), height));
txtMessage.setSize(new Dimension(txtMessage.getWidth(), height));
if (connectedChat != null) {
connectedChat.changeGUISize(font);
}
}
代码示例来源:origin: beanshell/beanshell
public void setFont( Font font ) {
super.setFont( font );
if ( text != null )
text.setFont( font );
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction
@Override
public void setFont(Font aFont) {
super.setFont(aFont);
}
代码示例来源:origin: org.cytoscape/webservice-impl
mainScrollPane.setFont(new java.awt.Font("SansSerif", 0, 12));
代码示例来源:origin: org.cytoscape/swing-application-impl
mainScrollPane.setFont(new java.awt.Font("SansSerif", 0, 12));
代码示例来源:origin: org.java.net.substance/substance
paletteLabel.setFont(font);
paletteCombo.setFont(font);
paletteScrollPane.setFont(font);
paletteList.setFont(font);
代码示例来源:origin: com.github.insubstantial/substance
paletteLabel.setFont(font);
paletteCombo.setFont(font);
paletteScrollPane.setFont(font);
paletteList.setFont(font);
代码示例来源:origin: de.dfki.mary/marytts-runtime
lName3.setText("Size:");
jScrollPane1.setFont(new java.awt.Font("Courier New", 0, 10));
jTextArea1.setColumns(20);
jTextArea1.setFont(new java.awt.Font("Courier New", 0, 10));
代码示例来源:origin: cytoscape/application
mainScrollPane.setFont(new java.awt.Font("SansSerif", 0, 12));
内容来源于网络,如有侵权,请联系作者删除!