wood burning stoves 2.0*
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "grid appearance" Watch "grid appearance" New topic

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.

- 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..
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
Similar Threads
Where is this index.action in struts.xml?
Whats next from SUN, any New Certifications Coming up for JAVA?
De-centralized power and feeding the grid
Q to authors: webservices not so popular?
problem displaying jtable values