Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Can Choice components respond to keyboard input like HTML Choice components?

Reply
Thread Tools

Can Choice components respond to keyboard input like HTML Choice components?

 
 
Mickey Segal
Guest
Posts: n/a
 
      02-02-2004
Users expect Choice components to respond to keyboard input similarly to
HTML Choice components. This keyboard-responsiveness is not coded into
standard Java Choice components. One would expect that adding appropriate
listeners and events could produce the HTML-like functionality, but this
does not appear to work.

At http://segal.org/java/ChoiceKey2/index.html is a small working applet
with full source code to demonstrate this problem. The desired behavior
occurs with neither the Sun JVM nor the Microsoft JVM; each departs from
user expectations in different ways.

Is there some way to do this properly in Java 1.1 (without Swing) or is this
a limitation of dealing with native components that can't be overcome in
this environment?


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why my applet can't display components like JButton or JTextField, but JLabel is well feofao@gmail.com Java 5 12-26-2005 02:24 AM
can I use scanf to get input (some times user enters input sometimes not, just hit keyboard)? santa19992000@yahoo.com C Programming 4 09-09-2005 03:38 AM
SWING components adjustment in different resolutions - Should show scrollbars less than 800X600 and expand components over this resolution Bluetears76 Java 1 07-01-2004 09:01 PM
Re: When I restart Windows XP from the Start menu the keyboard and mouse will not respond but.... T. Hardy A+ Certification 0 01-21-2004 06:12 AM
Re: When I restart Windows XP from the Start menu the keyboard and mouse will not respond but.... D V. Brown A+ Certification 0 01-20-2004 03:55 AM



Advertisments