JXTable highlighter issue with custom renderer

java.net Forums : JXTable highlighter issue with custom …

I am using JPanel as renderer with JXTable (with 2 textFIelds inside Panel)
but problem is .. this cell does not take background color as alternate highlighter.

i have following code written.

if(isSelected){
textField.setBackground(table.getSelectionBackground());
}else{
textField.setBackground(table.getBackground());
}

how do i get highlighter with panel as cellRenderer

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *

What is 15 + 8 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)