[ xframe-Bugs-1169153 ] JXTable.setModel doesn't work.

"SourceForge.net" <[email protected]> Wed, 23 Mar 2005 07:48:14 -0800
Newsgroups gmane.text.xml.xframe.xsddoc
Message-ID <[email protected]>
Bugs item #1169153, was opened at 2005-03-23 16:04
Message generated for change (Comment added) made by kriede
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=454391&aid=1169153&group_id=48863

Category: JXTable
>Group: swing-0.0.1
Status: Open
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: JXTable.setModel doesn't work.

Initial Comment:
Hi. If I do this:

JXTable t1 = new JXTable(new TestModel(), 2);

The table looks as expected. But if I do:

JXTable t2 = new JXTable();
t2.setFrozenColumns(2);
t2.setModel(new TestModel());

It shows a columless table. And if I do:

JXTable t3 = new JXTable(); 
t3.setModel(new TestModel());
t3.setFrozenColumns(2);

It simply crashes. Hope you can give me a hint because 
I really need this.Thanks.

----------------------------------------------------------------------

>Comment By: Kurt Riede (kriede)
Date: 2005-03-23 16:48

Message:
Logged In: YES 
user_id=484961

Thank you for the bug report.
I just checked in a new example that reproduces your bug:
see class net.sf.xframe.swing.demo.JXTableDemo3
in the samples folder

There is now also a fix for the bug:
class net.sf.xframe.swing.JXTable

The problem was that when setting a new tabel model, the 
column model wasn't properly adjusted to the new model.

Should work now, but is not yet extensivly tested.
Please give us feedback.

The modified file JXTable.java is also attached to this report.

Regards
Kurt

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=454391&aid=1169153&group_id=48863


-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content.  Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click