aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes RowListener problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "RowListener problem" Watch "RowListener problem" New topic
Author

RowListener problem

Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 590

model.getValueAt(row, 2) is always null when the cell is empty
so as the other cells.
But the cells might be empty at times. So it looks like the valueChanged method is invoked when the mouse enters the cell, rather than leaving from it.
Any ideas on how to improve it?
Thanks
Jack
Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 590
I'd like to deliver the system these 2 weeks. I just got this only question left to be solved.
Any body help me accelerate this?
Thanks
Jack
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
the easiest way to get a solution is to
*always* post a sample program that we can
copy/paste/compile/run/observe along with
the steps to reproduce the problem.

snippets/guesswork just wastes everyone's time.
Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 590
Michael Dunn wrote:the easiest way to get a solution is to
*always* post a sample program that we can
copy/paste/compile/run/observe along with
the steps to reproduce the problem.

snippets/guesswork just wastes everyone's time.


https://docs.google.com/open?id=0Byu1vVqeMEJ5UFhldUtsNFVyUlU

Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 590
http://www.coderanch.com/t/345637/GUI/java/JTable-handle-Row-lost-focus

I'd want to do things that similiar to this.
An interactive JTable.

By the way, can a tableModel inherits from both rs2xml and DefaultTableModel?

Any ideas?
Thanks
Jack
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> I'd want to do things that similiar to this.

doesn't help in defining your problem.

I posted that the best way to get help/solutions is to post a sample program.

in your case a sample program *is* a frame/scrollpane/table, a couple of rows and columns,
hard-coded data if needed, the listener, and the steps to produce the problem.

a sample program *is not* 34 files, particularly when it's tied to a specific IDE.

> By the way, can a tableModel inherits from both rs2xml and DefaultTableModel?

you could always 'extend whatever implements AbstractTableModel', but that's gunna get messy.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RowListener problem