[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Prefuse on SWT

I know it's probably some kind of "prefuse" issue and I've tried asking on the prefuse forun and got no answer.

Prefuse (prefuse.org) toolkit has these nice visualization demos that run really nice on the separated applications. What I'm trying to do is to run this inside my SWT application.

Anyone here who have used prefuse may give me some insight here



  public static void main(String[] args) {

		Display display = new Display();
		Shell shell = new Shell(display);
		shell.setLayout(new FillLayout());

		t = new Tree();
		m_nodes = t.getNodeTable();
		m_nodes.addColumn("name", String.class);

root = t.addRoot();
root.set("name", "starting..."); tview = new TreeViewProvider(t, "name");
JPanel panel = new JPanel(new BorderLayout());
Composite c = new Composite(shell, SWT.EMBEDDED); c.setLayout(new FillLayout());
Frame frame = SWT_AWT.new_Frame(c);


c.layout();
shell.layout();
shell.open();


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

the TreeViewProvider is the the TreeView class of the prefuse demo.
It adds some listners to the view, render the tree, etc...
the thing is that these listners stop working when I run here.


Thanks a lot.