Hai,
One option is use grabFocus() method.cursor is
still not there ,use SwingUtilities.invokeLater and
then grabFocus().I hope this might solve ur problem.
gvkrishnan
--- [EMAIL PROTECTED] wrote: > Send Swing mailing
list submissions to
> [EMAIL PROTECTED]
>
> To subscribe or unsubscribe via the World Wide Web,
> visit
> http://eos.dk/mailman/listinfo/swing
> or, via email, send a message with subject or body
> 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it
> is more specific
> than "Re: Contents of Swing digest..."
>
>
> Today's Topics:
>
> 1. passing the focus to next component (John A.
> Preston)
> 2. how to capture window resizing? (Song,
> Mingjian)
> 3. Re: how to capture window resizing? (Dmitry
> Beransky)
> 4. Re: passing the focus to next component
> (Dmitry Beransky)
>
> --__--__--
>
> Message: 1
> Date: Wed, 27 Feb 2002 04:51:02 -0500
> From: "John A. Preston" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: passing the focus to next component
> Organization: ICENS, University of the West Indies
>
> Hi, I'm having a problem passing the focus from one
> JTextField to another when the user presses the
> ENTER key. Only when they press the TAB key does the
> focus pass on to the next JTextField. I have a
> keyListener and know when the user presses the ENTER
> key but I donb't know how to pass the focus to the
> next JTextField.
>
>
> John
>
> --__--__--
>
> Message: 2
> From: "Song, Mingjian" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: how to capture window resizing?
> Date: Wed, 27 Feb 2002 17:23:57 -0500
>
> Hi, All,
>
> Is it possible to capture the event that a window
> is resizing?
>
> ComponentListener fires ComponentEvent when the
> window is resized, but this event only occurs
> AFTER the user stops dragging and releases
> the mouse.
>
> What I want is to capture the fact that the mouse is
>
> still dragging and the window size is changing ...
>
> Any idea?
>
> Thanks,
>
> Mingjian Song
>
> -----------------------------------------------
> Mingjian Song (TAL) [EMAIL PROTECTED] X 1638
> -----------------------------------------------
>
>
>
> --__--__--
>
> Message: 3
> Date: Wed, 27 Feb 2002 18:52:42 -0800
> To: [EMAIL PROTECTED]
> From: Dmitry Beransky <[EMAIL PROTECTED]>
> Subject: Re: how to capture window resizing?
>
> At 02:23 PM 2/27/2002, Song, Mingjian wrote:
> >Is it possible to capture the event that a window
> >is resizing?
>
> You need to work with a WindowListener
>
<http://java.sun.com/j2se/1.3/docs/api/java/awt/Window.html#addWindowListener(java.awt.event.WindowListener)>
>
>
> --__--__--
>
> Message: 4
> Date: Wed, 27 Feb 2002 18:57:28 -0800
> To: [EMAIL PROTECTED]
> From: Dmitry Beransky <[EMAIL PROTECTED]>
> Subject: Re: passing the focus to next component
>
> Have you tried FocusManager.focusNextComponent() or
> DefaultFocusManager.getComponentAfter()?
>
> At 01:51 AM 2/27/2002, John A. Preston wrote:
> >Hi, I'm having a problem passing the focus from one
> JTextField to another
> >when the user presses the ENTER key. Only when they
> press the TAB key does
> >the focus pass on to the next JTextField. I have a
> keyListener and know
> >when the user presses the ENTER key but I donb't
> know how to pass the
> >focus to the next JTextField.
>
>
>
> --__--__--
>
> _______________________________________________
> Swing mailing list
> [EMAIL PROTECTED]
> http://eos.dk/mailman/listinfo/swing
>
>
> End of Swing Digest
________________________________________________________________________
Looking for a job? Visit Yahoo! India Careers
Visit http://in.careers.yahoo.com
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing