Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #23525
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: 5th col dies, cols 6 thru 15 move 1 col left, 15th col is born |
| Date | 2013-04-20 11:17 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <kkubde$jhq$1@dont-email.me> (permalink) |
| References | <300a4c2f-daba-4007-8551-3b1d0f263d27@googlegroups.com> |
On 4/19/2013 7:54 PM, clusardi2k@aol.com wrote:
> What is the best way to build the following application.
>
> I would like to create an application that when it opens it will have 300 rows and 15 columns.
>
> The first 4 columns on the left side will be updated with alphanumeric data but will always be displayed. They never disappear.
>
> The remaining 11 columns (also containing alphanumeric data) will move to the left with the leftmost column (column 5) disappearing and a brand new column 15 will appear on the right side of the window. Column 15 never existed before.
>
> Again, I want an application with 15 columns always displayed with the 5th column leaving (data not saved) the application, columns 6 through 15 will move one column to the left, and the 15th column will be populated with new data.
>
> What's the best way to do this. Do you have example code for me.
JTable should be straightforward. You'd extend AbstractTableModel
to handle the "sliding," calling fireTableDataChanged() to update the
display. Conveniences like scrolling would come for free (almost),
and the JTable's display might well be more efficient than managing
4500 JLabels.
No, I don't have example code.
--
Eric Sosman
esosman@comcast-dot-net.invalid
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
5th col dies, cols 6 thru 15 move 1 col left, 15th col is born clusardi2k@aol.com - 2013-04-19 16:54 -0700
Re: 5th col dies, cols 6 thru 15 move 1 col left, 15th col is born Knute Johnson <nospam@knutejohnson.com> - 2013-04-19 17:03 -0700
Re: 5th col dies, cols 6 thru 15 move 1 col left, 15th col is born "clusa@aol.com" <clusardi2k@aol.com> - 2013-04-19 17:29 -0700
Re: 5th col dies, cols 6 thru 15 move 1 col left, 15th col is born "clusa@aol.com" <clusardi2k@aol.com> - 2013-04-19 22:29 -0700
Re: 5th col dies, cols 6 thru 15 move 1 col left, 15th col is born Knute Johnson <nospam@knutejohnson.com> - 2013-04-20 09:02 -0700
[OT] Re: 5th col dies, cols 6 thru 15 move 1 col left, 15th col is born Manuel Collado <m.collado@domain.invalid> - 2013-04-20 16:44 +0200
Re: 5th col dies, cols 6 thru 15 move 1 col left, 15th col is born Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-04-20 11:17 -0400
Re: 5th col dies, cols 6 thru 15 move 1 col left, 15th col is born "clusa@aol.com" <clusardi2k@aol.com> - 2013-04-20 09:02 -0700
Re: 5th col dies, cols 6 thru 15 move 1 col left, 15th col is born Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-04-20 14:14 -0400
csiph-web