-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
I'm pretty new to java-gnome, but I think I'm starting to get a grasp on
it. So far things are going well. Great job on the bindings :)
I have one problem though, I'm trying to store an object in a treestore
that has two columns, but only one renderer. The code looks something
like this:
strFolder = new DataColumnString();
voFolder = new DataColumnObject();
tsFolderListe = new TreeStore(new DataColumn[] { strFolder, voFolder });
//then the render stuff for the one column
Then I add things to the treestore further down in a loop, code looks
like this:
tsFolderListe.setValue(it,strFolder,myObject.getNavn());
tsFolderListe.setValue(it,voFolder,myObject);
Then, I got an event that on only tries to access the object I initially
stored and print something from it, but I get a NullPointerException.
The treepath and treeiter seems right, cause using the exact same iter
and path I'm able to pick up strFolder and print it just fine. The
object in the hidden column is gone though.
I'm not sure if it's even supposed to work, but from what I read in the
online TreeView tutorial it looks like it.
- --
marius
[From an announcement of a congress of the International Ontopsychology
Association, in Rome]:
The Ontopsychological school, availing itself of new research criteria
and of a new telematic epistemology, maintains that social modes do not
spring from dialectics of territory or of class, or of consumer goods,
or of means of power, but rather from dynamic latencies capillarized in
millions of individuals in system functions which, once they have
reached the event maturation, burst forth in catastrophic phenomenology
engaging a suitable stereotype protagonist or duty marionette (general,
president, political party, etc.) to consummate the act of social
schizophrenia in mass genocide.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFC+fLYABu4R0AdQwQRAhNtAJ95zp30wfl6wAq0Ozcf2/sTUciKIQCgmonA
74IAnLGGWkMWfzttxOXbpVo=
=BuBF
-----END PGP SIGNATURE-----
--
marius
Serocki's Stricture:
Marriage is always a bachelor's last option.
|