aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes grid appearance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "grid appearance" Watch "grid appearance" New topic
Author

grid appearance

Tris Rabar
Ranch Hand

Joined: Feb 27, 2002
Posts: 72
Hi everyone,
Is there a way to arrange information such that it appears as a grid, except using a JTable?
I want to implement a grid of 0's and 1's, a bit map.
Thanks!


- Trish -
Rajendar Goud
Ranch Hand

Joined: Mar 06, 2002
Posts: 220
Hi ,
I think u can use GridLayout(int rows,int cols)
or GridBagLayout()for this..
Raj
Tris Rabar
Ranch Hand

Joined: Feb 27, 2002
Posts: 72
Hey..thanks for the suggestion...but is there a way for this to give you gridlines?
Roy Ben Ami
Ranch Hand

Joined: Jan 13, 2002
Posts: 732
yes. you can use a border around each component you put in the gridLayout to give you the lines you want.
Tris Rabar
Ranch Hand

Joined: Feb 27, 2002
Posts: 72
Hey...thanks a lot. But here's the deal: I would need to put info that has to be changed in each 'gridbox'. If I'm using this approach, that is, gridlayout and borders, then I might have to use something like a label in each grid, and keep changing this....is there any better way to do this?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: grid appearance