本文整理了Java中org.fife.ui.rtextarea.RTextScrollPane.setViewportView
方法的一些代码示例,展示了RTextScrollPane.setViewportView
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RTextScrollPane.setViewportView
方法的具体详情如下:
包路径:org.fife.ui.rtextarea.RTextScrollPane
类名称:RTextScrollPane
方法名:setViewportView
[英]Sets the view for this scroll pane. This must be an RTextArea.
[中]设置此滚动窗格的视图。这一定是个危险区域。
代码示例来源:origin: SAMLRaider/SAMLRaider
scrollPane.add(textArea);
panelText.add(scrollPane, BorderLayout.CENTER);
scrollPane.setViewportView(textArea);
代码示例来源:origin: RUB-NDS/BurpSSOExtension
finalPayload.setRows(5);
finalPayload.setSyntaxEditingStyle("text/xml");
finalPayloadScrollPane.setViewportView(finalPayload);
rTextScrollPane1.setViewportView(payloadValue);
代码示例来源:origin: UNIVALI-LITE/Portugol-Studio
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
scrollPane = new org.fife.ui.rtextarea.RTextScrollPane();
textArea = new PSTextArea(new PortugolDocumento());
setOpaque(false);
setLayout(new java.awt.BorderLayout());
scrollPane.setBorder(null);
scrollPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
scrollPane.setViewportBorder(javax.swing.BorderFactory.createEmptyBorder(3, 5, 0, 0));
scrollPane.setName("scrollPaneEditor"); // NOI18N
scrollPane.setOpaque(false);
textArea.setBorder(null);
textArea.setToolTipText("");
textArea.setCodeFoldingEnabled(true);
textArea.setName("textAreaEditor"); // NOI18N
scrollPane.setViewportView(textArea);
add(scrollPane, java.awt.BorderLayout.CENTER);
}// </editor-fold>//GEN-END:initComponents
内容来源于网络,如有侵权,请联系作者删除!