Java swings

Hi friends...

I am new to java...

I am designing a JFrame with a textbox,listbox

I am reading the items from a file and iserted thats into the list box...

now one more thing I would like to do is that if I type any text inside the textbox

either the item similar to the text or starting from the text should automatically focussed. if u have any source code please send me....

u might have seen this logic in many application

regards

dinesh

[495 byte] By [dinesh_sbma] at [2007-11-26 18:39:58]
# 1
its not very tough...just add a key listener to the text box and in the event method, loop through the list values and check if it matches the textbox value...and set the value of the list if something matches...
ganesh_renganathana at 2007-7-9 6:14:00 > top of Java-index,Java Essentials,New To Java...
# 2

> Hi friends...

> I am new to java...

> I am designing a JFrame with a textbox,listbox

> I am reading the items from a file and iserted thats

> into the list box...

> now one more thing I would like to do is that if I

> type any text inside the textbox

> either the item similar to the text or starting from

> the text should automatically focussed. if u have any

> source code please send me....

> u might have seen this logic in many application

This isn't orkut(I hate it) where people send you scraps. All discussions take place in the forum and no one's going to send you any code. Give it a shot and produce your ideas and the forum members would be there to help.

Here's the swing tutorials

http://java.sun.com/docs/books/tutorial/uiswing/

And this is the tutorials on event listeners

http://java.sun.com/docs/books/tutorial/uiswing/events/index.html

qUesT_foR_knOwLeDgea at 2007-7-9 6:14:00 > top of Java-index,Java Essentials,New To Java...
# 3
As a note: It is Swing not swings. Where did this "swings" thing come from. Almost nothing will make knowledgeable Java programmers ignore you quicker than saying swings.
masijade.a at 2007-7-9 6:14:00 > top of Java-index,Java Essentials,New To Java...
# 4

> As a note: It is Swing not swings. Where did this

> "swings" thing come from. Almost nothing will make

> knowledgeable Java programmers ignore you quicker

> than saying swings.

It's just a regional variant. Programmers from the subcontinent have "one doubt abt swings".

DrLaszloJamfa at 2007-7-9 6:14:00 > top of Java-index,Java Essentials,New To Java...
# 5

> > As a note: It is Swing not swings. Where did

> this

> > "swings" thing come from. Almost nothing will

> make

> > knowledgeable Java programmers ignore you quicker

> > than saying swings.

>

> It's just a regional variant. Programmers from the

> subcontinent have

> "one doubt abt swings".

lol

qUesT_foR_knOwLeDgea at 2007-7-9 6:14:00 > top of Java-index,Java Essentials,New To Java...