Java TreeView FAQ



maintained by Alok Saldanha <alokito@users.sourceforge.net>
last updated Sun Apr 9 16:53:37 PDT 2006



1. I noticed that I couldn't cut/paste from the text fields, is there some way to do this?
2. How can I be notified of updates?
3. After loading a CDT, I see no colors and the figure is all black. What do I need to do to get some color?
4. My file that has a name containing a "_A" or "_G" gives errors mentiong "KAG" and "KGG" files, and doesn't display dendrograms. How can I fix it?
5. JTV is behaving badly on my windows machine. Can you help me?
6. What are styles about? Where does the name "Linked" come from?
7. I have human/mouse/lymphochip genes. How can I link to SOURCE?
8. How can I select the parent of a node? Up arrow does something counterintuitive.
9. How can I add associate colors with genes to visualize annotations?
10. I want to include a picture of the clusters inside a document
11. I typed something into a text field and closed the dialog window, but the program ignored me. What gives?





1. I noticed that I couldn't cut/paste from the text fields, is there some way to do this?
If I identify genes or arrays of interest, how do I select and paste them elsewhere?


The easiest way to cut and paste genes right now is as follows:

  1. Select the genes of interest
  2. Select Export->Save list
  3. A preview of the list will appear that can be selected. Press Control-A, Control-C to copy it all to the clipboard
  4. Click "Cancel" to close the window without saving to disk.
Unfortunately, there is so corresponding functionality for arrays at the moment, although a "save arrays" option would make sense.



2. How can I be notified of updates?

There are two options.
  1. If you have a sourceforge account, start monitoring the project. just go to

    https://sourceforge.net/projects/jtreeview/

    and click the "Monitor project" icon

  2. If you don't have a sourceforge account, you need to join the jtreeview-announce@lists.sourceforge.net mailing list at

    http://lists.sourceforge.net/lists/listinfo/jtreeview-announce




3. After loading a CDT, I see no colors and the figure is all black. What do I need to do to get some color?

try setting the contrast, under Settings->Pixel Settings... The contrast is the value at which the colors saturate. The default contrast is 3 (8 fold on a log2 scale). If you data has small values, then it will appear black.



4. My file that has a name containing a "_A" or "_G" gives errors mentiong "KAG" and "KGG" files, and doesn't display dendrograms. How can I fix it?

The problem is the _A or _G in the file name. For reasons that are not worth going into right now, this causes Java Treeview to treat the file as a k-means clustered file instead of a hierarchical clustered file. This behavior will hopefully go away later.
There are two solutions to this problem right now:
  1. When you open the file, select "Linked" or "Classic" in the style pulldown of the "Open.." dialog. You may not have noticed it, but it's there. Also, treeview will remember what you picked if you select it from the recent files list.
  2. Don't use "_G" or "_A" in your file names.



5. JTV is behaving badly on my windows machine. Can you help me?

Please try installing java from the sun website. You just need the "J2SE Desktop Java JRE" edition. If this doesn't help, please send email to the jtreeview-users@lists.sourceforge.net mailing list



6. What are styles about? Where does the name "Linked" come from?

Please see this section of the manual for details on the different styles. The manual is actually a little out of date, as the styles used to be separate programs, but are now just choices on the "File->Open..." dialog. The reason we have styles is because at the outset, it was decided to keep the different user interfaces separate, and in particular to keep a "classic" style for those who may be confused by a more elaborate user interface. In the future, styles may closely correspond to file types. In particular, at some point there could be a "SOM" style in addition to the "k-Means", and a more elaborate interfaces for visualizing these other clustering types.



7. I have human/mouse/lymphochip genes. How can I link to SOURCE?

please see http://jtreeview.sourceforge.net/docs/links.html



8. How can I select the parent of a node? Up arrow does something counterintuitive.

Java TreeView has context-sensitive keyboard event processing. What this means is that the particular tree panel must have the focus in order for it to get the keyboard event. This is necessary, since the up arrow selects the parent node in both the array and gene trees. If it weren't focus-sensative, it wouldn't know which tree to select the parent of. Unless only one tree had a node selected, I suppose. You get the idea. Anyways, moving the mouse over the panel will give it the focus. The panel with the focus should have a heavier black border.



9. How can I add associate colors with genes to visualize annotations?

please see http://jtreeview.sourceforge.net/examples/index.html



10. I want to include a picture of the clusters inside a document preferably Tex, but not necessarily, it could also be Word.

You can export to either postscript or GIF format using the Export menu. Another way is to use screen capture. On Mac OS X, Command-SHIFT-4 lets you capture rectangular portions of the screen. Please try google for other operating systems.



11. I typed something into a text field and closed the dialog window, but the program ignored me. What gives?

You have stumbled into an issue with how java deals with string input. You sometimes need to press the enter key after you paste in the url in order for the program to actually register it. This is not particularly elegant, but if I try to do something fancy to make up for it, I tend to cause other problems on different platforms. Since I don't have a team of programmers working for me, I can't afford to write lots of slick exception handling code. Just remember to push enter after you change a value in a textfield- this applies to all text fields, including the contrast settings, if you change them directly.