Closing Plot and Viewer issues system exit

1 view
Skip to first unread message

andrea antonello

unread,
Feb 20, 2018, 4:49:59 AM2/20/18
to geos...@googlegroups.com
Hello,
I noticed that if I use Viewer.draw or plot from the Groovy console,
once I close the created viewer also the Groovy Console is closed.

Is there a way avoid what seems to be a system exit with viewers?

Thanks,
Andrea

andrea antonello

unread,
Feb 20, 2018, 4:56:54 AM2/20/18
to geos...@googlegroups.com
Sorry for the noise, I just saw in the code:

if (java.awt.Frame.frames.find{it.title.contains("GroovyConsole")}) {
frame.defaultCloseOperation = JFrame.DISPOSE_ON_CLOSE

and I had changed the title to Groovy Console :-)

That is why it was exiting.

Cheers,
Andrea
Reply all
Reply to author
Forward
0 new messages