Glitch with Command Finder tooltips

Thanks to @tferr, the Command Finder in recent versions of ImageJ added a slick tooltip feature.

However, after 19 uses, the Command Finder now glitches out with the error:

java.lang.IllegalArgumentException: Invalid initial delay: -100663296
	at javax.swing.Timer.setInitialDelay(Timer.java:433)
	at javax.swing.ToolTipManager.setDismissDelay(ToolTipManager.java:178)
	at ij.plugin.CommandFinder.run(CommandFinder.java:466)
	at ij.IJ.runPlugIn(IJ.java:186)
	at ij.Executer.runCommand(Executer.java:137)
	at ij.Executer.run(Executer.java:66)
	at java.lang.Thread.run(Thread.java:745)

And henceforth, the Command Finder will not appear until ImageJ is restarted.

The problem is that the tooltip delays repeatedly double until integer overflow occurs.

@Wayne Would you please fix this bug? I love the Command Finder so much, and am sad when it dies! :blush:

1 Like

Not so slick it after all. I actually find the tooltips quite annoying, I just thought it would help to document the keystroke auto-scrolling feature, hence the compromise on delaying them. Also, I just found another bug when running IJ on ubuntu (virtual machine) that the tooltips can be displayed even when one mouse overs another window displayed above the Command Finder frame.
@wayne, I would just remove the tooltips altogether. If you want, as an alternative, we could use a “Help” button of sorts (or just forget about it)…

The latest daily build (1.51b3) replaces the tooltips with a “Help” button.

2 Likes

Thank you very much!