Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2941
| From | "RedGrittyBrick" <redgrittybrick@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: JTable UI from User's |
| Message-ID | <NMmdnROk6pzK-eraRVnyjAA@bt.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <sjibn3hd2md51cdcm5d6tomh4m1monhgat@4ax.com> |
| Date | 2011-04-27 15:42 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui Roedy Green wrote: > I was wondering what the consensus is on how a JTable should behave: The first things that popped into my mind were ... > > 1. What does the user to do trigger a cell edit? Double click or press F2 > What does he do to edit the next cell over? Tab > > 2. what does the user to do delete a row? Click the row's label to select the row then press Del > > 3. what does the user do to insert a new row? Er, select a row then press Ins? Select Row, Insert from a menu? > Does he type it in place or does he type it somewhere else then it jumps into place? In place probably. For this last case, as a programmer I find it a lot easier to use the latter approach for database applications where rows represent records in a database table. I find it harder to provide in-place editing, partly because of the issues you raised. For example, when updating a table of say exchange rates, as a user you'd want to enter a number, press *one* key to both move to the same column of the next row *and* start editing. I think this may be hard to do with JTable, especially when overriding the default cell editor with some other Swing widget. I guess that it may depend on whether you want to give the user the illusion that the backing data store is being directly updated as they type or whether you want them to be aware of a row (record) as a unit of update. --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Find similar | Unroll thread
JTable UI from User's poi "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:41 +0000
Re: JTable UI from User's "ram" <ram@THRWHITE.remove-dii-this> - 2011-04-27 15:41 +0000
Re: JTable UI from User's "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:41 +0000
Re: JTable UI from User's "ram" <ram@THRWHITE.remove-dii-this> - 2011-04-27 15:41 +0000
Re: JTable UI from User's "Lew" <lew@THRWHITE.remove-dii-this> - 2011-04-27 15:41 +0000
Re: JTable UI from User's "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:42 +0000
Re: JTable UI from User's "RedGrittyBrick" <redgrittybrick@THRWHITE.remove-dii-this> - 2011-04-27 15:42 +0000
csiph-web