This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Text from txtfield in txt file and from file to combobox

 
Lovro Posaric
Greenhorn
Posts: 11
Firefox Browser Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your google keyword is
AutoComplete
 
Lovro Posaric
Greenhorn
Posts: 11
Firefox Browser Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic