How do you do 2 columns, one scrollable?
From: VisionSet (spam_at_ntlworld.com)
Date: 12/28/03
- Next message: David Postill: "Re: How do you do 2 columns, one scrollable?"
- Previous message: ak: "Re: jpg as background?"
- Next in thread: David Postill: "Re: How do you do 2 columns, one scrollable?"
- Reply: David Postill: "Re: How do you do 2 columns, one scrollable?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 28 Dec 2003 22:31:06 -0000
I would like to display 2 columns of many rows.
the left column will be fixed in the horizontal and should display all its
contents, each cell will be a single JLabel
the right column will be scrollable (ie all right-hand cells together) each
cell will be a single JComponent with graphics
ie:
--------------------
| | |
--------------------
| | |
--------------------
| | |
--------------------
| | |
--------------------
| | |
--------------------
<-scrollbar->
One solution is to have 2 components 1 for each column and gridlayout them.
the right-hand one can be nested in a jscrollpane.
But the neccessary scrollbar would interfere with the bottom cell, so it'd
be best to put it below.
I see that I can get the scrollbar from the scrollpane. So that shouldn't
be a problem.
But is there a better way?
I haven't used JTables, can these do this? Had a quick look but don't see
any mention of scrollbar policy.
Thanks.
-- Mike W
- Next message: David Postill: "Re: How do you do 2 columns, one scrollable?"
- Previous message: ak: "Re: jpg as background?"
- Next in thread: David Postill: "Re: How do you do 2 columns, one scrollable?"
- Reply: David Postill: "Re: How do you do 2 columns, one scrollable?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|