Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

JTextField with drop down list box

Thread view: 
yancheng.cheok@gmail.com - 27 Apr 2007 20:20 GMT
hello all, may i know how can i have a JTextField component, where it
is able to display the JList drop down from time to time just like the
one in

http://www.google.com/webhp?complete=1&hl=en

Currently, the engine which is used to performed word completion is
completed. I just lacked of a gui component.

Thank you.

cheok
Knute Johnson - 27 Apr 2007 21:26 GMT
> hello all, may i know how can i have a JTextField component, where it
> is able to display the JList drop down from time to time just like the
[quoted text clipped - 8 lines]
>
> cheok

What you want is a JComboBox.

Signature

Knute Johnson
email s/nospam/knute/

yancheng.cheok@gmail.com - 28 Apr 2007 06:41 GMT
Nope. I do not watnt a combo box. I do not want to have the arrow at
the right side.

On Apr 28, 4:26 am, Knute Johnson <nos...@rabbitbrush.frazmtn.com>
wrote:
> yancheng.ch...@gmail.com wrote:
> > hello all, may i know how can i have a JTextField component, where it
[quoted text clipped - 16 lines]
> Knute Johnson
> email s/nospam/knute/
Knute Johnson - 28 Apr 2007 07:25 GMT
Well then write your own component.

k...

> Nope. I do not watnt a combo box. I do not want to have the arrow at
> the right side.
[quoted text clipped - 16 lines]
>> Knute Johnson
>> email s/nospam/knute/

Signature

Knute Johnson
email s/nospam/knute/

Knitter - 28 Apr 2007 10:57 GMT
You either write your own componet from scratch or extend one that
already exist. You could, like Knute Johnson said, use the JComboBox
componet and extend it so that it does not show the arrow. Just remove
what you don't want and keep what you need.
yancheng.cheok@gmail.com - 28 Apr 2007 18:20 GMT
Can you give me some hints on how to remove the arrow?
Eric Sosman - 30 Apr 2007 15:45 GMT
yancheng.cheok@gmail.com wrote On 04/28/07 13:20,:
> Can you give me some hints on how to remove the arrow?

   Use a JComboBox with a customized renderer and/or
editor, as described in the "Java Tutorial."

Signature

Eric.Sosman@sun.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.