JList as Jtable Render and editor



Hello everyone
I am using Jlist as Table Render And Editor and run in to some strange
selection behavior.
Scenario:
Jtable has 1 row and 2 columns.
Cell (0,0) contains simple label as cell render
Cell (0,1) has JList as cell render and editor. Jlist has 3 items.

Column1 | Column2 |
----------------------------------------
| List Item1 |
Simple Lable| List Item2 |
| List Item3 |
----------------------------------------
1. Click on cell (0,0) -> cell (0,0) selected
2. Click on ListItem2 -> ListItem1 selected instead ( THE PROBLEM )
3. Click on ListItem2 once again -> now ListItem2 is selected

I noticed that if the JList is not in focus, does not meter on which
list item i will click it will always select the first one.I have
registered to value changed event of Jlist and also noised that it is
being called twice during the first selection.Once from table mouse
event and once from Jlist mouse event.( Jtable mouse event propagates
the event to the render).As long as JList is in focus the list item
selection works just fine.

Please help me to solve bullet 2

.



Relevant Pages

  • JList as Jtable Render and editor
    ... I am using Jlist as Table Render And Editor and run in to some strange ... selection behavior. ... Cell contains simple label as cell render ... Cell has JList as cell render and editor. ...
    (comp.lang.java.programmer)
  • Re: Viewstate Issue?
    ... > I've build a custom control that's essentially a header for my web site. ... Within the render ... > 'refreshes' in the design view, ... > // Begin Image Cell ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: Viewstate Issue?
    ... > I've build a custom control that's essentially a header for my web site. ... Within the render ... > 'refreshes' in the design view, ... > // Begin Image Cell ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: Parsing a nested set another way
    ... I am trying to render a nested set a certain way. ... telling each child node its depth. ... so that its parent can accumulate the rowspan of the cell it has to be ...
    (comp.lang.ruby)
  • Viewstate Issue?
    ... I've build a custom control that's essentially a header for my web site. ... Within the render ... // Begin Image Cell ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)