Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #2929 > unrolled thread

JTable UI from User's poi

Started by"Roedy Green" <roedy.green@THRWHITE.remove-dii-this>
First post2011-04-27 15:41 +0000
Last post2011-04-27 15:42 +0000
Articles 7 — 5 participants

Back to article view | Back to comp.lang.java.gui


Contents

  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

#2929 — JTable UI from User's poi

From"Roedy Green" <roedy.green@THRWHITE.remove-dii-this>
Date2011-04-27 15:41 +0000
SubjectJTable UI from User's poi
Message-ID<sjibn3hd2md51cdcm5d6tomh4m1monhgat@4ax.com>
  To: comp.lang.java.gui
I was wondering what the consensus is on how a JTable should behave:

1. What does the user to do trigger a cell edit? What does he do to
edit the next cell over?

2. what does the user to do delete a row?

3. what does the user do to insert a new row? Does he type it in place
or does he type it somewhere else then it jumps into place?
-- 
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

---
 * 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

[toc] | [next] | [standalone]


#2931 — Re: JTable UI from User's

From"ram" <ram@THRWHITE.remove-dii-this>
Date2011-04-27 15:41 +0000
SubjectRe: JTable UI from User's
Message-ID<JTable-UI-20071229054346@ram.dialup.fu-berlin.de>
In reply to#2929
  To: comp.lang.java.gui
Supersedes: <UI-20071229054346@ram.dialup.fu-berlin.de>

Roedy Green <see_website@mindprod.com.invalid> writes:
>I was wondering what the consensus is on how a JTable should behave:

  It should act like the spreadsheet or platform table he
  normally uses.

  The programmer can not know what this spreadsheet or platform is.

  But often it might be Microsoft< Excel and Microsoft< Windows.

  So:

      The application, whenever possible, should offer a
      +Windows L&F2 and

      The Windows L&F should behave like Microsoft< Excel
      in this regard.

>1. What does the user to do trigger a cell edit?

  In Excel, a keyboard user would use [F2].

>What does he do to edit the next cell over?

  I do not know the meaning of +to edit something over2,
  so I will ignore +over2 and answer:

|What does he do to edit the next cell?

  (If he is editing a cell right now: )Terminate the edit mode.
  Move to the next cell.
  Activate the edit mode as before.

>2. what does the user to do delete a row?

  Select the row.
  Issue a delete-row command via a menu.

>3. what does the user do to insert a new row?

  Select a row.
  Issue a insert-row command via a menu to insert 
  a row above the select row.

>Does he type it in place or does he type it somewhere 
>else then it jumps into place?

  In Excel, the above can be done via mouse, keyboard,
  or programmatically, via a macro (in VBA).

---
 * 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

[toc] | [prev] | [next] | [standalone]


#2933 — Re: JTable UI from User's

From"Roedy Green" <roedy.green@THRWHITE.remove-dii-this>
Date2011-04-27 15:41 +0000
SubjectRe: JTable UI from User's
Message-ID<02obn39ncruj995aeb5erepr9f950nsl67@4ax.com>
In reply to#2931
  To: comp.lang.java.gui
On 29 Dec 2007 05:17:34 GMT, ram@zedat.fu-berlin.de (Stefan Ram)
wrote, quoted or indirectly quoted someone who said :

>>What does he do to edit the next cell over?
>
>  I do not know the meaning of +to edit something over2,
>  so I will ignore +over2 and answer:

Let us say you have just entered the data for A1.

The normal thing, is the use would then enter data for B1.

You could make him select and hit F2. or your might automatically jump
to B1 when the user hits some key to terminate entering data for A1.
-- 
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

---
 * 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

[toc] | [prev] | [next] | [standalone]


#2934 — Re: JTable UI from User's

From"ram" <ram@THRWHITE.remove-dii-this>
Date2011-04-27 15:41 +0000
SubjectRe: JTable UI from User's
Message-ID<edit-over-20071229073019@ram.dialup.fu-berlin.de>
In reply to#2933
  To: comp.lang.java.gui
Roedy Green <see_website@mindprod.com.invalid> writes:
>You could make him select and hit F2. or your might automatically jump
>to B1 when the user hits some key to terminate entering data for A1.

  Yes. In Microsoft< Excel, IIRC, this behavior can be
  configurated via an +Options2 dialog to move either

    - not,
    - right,
    - left,
    - up, or
    - down.

---
 * 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

[toc] | [prev] | [next] | [standalone]


#2935 — Re: JTable UI from User's

From"Lew" <lew@THRWHITE.remove-dii-this>
Date2011-04-27 15:41 +0000
SubjectRe: JTable UI from User's
Message-ID<JL2dneY_ycpsdujanZ2dnUVZ_rjinZ2d@comcast.com>
In reply to#2934
  To: comp.lang.java.gui
Stefan Ram wrote:
> Roedy Green <see_website@mindprod.com.invalid> writes:
>> You could make him select and hit F2. or your might automatically jump
>> to B1 when the user hits some key to terminate entering data for A1.
> 
>   Yes. In Microsoft-< Excel, IIRC, this behavior can be
>   configurated via an -+Options-2 dialog to move either
> 
>     - not,
>     - right,
>     - left,
>     - up, or
>     - down.

The default direction is almost always not what I want.  When it moves I want 
"ENTER" to leave me in the same cell, and when it doesn't I want "ENTER" to 
move me right, for some parts of the sheet, or down, for others.

Having the software tell me which direction to move annoys me.  Having it obey 
my choice is satisfying.

Having the cursor jump to another cell without letting the user choose to 
configure the behavior is not good.

-- 
Lew

---
 * 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

[toc] | [prev] | [next] | [standalone]


#2938 — Re: JTable UI from User's

From"Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this>
Date2011-04-27 15:42 +0000
SubjectRe: JTable UI from User's
Message-ID<AdWdnQsfmN1_CuvanZ2dnUVZ_u-unZ2d@comcast.com>
In reply to#2935
  To: comp.lang.java.gui
Lew wrote:
> Stefan Ram wrote:
>> Roedy Green <see_website@mindprod.com.invalid> writes:
>>> You could make him select and hit F2. or your might automatically jump
>>> to B1 when the user hits some key to terminate entering data for A1.
>>
>>   Yes. In Microsoft-< Excel, IIRC, this behavior can be
>>   configurated via an -+Options-2 dialog to move either
>>
>>     - not,
>>     - right,
>>     - left,
>>     - up, or
>>     - down.
> 
> The default direction is almost always not what I want.  When it moves I 
> want "ENTER" to leave me in the same cell, and when it doesn't I want 
> "ENTER" to move me right, for some parts of the sheet, or down, for others.
> 
> Having the software tell me which direction to move annoys me.  Having 
> it obey my choice is satisfying.
> 
> Having the cursor jump to another cell without letting the user choose 
> to configure the behavior is not good.
> 
As I recall, in Excel, Tab moves right, enter moves to the next row on 
the column that you last started typing in. For instance, if you click 
in cell A5, type, tab, type, tab, type, enter, you will end in cell B5, 
having typed in A5, A6, and A7.

-- 
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>

---
 * 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

[toc] | [prev] | [next] | [standalone]


#2941 — Re: JTable UI from User's

From"RedGrittyBrick" <redgrittybrick@THRWHITE.remove-dii-this>
Date2011-04-27 15:42 +0000
SubjectRe: JTable UI from User's
Message-ID<NMmdnROk6pzK-eraRVnyjAA@bt.com>
In reply to#2929
  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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web