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


Groups > comp.lang.java.programmer > #23771

Re: Efficiency/Reliablility of Scaled Up JTable

Newsgroups comp.lang.java.programmer
Date 2013-05-01 12:41 -0700
References <c4c87a08-569b-49d9-906b-9bf2f3f2df65@googlegroups.com> <wiwft.22247$dd6.12257@newsfe26.iad> <klm5a5$vou$1@dont-email.me>
Message-ID <57924ab7-1b72-4f7f-a5a6-3f58a746a818@googlegroups.com> (permalink)
Subject Re: Efficiency/Reliablility of Scaled Up JTable
From clusardi2k@aol.com

Show all headers | View raw


> On Monday, April 29, 2013 12:01:11 PM UTC-4, Eric Sosman wrote:
> However, didn't the O.P. have a question a day or so ago about 
> a "horizontally scrolling" table, where new columns appeared at the right 
> while old ones vanished from the left (maybe with a few leftmost columns 
> inviolate)? If that's the table in question, I think he'd do better to use a 
> column-oriented model, where the vectors (not necessarily Vectors) run top-to-
> bottom instead of left-to-right. A benefit would be that inserting, deleting, 
> and permuting columns could be done by I/D/P'ing the vector references 
> instead of mucking with the individual cell contents. It all depends on which 
> axis gets more activity. 

Q1. Can anyone point me towards example code that uses a column-oriented model, that would help me think about developing a table like I want. How many different types of column-oriented models are there anyway.

> Alternatively, a HashMap<Pair<Integer,Integer>,Object> might serve as model 
> supporting both access directions equally well, and could handle row/column 
> rearrangements quickly by storing "virtual" coordinates translated through a > pair of arrays for the permutation of the moment.

Q2. Can anyone point me towards example code that uses a HashMap model (colors cells etc) for my table (containing textural data), and be able of helping me think about this efficiency problem some more.

Q3. Not considering efficiency, would I gain or lose "anything" else if I switched from the regular JTable model to either a column-oriented or HashMap model. For example, would one of the alternatives require more code to do things.

Thank you, 

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Efficiency/Reliablility of Scaled Up JTable clusardi2k@aol.com - 2013-04-29 05:13 -0700
  Re: Efficiency/Reliablility of Scaled Up JTable Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-04-29 08:41 -0400
  Re: Efficiency/Reliablility of Scaled Up JTable Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-04-29 08:26 -0700
    Re: Efficiency/Reliablility of Scaled Up JTable Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-04-29 12:01 -0400
      Re: Efficiency/Reliablility of Scaled Up JTable Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-04-29 13:09 -0700
        Re: Efficiency/Reliablility of Scaled Up JTable Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-04-29 16:52 -0400
      Re: Efficiency/Reliablility of Scaled Up JTable clusardi2k@aol.com - 2013-05-01 12:41 -0700
        Re: Efficiency/Reliablility of Scaled Up JTable Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-05-01 17:52 -0400
        Re: Efficiency/Reliablility of Scaled Up JTable "John B. Matthews" <nospam@nospam.invalid> - 2013-05-02 01:57 -0400
  Re: Efficiency/Reliablility of Scaled Up JTable Robert Klemme <shortcutter@googlemail.com> - 2013-04-29 19:39 +0200
  Re: Efficiency/Reliablility of Scaled Up JTable Roedy Green <see_website@mindprod.com.invalid> - 2013-05-01 10:15 -0700

csiph-web