Menu

#1 task list draws oddly

open
8
2002-07-24
2002-07-24
No

The task list appears centered in its display area, and
remains centered as it grows and shrinks. It should
fill the top of its display area and grow downward. The
column headers should stay visible as the task list is
scrolled vertically.

I found a fix that works well. The JTree and JTable
should be placed in a JPanel with a BorderLayout; the
tree should be placed WEST, and the table should be
placed CENTER. BorderLayout will happily grow them to
fill the vertical space in this configuration.

The column titles should be placed in a separate
container. This container should be passed to the
JScrollPane's setColumnHeaderView method.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB