• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Text from txtfield in txt file and from file to combobox

 
Greenhorn
Posts: 11
Firefox Browser Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I'm not sure if I approve of this interruption. But this tiny ad checks out:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic