本文整理了Java中javax.swing.JTextArea.getPreferredScrollableViewportSize()
方法的一些代码示例,展示了JTextArea.getPreferredScrollableViewportSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextArea.getPreferredScrollableViewportSize()
方法的具体详情如下:
包路径:javax.swing.JTextArea
类名称:JTextArea
方法名:getPreferredScrollableViewportSize
暂无
代码示例来源:origin: com.akiban/akiban-persistit
textArea.setBackground(Color.white);
wrappedComponent = new JScrollPane(textArea);
wrappedComponent.setMinimumSize(textArea.getPreferredScrollableViewportSize());
registerTextComponent(textArea);
代码示例来源:origin: danfickle/openhtmltopdf
public Dimension getPreferredScrollableViewportSize() {
Dimension size = super.getPreferredScrollableViewportSize();
size = (size == null) ? new Dimension(400,400) : size;
Insets insets = getInsets();
size.width = (getColumns() == 0) ? size.width : getColumns() * getColumnWidth() + insets.left + insets.right;
size.height = (getRows() == 0) ? size.height : getRows() * getRowHeight() + insets.top + insets.bottom;
return size;
}
}
代码示例来源:origin: org.docx4j/xhtmlrenderer
public Dimension getPreferredScrollableViewportSize() {
Dimension size = super.getPreferredScrollableViewportSize();
size = (size == null) ? new Dimension(400,400) : size;
Insets insets = getInsets();
size.width = (getColumns() == 0) ? size.width : getColumns() * getColumnWidth() + insets.left + insets.right;
size.height = (getRows() == 0) ? size.height : getRows() * getRowHeight() + insets.top + insets.bottom;
return size;
}
}
代码示例来源:origin: com.google.code.maven-play-plugin.org.xhtmlrenderer/core-renderer
public Dimension getPreferredScrollableViewportSize() {
Dimension size = super.getPreferredScrollableViewportSize();
size = (size == null) ? new Dimension(400,400) : size;
Insets insets = getInsets();
size.width = (getColumns() == 0) ? size.width : getColumns() * getColumnWidth() + insets.left + insets.right;
size.height = (getRows() == 0) ? size.height : getRows() * getRowHeight() + insets.top + insets.bottom;
return size;
}
}
代码示例来源:origin: stackoverflow.com
textArea.setPreferredSize( textArea.getPreferredScrollableViewportSize() );
内容来源于网络,如有侵权,请联系作者删除!