Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #3053 > unrolled thread

Events

Started by"Akki" <akki@THRWHITE.remove-dii-this>
First post2011-04-27 15:42 +0000
Last post2011-04-27 15:42 +0000
Articles 4 — 2 participants

Back to article view | Back to comp.lang.java.gui


Contents

  Events "Akki" <akki@THRWHITE.remove-dii-this> - 2011-04-27 15:42 +0000
    Re: Events "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:42 +0000
      Re: Events "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:42 +0000
        Re: Events "Akki" <akki@THRWHITE.remove-dii-this> - 2011-04-27 15:42 +0000

#3053 — Events

From"Akki" <akki@THRWHITE.remove-dii-this>
Date2011-04-27 15:42 +0000
SubjectEvents
Message-ID<9bc8a93a-d0d5-47f3-b642-82e997fc158a@i7g2000prf.googlegroups.com>
  To: comp.lang.java.gui
Hi,

I am a new to GUI programming in Java. I want to creat a GUI in which
I will ask the user to write a word in the Text field, based on which
the s/w will call certain functions. I have created JFrame inside
which I have made a JDesktopPane, inside which I have the JScrollPane
with the JTextArea.
I have registered the KeyPressed Event with the JTextArea. But when I
write something and press Enter, the Event is not recognized and the
appropriate action is not taken.

How do I solve this issue ?

TIA,
Darth

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [next] | [standalone]


#3054

From"Roedy Green" <roedy.green@THRWHITE.remove-dii-this>
Date2011-04-27 15:42 +0000
Message-ID<c0cfp311remep9bg5snid16deg8gon70m7@4ax.com>
In reply to#3053
  To: comp.lang.java.gui
On Wed, 23 Jan 2008 10:08:53 -0800 (PST), Akki
<lodhaakhil85@gmail.com> wrote, quoted or indirectly quoted someone
who said :

>I have registered the KeyPressed Event with the JTextArea. But when I
>write something and press Enter, the Event is not recognized and the
>appropriate action is not taken.

A KeyPressed event is a low level event.  It gets converted to various
other types of event.  Check the JavaDoc for JTextArea to see what
sorts of listeners it likes.

See http://mindprod.com/jgloss/event.html
http://mindprod.com/jgloss/jtextarea.html
-- 
Roedy Green, Canadian Mind Products
The Java Glossary, http://mindprod.com

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#3055

From"Roedy Green" <roedy.green@THRWHITE.remove-dii-this>
Date2011-04-27 15:42 +0000
Message-ID<0pnfp3po4mfda79eu4l4dbeqjprq9tla2j@4ax.com>
In reply to#3054
  To: comp.lang.java.gui
On Wed, 23 Jan 2008 21:23:09 GMT, Roedy Green
<see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted
someone who said :

>http://mindprod.com/jgloss/event.html
oops
http://mindprod.com/jgloss/event11.html
-- 
Roedy Green, Canadian Mind Products
The Java Glossary, http://mindprod.com

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [next] | [standalone]


#3058

From"Akki" <akki@THRWHITE.remove-dii-this>
Date2011-04-27 15:42 +0000
Message-ID<0a71e669-74f9-4fa5-8960-715a9108de91@m34g2000hsf.googlegroups.com>
In reply to#3055
  To: comp.lang.java.gui
Got it working. Thanks !
On Jan 24, 5:43 am, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
> On Wed, 23 Jan 2008 21:23:09 GMT, Roedy Green
> <see_webs...@mindprod.com.invalid> wrote, quoted or indirectly quoted
> someone who said :
>
> >http://mindprod.com/jgloss/event.html
>
> oopshttp://mindprod.com/jgloss/event11.html
> --
> Roedy Green, Canadian Mind Products
> The Java Glossary,http://mindprod.com

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web