Friday, May 3, 2002 07:43 AM
I'm trying to attach a bunch og JLabels to a JTable make them scroll in sync.
I've tried to put the JTable on a low layer of a JLayeredPane in the center of a BorderLayout and the bunch of JLabels on a higher layer level using setBounds() at specific positions in a null-layout. The JLayeredPane is then placed in the JScrollPane.
Now, the problem is that I seem to loose the table headers and worse, when I resize, all JLabels are resized to the container size.
I must be mixing something up and it has probably something to do with the layout managers I'm using.
Any suggestions anyone??
Re: How to use a JLayeredPane in a JScrollPane
Friday, May 3, 2002 07:57 AM