javax.swing.JScrollPane.setDoubleBuffered()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(105)

本文整理了Java中javax.swing.JScrollPane.setDoubleBuffered()方法的一些代码示例,展示了JScrollPane.setDoubleBuffered()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JScrollPane.setDoubleBuffered()方法的具体详情如下:
包路径:javax.swing.JScrollPane
类名称:JScrollPane
方法名:setDoubleBuffered

JScrollPane.setDoubleBuffered介绍

暂无

代码示例

代码示例来源:origin: edu.illinois.lis/indri

/**
 * Make the frame for displaying html documents
 */
private void  makeDocHtmlFrame() {
docHtmlFrame = new JFrame("Html");
docHtmlFrame.setIconImage(createImageIcon(iconFile).getImage());
docHtmlPane = new JTextPane();
docHtmlPane.setEditable(false);
docHtmlPane.setBackground(linen);
docHtmlPane.setForeground(Color.black);
docHtmlPane.setPreferredSize(new Dimension(550, 350));
  
JScrollPane scroll = new JScrollPane(docHtmlPane);
scroll.setDoubleBuffered(true);
docHtmlFrame.getContentPane().add(scroll, BorderLayout.CENTER);
docHtmlFrame.pack();    
docHtmlFrame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
}

代码示例来源:origin: com.bbossgroups/bboss-htmlparser

ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
mHistoryScroller.setViewportView (mHistory);
mHistoryScroller.setDoubleBuffered (false);
mPicturePanelScroller.setViewportView (mPicturePanel);
mPicturePanelScroller.setDoubleBuffered (false);
mPicturePanelScroller.setHorizontalScrollBarPolicy (
  ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);

代码示例来源:origin: edu.illinois.lis/indri

scroll.setDoubleBuffered(true);
DefaultMutableTreeNode top = new DefaultMutableTreeNode("Query");
docQueryTree = new JTree(top);
docQueryTree.setVisibleRowCount(8);
JScrollPane treeView = new JScrollPane(docQueryTree);
treeView.setDoubleBuffered(true);
docTextFrame.getContentPane().add(treeView, BorderLayout.PAGE_START);
docTextFrame.getContentPane().add(scroll, BorderLayout.CENTER);

代码示例来源:origin: org.netbeans.api/org-jruby

public ConsoleFacade(String bannerText) {
  textPane = new JTextPane();
textPane.setMargin(new Insets(4, 4, 0, 4));
  textPane.setCaretColor(new Color(0xa4, 0x00, 0x00));
  textPane.setBackground(new Color(0xf2, 0xf2, 0xf2));
  textPane.setForeground(new Color(0xa4, 0x00, 0x00));
  Font font = findFont("Monospaced", Font.PLAIN, 14,
             new String[] {"Monaco", "Andale Mono"});
  textPane.setFont(font);
  scrollPane = new JScrollPane(textPane);
  scrollPane.setDoubleBuffered(true);
  if ( bannerText != null ) {
    bannerText = "  " + bannerText + "  \n\n";
  }
  adaptor = new TextAreaReadline(textPane, bannerText);
  inputStream = adaptor.getInputStream();
  outputStream = new PrintStream(adaptor.getOutputStream());
  errorStream = new PrintStream(adaptor.getOutputStream());
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-propertyeditors

previewScrollPane.setDoubleBuffered(true);
previewScrollPane.setPreferredSize(new java.awt.Dimension(400, 150));
previewScrollPane1.setDoubleBuffered(true);
previewScrollPane1.setPreferredSize(new java.awt.Dimension(400, 350));

代码示例来源:origin: org.apache.airavata/airavata-xbaya-gui

this.scrollPane.setDoubleBuffered(true);

代码示例来源:origin: edu.illinois.lis/indri

answerAll.setPreferredScrollableViewportSize(new Dimension(600, 400));
JScrollPane scroll = new JScrollPane(answerAll);
scroll.setDoubleBuffered(true);
scroll.getViewport().setBackground(linen);
p.add(scroll, BorderLayout.CENTER);

代码示例来源:origin: sdedit/sdedit

public ZoomPane(boolean enableScrolling) {
  super();
  mouseListeners = new LinkedList<MouseListener>();
  mouseMotionListeners = new LinkedList<MouseMotionListener>();
  scale = 1;
  inheritListeners();
  setLayout(new BorderLayout());
  internal.addMouseListener(this);
  internal.addMouseMotionListener(this);
  port = new GrabbableViewport();
  port.setView(internal);
  if (enableScrolling) {
    scrollPane = new JScrollPane();
    scrollPane.setViewport(port);
    scrollPane.setDoubleBuffered(true);
    scrollPane.getVerticalScrollBar().setUnitIncrement(30);
    add(scrollPane, BorderLayout.CENTER);
  } else {
    add(internal, BorderLayout.CENTER);
  }
  root = this;
}

代码示例来源:origin: com.bbossgroups.rpc/bboss-rpc

scroll_pane.setDoubleBuffered(true);        
add(scroll_pane, BorderLayout.CENTER);
addWindowListener(this);

代码示例来源:origin: org.jgroups/com.springsource.org.jgroups

scroll_pane.setDoubleBuffered(true);        
add(scroll_pane, BorderLayout.CENTER);
addWindowListener(this);

代码示例来源:origin: tonikelope/megabasterd

elc_accounts_scrollpane.setDoubleBuffered(true);

代码示例来源:origin: AliView/AliView

alignmentScrollPane.setDoubleBuffered(paneDoubleBuff);

相关文章

JScrollPane类方法