A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to distribute contents of a single array into different tables
Joined: Aug 17, 2007
Apr 16, 2008 23:29:00
I have a table which looks like these:
11111 11111 11101
11111 11111 01111
11111 11110 11111
11111 11111 11111
The values in the table are being read from a file then transferred to an array, then put into a table.
My problem is that, I want to group all the indexes per block so that I am able to
isolate a block. My task is to have "View Block 1" as one of ly functions.
I have several ideas in mind:
1. If it would make it easier, I will separate a block from the other by using dynamic tables. meaning, every block is in his own table. But problem is, how can I get the indexes?
2. Hide other blocks when the particular block is currently viewed. I have tried this,
but my GUI became ugly.
3. Think of a formula that will compute for the indexes which should belong to Block 1, then put it in an array, then compute for the indexes in Block 2, put it in the same array.. so on..
Can anyone give me some advice?
Have been dealing this for quite a while now.
It is sorta covered in the
JavaRanch Style Guide
subject: How to distribute contents of a single array into different tables
Apache FO Table Query
Beginner Problem: son & parent
Trouble with model for calculating and adding table values dependent on multiple rows
Please help me in creation of tables
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015