java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JScrollPane
- All Implemented Interfaces:
- ImageObserver, MenuContainer, Serializable, Accessible, ScrollPaneConstants
- See Also:
- Top Examples, Source Code,
XMLEncoder
, JScrollBar
,
JViewport
,
ScrollPaneLayout
,
Scrollable
,
Component.getPreferredSize()
,
setViewportView(java.awt.Component)
,
setRowHeaderView(java.awt.Component)
,
setColumnHeaderView(java.awt.Component)
,
setCorner(java.lang.String, java.awt.Component)
,
setViewportBorder(javax.swing.border.Border)
protected JViewport columnHeader
- See Also:
setColumnHeader(javax.swing.JViewport)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JScrollBar createHorizontalScrollBar()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JScrollBar createVerticalScrollBar()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected JViewport createViewport()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public AccessibleContext getAccessibleContext()
- See Also:
- JComponent, Accessible
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JViewport getColumnHeader()
- See Also:
setColumnHeader(javax.swing.JViewport)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Component getCorner(String key)
- See Also:
setCorner(java.lang.String, java.awt.Component)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JScrollBar getHorizontalScrollBar()
- See Also:
setHorizontalScrollBar(javax.swing.JScrollBar)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getHorizontalScrollBarPolicy()
- See Also:
setHorizontalScrollBarPolicy(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JViewport getRowHeader()
- See Also:
setRowHeader(javax.swing.JViewport)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public ScrollPaneUI getUI()
- See Also:
setUI(javax.swing.plaf.ScrollPaneUI)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String getUIClassID()
- See Also:
UIDefaults.getUI(javax.swing.JComponent)
, JComponent
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JScrollBar getVerticalScrollBar()
- See Also:
setVerticalScrollBar(javax.swing.JScrollBar)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getVerticalScrollBarPolicy()
- See Also:
setVerticalScrollBarPolicy(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JViewport getViewport()
- See Also:
setViewport(javax.swing.JViewport)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Border getViewportBorder()
- See Also:
setViewportBorder(javax.swing.border.Border)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Rectangle getViewportBorderBounds()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected JScrollBar horizontalScrollBar
- See Also:
setHorizontalScrollBar(javax.swing.JScrollBar)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected int horizontalScrollBarPolicy
- See Also:
setHorizontalScrollBarPolicy(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isValidateRoot()
- See Also:
JComponent.revalidate()
, Container.validate()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isWheelScrollingEnabled()
- See Also:
setWheelScrollingEnabled(boolean)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JScrollPane()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[839]Top panel
By Anonymous on 2004/07/19 09:15:19 Rate
JPanel topPanel = new JPanel ( ) ;
topPanel.setLayout ( new BorderLayout ( ) ) ;
laFen??tre.getContentPane ( ) .add ( topPanel ) ;
//j1.setVerticalScrollBarPolicy ( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS ) ;
champ1.setBounds ( 55,100,500,100 ) ;
jl0.add ( champ1 ) ;
scrollPane = new JScrollPane ( ) ;
scrollPane.getViewport ( ) .add ( jl0 ) ;
topPanel.add ( scrollPane, BorderLayout.CENTER ) ;
laFen??tre.getContentPane ( ) .add ( champ1 ) ;
//laFen??tre.getContentPane ( ) .add ( j1 ) ;
public JScrollPane(int vsbPolicy,
int hsbPolicy)
- See Also:
setViewportView(java.awt.Component)
, setHorizontalScrollBarPolicy(int)
, setVerticalScrollBarPolicy(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public JScrollPane(Component view)
- See Also:
setViewportView(java.awt.Component)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[55]Scroll Pane Demo
By Anonymous on 2002/10/08 10:52:06 Rate
import java.awt.*;
import javax.swing.*;
public class ScrollPaneDemo extends JFrame
{
public ScrollPaneDemo ( ) {
super ( "JScrollPane Demo" ) ;
ImageIcon ii = new ImageIcon ( "earth.jpg" ) ;
JScrollPane jsp = new JScrollPane ( new JLabel ( ii ) ) ;
getContentPane ( ) .add ( jsp ) ;
setSize ( 300,250 ) ;
setVisible ( true ) ;
}
public static void main ( String [ ] args ) {
new ScrollPaneDemo ( ) ;
}
}
public JScrollPane(Component view,
int vsbPolicy,
int hsbPolicy)
- See Also:
setViewportView(java.awt.Component)
, setHorizontalScrollBarPolicy(int)
, setVerticalScrollBarPolicy(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected Component lowerLeft
- See Also:
setCorner(java.lang.String, java.awt.Component)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected Component lowerRight
- See Also:
setCorner(java.lang.String, java.awt.Component)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected String paramString()
- See Also:
- JComponent
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected JViewport rowHeader
- See Also:
setRowHeader(javax.swing.JViewport)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setColumnHeader(JViewport columnHeader)
- See Also:
setColumnHeaderView(java.awt.Component)
, getColumnHeader()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setColumnHeaderView(Component view)
- See Also:
JViewport.setView(java.awt.Component)
, setColumnHeader(javax.swing.JViewport)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setComponentOrientation(ComponentOrientation co)
- See Also:
- Component
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setCorner(String key,
Component corner)
- See Also:
- IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setHorizontalScrollBar(JScrollBar horizontalScrollBar)
- See Also:
getHorizontalScrollBar()
, createHorizontalScrollBar()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setHorizontalScrollBarPolicy(int policy)
- See Also:
getHorizontalScrollBarPolicy()
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setLayout(LayoutManager layout)
- See Also:
Container.getLayout()
, ClassCastException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setRowHeader(JViewport rowHeader)
- See Also:
setRowHeaderView(java.awt.Component)
, getRowHeader()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setRowHeaderView(Component view)
- See Also:
JViewport.setView(java.awt.Component)
, setRowHeader(javax.swing.JViewport)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setUI(ScrollPaneUI ui)
- See Also:
getUI()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setVerticalScrollBar(JScrollBar verticalScrollBar)
- See Also:
getVerticalScrollBar()
, createVerticalScrollBar()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setVerticalScrollBarPolicy(int policy)
- See Also:
getVerticalScrollBarPolicy()
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setViewport(JViewport viewport)
- See Also:
setViewportView(java.awt.Component)
, getViewport()
, createViewport()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setViewportBorder(Border viewportBorder)
- See Also:
setViewport(javax.swing.JViewport)
, getViewportBorder()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setViewportView(Component view)
- See Also:
JViewport.setView(java.awt.Component)
, setViewport(javax.swing.JViewport)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setWheelScrollingEnabled(boolean handleWheel)
- See Also:
MouseWheelListener
, MouseWheelEvent
, isWheelScrollingEnabled()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void updateUI()
- See Also:
UIManager.getUI(javax.swing.JComponent)
, JComponent
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected Component upperLeft
- See Also:
setCorner(java.lang.String, java.awt.Component)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected Component upperRight
- See Also:
setCorner(java.lang.String, java.awt.Component)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected JScrollBar verticalScrollBar
- See Also:
setVerticalScrollBar(javax.swing.JScrollBar)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected int verticalScrollBarPolicy
- See Also:
setVerticalScrollBarPolicy(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
protected JViewport viewport
- See Also:
setViewport(javax.swing.JViewport)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples