Re: How to add elements to a JList without preventing refresh



Rhino wrote:
Do you REALLY plan to make your user have to scroll through a JList with a MILLION entries in it? That seems like a very poor design to me. Couldn't you break the entries into categories so that the user can "drill down" to it in stages?

A million entries a pixel each wouldn't require any scrolling on a decent screen. I suspect that the figure of a million was just being extreme, and in fact there would be fewer, heavier entries.


For instance, if I wanted my user to choose from a million town or city names from all over the world, I would NOT simply present a million names of towns and cities: I'd let them choose the continent, then the country, then the state or province, and then the town; that would keep each list, except possibly the last one, reasonably brief.

These days, I'd let the user type it and simultaneously search, in a modern google style. Even for a long name it's easy. I can type "harbertonford" without thinking. There can't be that many Harbertonfords in the world. In fact, there probably aren't many places starting with "harb".


Can you do something like this in your user interface? Otherwise, I think your user is going to be VERY unhappy with your GUI design. Your job might get a little harder if you have to present multiple lists in the appropriate sequence but each list should be a lot more manageable than having to deal with a million-element list.

If the user can incrementally search, then it shouldn't really be a problem (although the scroll bar might be a little inappropriate). However, my guess is that a million is an exaggeration.


Tom Hawtin
--
Unemployed English Java programmer
http://jroller.com/page/tackline/
.



Relevant Pages

  • Re: How to add elements to a JList without preventing refresh
    ... Do you REALLY plan to make your user have to scroll through a JList with a ... MILLION entries in it? ... That seems like a very poor design to me. ... get a little harder if you have to present multiple lists in the appropriate ...
    (comp.lang.java.gui)
  • Re: The Anime Primer "Pre-Approved List"
    ... but aren't yet in the Primer. ... only write entries for shows you like enough to recommend to ... quarterly anime review lists, three stars on Manbow Papa's quarterly ... Ouran High School Host Club ...
    (rec.arts.anime.fandom)
  • Re: Synchronization routine
    ... Basically I have two lists, one on my firewall and one in a database. ... current sizes are over 1 million entries and I expect to see 2 million rows ... which I can randomly access ... quicksort wasn't too efficient and finally caused a stack overflow. ...
    (comp.programming)
  • Re: Best writers I havent yet read
    ... Science Fiction> and. ... considered was to look for authors represented by multiple books in my ... So I've spent much of this past week compiling a list of author entries ... If anyone wants the full lists, or whatever, well, e-mail or post, ...
    (rec.arts.sf.written)
  • [info] The Anime Primer "Pre-Approved List"
    ... but aren't yet in the Primer. ... only write entries for shows you like enough to recommend to ... quarterly anime review lists, three stars on Manbow Papa's quarterly ... Tokyo Mew Mew / Mew Mew Power ...
    (rec.arts.anime.misc)