-
set cell size in jtable
i just can't think at the moment. How can I set the size so that each cell is square?
-
-
yes but how do I set those properties automatically. I thought maybe the cell would resize if I put an image in it, but it just clips the image.
-
Here are some of the options from the Jtable docs:
static int AUTO_RESIZE_ALL_COLUMNS
During all resize operations, proportionately resize all columns.
static int AUTO_RESIZE_LAST_COLUMN
During all resize operations, apply adjustments to the last column only.
static int AUTO_RESIZE_NEXT_COLUMN
When a column is adjusted in the UI, adjust the next column the opposite way.
static int AUTO_RESIZE_OFF
Do not adjust column widths automatically; use a scrollbar.
static int AUTO_RESIZE_SUBSEQUENT_COLUMNS
During UI adjustment, change subsequent columns to preserve the total width; this is the default behavior.
(shrug).
Have you played around with those to see if they help?
-
That's just for columns though and not row height.
How did I miss this in the JTable? setRowHeight()
argh, i need a break
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks