NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #734 (closed defect: worksforme)

Opened 2011-08-31T14:23:14-05:00

Last modified 2011-09-09T13:10:38-05:00

Close Window throws exception

Reported by: afraser Owned by: gharris
Priority: minor Milestone: imagej-2.0-alpha5
Component: Display API Version:
Severity: serious Keywords:
Cc: Blocked By:

Description (last modified by afraser)

File > Close (Cmd+W) doesn't completely close the display window and throws the following exception:

[ERROR] Module threw exception
java.lang.ClassCastException: javax.swing.JLayeredPane cannot be cast to imagej.ui.swing.display.SwingDisplayWindow

at imagej.ui.swing.display.SwingDisplayPanel.close(
at java.util.concurrent.FutureTask$Sync.innerRun(
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
at java.util.concurrent.ThreadPoolExecutor$

The same is true for File>Close All

Change History

comment:1 Changed 2011-08-31T14:25:26-05:00 by afraser

  • Description modified

comment:2 Changed 2011-09-09T11:21:03-05:00 by curtis

  • Owner changed from curtis to gharris
  • Status changed from new to assigned

comment:3 Changed 2011-09-09T13:07:18-05:00 by gharris

I'm not able to replicate this error now. (GBH)

+ CloseAll only closed IJ1 image windows.

comment:4 Changed 2011-09-09T13:10:38-05:00 by gharris

  • Status changed from assigned to closed
  • Resolution set to worksforme

Works for me.