[kepler-dev] Re: Can't see context menus in editor
Matt Jones
jones at nceas.ucsb.edu
Sat Jul 31 15:12:15 PDT 2004
Ned,
This is a known bug and has been fixed in the development tree. To get
to work on your machine, either patch the source code and compile (which
means you can't use WebStart), or I've heard a rumor that the bug
doesn't surface if you use JDK 1.5.x beta. There's a page describing
the problem here, and how to fix it:
http://ptolemy.eecs.berkeley.edu/~cxh/tmp/diva/
Emails about the topic were discussed on the Kepler mailing lists. See
this thread:
http://www.ecoinformatics.org/pipermail/kepler-dev/2004-July/thread.html#622
Matt
Ned Konz wrote:
> Hi all,
>
> After spending a few days in a workshop with Ed Lee and seeing PtolemyII demoed,
> I figured I need to try it! It's a really impressive tool, as far as I can tell.
>
> So I downloaded the web start version and ran it,
> but found that I couldn't bring up the context menu on a selected actor.
>
> Well, actually what I saw was that a blank rectangle flashed where the menu
> should be and then disappeared.
>
> So I downloaded the JDK (1.4.2_05) and the sources and re-compiled.
> Same problem.
>
> I can get context menus in the tree to the left of the window.
>
> Does anyone have any suggestions?
>
> I have a Linux machine, with an NVidia graphics adapter, and two monitors in Twinview mode (if it matters).
> I'm running a 2.6.6 kernel, with the v6106 Nvidia driver.
>
> I can run other Java programs with no problems.
>
> My Java is:
> $ java -version
> java version "1.4.2_05"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
> Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
>
> I saw the same problem with the Java Web Start version 1.4.1.
>
> Also, when I hover the mouse over an actor it gives its name and says something about "Control-N".
> When I press Control-N, I get a stack trace:
>
> -------
> $ java -classpath "$PTII" ptolemy.vergil.VergilApplication
> Opening user library /home/ned/.ptolemyII/UserLibrary.xml... Done
> ptolemy.kernel.util.InternalErrorException: Expected target to be a class definition
> at ptolemy.vergil.actor.ClassDefinitionController._createChangeRequest(ClassDefinitionController.java:223)
> at ptolemy.vergil.actor.ClassDefinitionController.access$000(ClassDefinitionController.java:83)
> at ptolemy.vergil.actor.ClassDefinitionController$CreateInstanceAction.actionPerformed(ClassDefinitionController.java:327)
> at javax.swing.JComponent$ActionStandin.actionPerformed(JComponent.java:2863)
> at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1530)
> at javax.swing.JComponent.processKeyBinding(JComponent.java:2438)
> at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:253)
> at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:202)
> at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2515)
> at javax.swing.JComponent.processKeyBindings(JComponent.java:2507)
> at javax.swing.JComponent.processKeyEvent(JComponent.java:2401)
> ------
>
> Thanks,
More information about the Kepler-dev
mailing list