Re: doubt in JScrollpane
- From: Michael Rauscher <michlmann@xxxxxx>
- Date: Fri, 29 Apr 2005 00:14:43 +0200
Hi Anitha,
Anitha Namachivayam via JavaKB.com schrieb:
Hello,
my image size is big, so i added jscrollpane. when i drag to select the full image, jscrollpane is not moving automatically...
AFAIK JScrollPane doesn't move automatically. It's your component which receives the drag events. You need a MouseMotionListener that handles drag events in order to scroll the component properly.
Also note JComponent#setAutoscrolls.
A very good point to start is http://java.sun.com/docs/books/tutorial/uiswing/components/scrollpane.html
Bye Michael
.
- References:
- doubt in JScrollpane
- From: Anitha Namachivayam via JavaKB.com
- doubt in JScrollpane
- Prev by Date: Re: doubt in JScrollpane
- Next by Date: Re: Horizontal wrap with JScrollPane
- Previous by thread: Re: doubt in JScrollpane
- Next by thread: JTextPane Paste
- Index(es):