Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > LimeWire+WireShare (Cross-platform) > New Feature Requests
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

New Feature Requests Your idea for a cool new feature. Or, a LimeWire annoyance that has to get changed.


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old September 15th, 2002
SJP
Guest
 
Posts: n/a
Lightbulb search entry history

I'd like to see a feature like the thingy in IE which when you start typing in a text box it shows a drop down list of previous entries that match what you have entered previously. I constantly type the same searches into limewire (e.g. rare music that only occasionally gets results) and i'm lazy.

It might be a bit tricky in Java though to get the drop down. It should be fairly easy to display previous entries 'in-line' however. I've had a quick peek at some of the code and I think the following approach should work.

Instead of using standard JTextField's, limewire would use a new class JTextHistoryField (or some other name). This would extend JTextField, but in the constructor add couple of listeners (Key and Action ?) to itself. When a character is typed:
- key event fired ?
- lookup current text in some data structure which may potentially use String.startsWith()
- if match setText() of itself to that entry.
It would be nice too if it selected or highlighted only the text that wasn't typed, and it kept the cursor in the correct place. (Is this how a similar approach to how a password field masks the input?). When an action event is recieved add the contents to the history data structure.

The data structure could possibly be held statically / singleton as you would probably want to use all history on all text boxes. It would prossibly be a SortedSet? I'm not sure how the persistence of the history data between sessions could be accomplished in limewire though.

Would also be nice to have this an optional feature and also to be able to manually clear out the history / delete specific entries.

Any thoughts ? I wouldn't mind having a crack at this if it seems like a good idea to others, although my swing is a bit rusty.

Sorry if this is the wrong group.

Thanks for a great product guys...
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Retaining Last Search (Or History) When Clicking Search After A Search adamlau New Feature Requests 2 January 5th, 2005 03:10 PM
every time i search using the audio tab it erases my search entry! rorschach Open Discussion topics 1 June 26th, 2003 08:29 AM
search history Unregistered Gnucleus (Windows) 1 July 25th, 2002 10:33 AM
Search history brusky User Experience 5 June 14th, 2002 08:16 AM
Search Toolbar - Clear/Disable Search History Unregistered Support: General 14 June 7th, 2002 10:27 PM


All times are GMT -7. The time now is 08:31 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.