Method getViewport()
Return type: javax.swing.JViewport
Member of: javax.swing.JScrollPane
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 public void setPane(Component lc) {mPane.getViewport().setView(lc);}
2 public void setPane(Component lc) {mPane.getViewport().setView(lc);}
3 tempScrollPane.getViewport().add(p);
4 JViewport vp = sp.getViewport();
5 jScrollPane1.getViewport().add(elfListBox1, null);
6 this.getViewport().add(jList1, BorderLayout.CENTER);
7 scrollPane.getViewport().add(textArea, null);
8 textArea_ = (JTextArea)getViewport().getView();
9 if ( getViewport() == null || getViewport().getView() == null ) {
10 tempScrollPane1.getViewport().add(centerTextArea);
11 JViewport viewport = scrollPane.getViewport();
12 scrollPane.getViewport().setView(xpathResultList);
13 scroller.getViewport().setViewPosition(pt);
14 JViewport vp = sp.getViewport();
15 return (HybridTable) jsp.getViewport().getView();
16 myScrollPane.getViewport().removeAll();
17 super.getViewport().setOpaque(false);
18 JViewport v = chatTextScrollPane.getViewport();
19 groupView = (JComponent)getViewport().getView();
20 jScrollPane1.getViewport().add(jTextArea_message, null);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.