aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Text from txtfield in txt file and from file to combobox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Text from txtfield in txt file and from file to combobox " Watch "Text from txtfield in txt file and from file to combobox " New topic
Author

Text from txtfield in txt file and from file to combobox

Lovro Posaric
Greenhorn

Joined: Jul 01, 2012
Posts: 11

Hi!
Need help again ...
I've made application that send email.


I want to make some sort of history, like you've at browsers...I mean something like comboboxes under textfield in what would be written usernames,passes,...what's written before.
I've tired to write code that will take text, make file and write it in file..but it haven't done what it should...
Sorry for my bad english!
Thanks!
L
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
your google keyword is
AutoComplete
Lovro Posaric
Greenhorn

Joined: Jul 01, 2012
Posts: 11

Ok thanks
Maybe it will be a stupid question,but will the string that I added to list of strings stay in same form and won't delete?Or should I make something with txt file or...?
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
if you want to create a history for lookups, you'll have to save them.

the idea is for the history to be loaded into the program, then, if the
user double-clicks into a textfield, a popup displays the history (can be sorted).
if the user types a 't' into the textfield, the history shown in the popup is
filtered to only those items starting with a 't'. if the next letter typed is 'h',
the history shown in the popup is filtered further to only those items
starting with 'th'. etc.

go through the examples you find on google (should be many), and see
what 'saving' method works best for you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Text from txtfield in txt file and from file to combobox