Re: Table cell renderer problem - paint problem?



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
.



Relevant Pages

  • Re: SUM CELL BORDERS? (and by colour too?)
    ... Each cell has a Borders property and the existence of a right edge border ... if the cell to the right has a left border then you get that cells ... you can sum numeric contents of cells and you can sum the height ... (Excel Add-ins / Excel Programming) ...
    (microsoft.public.excel.misc)
  • Re: SUM CELL BORDERS? (and by colour too?)
    ... Counting the number of cells with a right border is exactly what I'd like to ... you can sum numeric contents of cells and you can sum the height ... (Excel Add-ins / Excel Programming) ...
    (microsoft.public.excel.misc)
  • RE: Underline every other table cell?
    ... This worked in this instance as these cells would not allow data input. ... bottom border will be applied to all cells in a row. ... then select Format> Borders and Tables> Borders ...
    (microsoft.public.word.docmanagement)
  • Re: Apply bottom border only on filled cells, leaves blank cells without border?
    ... Selection.Borders.LineStyle = xlNone ... it puts a border on everything on the rows of the selected cells ... Once the borders are put in, I will just delete the letters ...
    (microsoft.public.excel.programming)
  • Re: Data entered needs to cover 2 vertical cells
    ... Another option would be to enter the delivery address in each row, and then use conditional formatting to hide the duplicates. ... Click Format, and select White font colour, and on the Border tab, remove the top and bottom border, then click OK ... I need to enter an address that will cover 2 vertical cells while leaving the cells either side as 2 separate cells. ...
    (microsoft.public.excel.misc)