🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
3 messages
3 total messages Started by George Thu, 30 Jun 2005 17:24
JTable row header
#555
Author: George
Date: Thu, 30 Jun 2005 17:24
7 lines
1029 bytes
Is there a "recommended" way to implement row headers for JTable?

I tried using a JPanel containing JLabels and controlled by a GridBagLayout
manager.  But GBL apparently cannot handle grids sizes larger than 512.

TIA
George
Re: JTable row header
#556
Author: John McGrath
Date: Fri, 01 Jul 2005 19:26
17 lines
1441 bytes
On 6/30/2005 at 1:24:03 PM, George wrote:

> Is there a "recommended" way to implement row headers for JTable?
> 
> I tried using a JPanel containing JLabels and controlled by a
> GridBagLayout manager.  But GBL apparently cannot handle grids sizes
> larger than 512.

If that was the only issue, you could use a different layout, such as a
BoxLayout or a GridLayout.  But creating a separate JLabel component for
each row will have scalability problems.  I would try using another JTable
with a single column for the row header.

-- 
Regards,

John McGrath
Re: JTable row header
#465
Author: George
Date: Tue, 05 Jul 2005 16:35
26 lines
1902 bytes
Of the things that I tried,  I think I like the look of the JLabels in
JPanel.  Would getting the JLabel from a CellRenderer object take care of
the scaleability issue?

TIA
George

"John McGrath" <ng@jpmcgrath.net> wrote in message
news:xn0e48f83jlqa7p004@newsgroups.borland.com...
> On 6/30/2005 at 1:24:03 PM, George wrote:
>
> > Is there a "recommended" way to implement row headers for JTable?
> >
> > I tried using a JPanel containing JLabels and controlled by a
> > GridBagLayout manager.  But GBL apparently cannot handle grids sizes
> > larger than 512.
>
> If that was the only issue, you could use a different layout, such as a
> BoxLayout or a GridLayout.  But creating a separate JLabel component for
> each row will have scalability problems.  I would try using another JTable
> with a single column for the row header.
>
> -- 
> Regards,
>
> John McGrath
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads