aspose file tools*
The moose likes Beginning Java and the fly likes How to distribute contents of a single array into different tables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to distribute contents of a single array into different tables" Watch "How to distribute contents of a single array into different tables" New topic
Author

How to distribute contents of a single array into different tables

Darren Alexandria
Ranch Hand

Joined: Aug 17, 2007
Posts: 185
Good day!

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.

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to distribute contents of a single array into different tables