Re: Table cell renderer problem - paint problem?
- From: usenet@xxxxxxx (Christian Kaufhold)
- Date: Mon, 25 Apr 2005 14:54:26 +0200
farseer <farseer@xxxxxxxxxxxxx> wrote:
Please quote some context.
> yes, but what i don't understand is with out that "ELSE" clause, it
> works fine for Cells that use JLabel as their rendering component.
It only works fine for cells that use DefaultTableCellRenderer because
that always resets the Border in getTableCellRendererComponent.
>
> Also, when i add the else clause to set the border to null, it works,
> but still behaves a bit weird. for instance, if i click on row 5, then
> click on row 4, row 4's border appears a thicker than the other
> columns, as though it's drawing two borders. this only happens when
> going from a lower row, to a higher row...just weird.
Try setting a border with the same insets as your selection border.
Christian
.
- Follow-Ups:
- Re: Table cell renderer problem - paint problem?
- From: farseer
- Re: Table cell renderer problem - paint problem?
- References:
- Table cell renderer problem - paint problem?
- From: farseer
- Re: Table cell renderer problem - paint problem?
- From: Christian Kaufhold
- Re: Table cell renderer problem - paint problem?
- From: farseer
- Table cell renderer problem - paint problem?
- Prev by Date: Re: How to add rows of text to JTextArea
- Next by Date: Re: How to add rows of text to JTextArea
- Previous by thread: Re: Table cell renderer problem - paint problem?
- Next by thread: Re: Table cell renderer problem - paint problem?
- Index(es):
Relevant Pages
|
|