#1048 right-click the graphiclink, no menu pop-up

_FreeMind_0.9.0
open
Linux (67)
5
2011-09-08
2011-06-24
Shawn Zhao
No

1) lsb_release -rd
Description: Ubuntu 11.04
Release: 11.04

2) apt-cache policy apt-cache policy openjdk-6-jre
openjdk-6-jre:
Installed: 6b22-1.10.2-0ubuntu1~11.04.1
Candidate:6b22-1.10.2-0ubuntu1~11.04.1
Version table:
*** 6b22-1.10.2-0ubuntu1~11.04.1 0
500 ftp://openware.byr.edu.cn/pub/mirror/ubuntu/ natty-security/main i386 Packages
500 ftp://openware.byr.edu.cn/pub/mirror/ubuntu/ natty-updates/main i386 Packages
100 /var/lib/dpkg/status
6b22-1.10.1-0ubuntu1 0
500 ftp://openware.byr.edu.cn/pub/mirror/ubuntu/ natty/main i386 Packages

6.24-1build0.10.10.1 0
500 http://archive.canonical.com/ubuntu/ natty/partner i386 Packages

3) apt-cache policy freemind
freemind:
Installed: 0.9.0~rc7+dfsg-1
Candidate:0.9.0~rc7+dfsg-1
Version table:
*** 0.9.0~rc7+dfsg-1 0
500 ftp://openware.byr.edu.cn/pub/mirror/ubuntu/ natty/universe i386 Packages
100 /var/lib/dpkg/status

4) Run the freemind from the terminal. In freemind, after creating a graphiclink between two nodes, right-click at the graphiclink arrow then a pop-up menu is expected to show up. However, there was nothing happened after I did this in my case. Instead, I got some error messages in the terminal as follows:

STDERR: Exception in thread "AWT-EventQueue-0"
STDERR: java.lang.NullPointerException
STDERR: at sun.swing.SwingUtilities2.getLeftSideBearing(SwingUtilities2.java:241)
STDERR: at sun.swing.MenuItemLayoutHelper.getLeftExtraWidth(MenuItemLayoutHelper.java:162)
STDERR: at sun.swing.MenuItemLayoutHelper.calcExtraWidths(MenuItemLayoutHelper.java:158)
STDERR: at sun.swing.MenuItemLayoutHelper.reset(MenuItemLayoutHelper.java:148)
STDERR: at javax.swing.plaf.synth.SynthMenuItemLayoutHelper.<init>(SynthMenuItemLayoutHelper.java:119)
STDERR: at javax.swing.plaf.synth.SynthGraphicsUtils.getPreferredMenuItemSize(SynthGraphicsUtils.java:434)
STDERR: at javax.swing.plaf.synth.SynthMenuItemUI.getPreferredMenuItemSize(SynthMenuItemUI.java:195)
STDERR: at javax.swing.plaf.basic.BasicMenuItemUI.getPreferredSize(BasicMenuItemUI.java:363)
STDERR: at javax.swing.JComponent.getPreferredSize(JComponent.java:1634)
STDERR: at javax.swing.BoxLayout.checkRequests(BoxLayout.java:481)
STDERR: at javax.swing.BoxLayout.preferredLayoutSize(BoxLayout.java:298)
STDERR: at javax.swing.plaf.synth.DefaultMenuLayout.preferredLayoutSize(DefaultMenuLayout.java:66)
STDERR: at java.awt.Container.preferredSize(Container.java:1605)
STDERR: at java.awt.Container.getPreferredSize(Container.java:1590)
STDERR: at javax.swing.JComponent.getPreferredSize(JComponent.java:1636)
STDERR: at javax.swing.JPopupMenu.adjustPopupLocationToFitScreen(JPopupMenu.java:358)
STDERR: at javax.swing.JPopupMenu.getPopup(JPopupMenu.java:791)
STDERR: at javax.swing.JPopupMenu.setVisible(JPopupMenu.java:748)
STDERR: at javax.swing.JPopupMenu.show(JPopupMenu.java:921)
STDERR: at freemind.controller.MapMouseMotionListener.handlePopup(MapMouseMotionListener.java:74)
STDERR: at freemind.controller.MapMouseMotionListener.mousePressed(MapMouseMotionListener.java:106)
STDERR: at java.awt.Component.processMouseEvent(Component.java:6265)
STDERR: at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
STDERR: at java.awt.Component.processEvent(Component.java:6033)
STDERR: at java.awt.Container.processEvent(Container.java:2045)
STDERR: at java.awt.Component.dispatchEventImpl(Component.java:4629)
STDERR: at java.awt.Container.dispatchEventImpl(Container.java:2103)
STDERR: at java.awt.Component.dispatchEvent(Component.java:4455)
STDERR: at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
STDERR: at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4294)
STDERR: at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
STDERR: at java.awt.Container.dispatchEventImpl(Container.java:2089)
STDERR: at java.awt.Window.dispatchEventImpl(Window.java:2517)
STDERR: at java.awt.Component.dispatchEvent(Component.java:4455)
STDERR: at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)
STDERR: at java.awt.EventQueue.access$000(EventQueue.java:96)
STDERR: at java.awt.EventQueue$1.run(EventQueue.java:608)
STDERR: at java.awt.EventQueue$1.run(EventQueue.java:606)
STDERR: at java.security.AccessController.doPrivileged(Native Method)
STDERR: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
STDERR: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
STDERR: at java.awt.EventQueue$2.run(EventQueue.java:622)
STDERR: at java.awt.EventQueue$2.run(EventQueue.java:620)
STDERR: at java.security.AccessController.doPrivileged(Native Method)
STDERR: at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
STDERR: at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
STDERR: at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
STDERR: at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
STDERR: at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
STDERR: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
STDERR: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
STDERR: at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

I am using openjava. So, could it be a JRE problem?

Discussion

  • Shawn Zhao
    Shawn Zhao
    2011-06-24

    the .mm file used as an example in the description

     
    Attachments
  • Ntester
    Ntester
    2011-09-05

    I had exactly the same bug. I even have the same distro, so I testes with SUN java, but no difference, the exception is the same.

     
  • Shawn Zhao
    Shawn Zhao
    2011-09-06

    Dear FreeMind user,

    the bug you've reported seems to be a general Java issue. This normally can't be fixed inside FreeMind easily.
    To verify this, please take some other pure Java based tools (like jedit (http://jedit.sourceforge.net/) for example) and try to observe this behaviour. Please, note that Eclipse based applications are not compareable with FreeMind as a complete different graphical user interface design (ie. SWT instead of Swing) is used.

    If you still think that this is a specific FreeMind issue, please reopen this bug.

    Regards,

    Chris

     
  • Shawn Zhao
    Shawn Zhao
    2011-09-06

    I tried the Sun Java.
    apt-cache policy sun-java6-jre
    sun-java6-jre:
    Installed: 6.26-1natty1
    Candidate:6.26-1natty1
    Version table:
    *** 6.26-1natty1 0
    500 http://archive.canonical.com/ubuntu/ natty/partner i386 Packages
    100 /var/lib/dpkg/status

    The problem disappeared.

     
  • Eric L.
    Eric L.
    2011-09-08

    Just re-assigning to Chris. Not sure there is still something to do though.

     
  • Eric L.
    Eric L.
    2011-09-08

    • assigned_to: ewl --> christianfoltin