Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.09 seconds.

  1. Replies
    12
    Views
    2,753

    [SOLVED] Re: jTable event help

    I'm glad you got it sorted out, but for the record, it sounds like you're going about it the wrong way- as other people have said, you should probably just base the rendering off the model, not the...
  2. Replies
    12
    Views
    2,753

    [SOLVED] Re: jTable event help

    I see this is marked as solved, did you get it figured out?
  3. Replies
    12
    Views
    2,753

    [SOLVED] Re: jTable event help

    Erm, I think you're probably approaching this the wrong way. But again, without an SSCCE (that's not your whole project, that's a single file that contains the bare minimum) I can't really tell. I...
  4. Replies
    12
    Views
    2,753

    [SOLVED] Re: jTable event help

    Now I'm really confused. An SSCCE sure would help. Does adding a MouseListener to the JTable not work? And are you sure you can't just convert the view index to a model index (JTable has some...
  5. Replies
    12
    Views
    2,753

    [SOLVED] Re: jTable event help

    That code isn't an SSCCE because it doesn't show us anything, and we can't copy and paste it to run it.

    Hint: You can add a MouseListener to the JTable's JTableHeader. Consult the API for useful...
  6. Replies
    12
    Views
    2,753

    [SOLVED] Re: jTable event help

    You could do it with a MouseEvent. What didn't work about it? Where's your SSCCE demonstrating what you've tried?

    You could also extend TableRowSorter and override toggleSortOrder().
Results 1 to 6 of 6