Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Extended JDialog not closing in JAR  RSS feed

 
Dean WinchesterD
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been using the dispose() method which worked like a charm but whenever I run it from a (runnable) JAR-file the dialog just won't go away.

setVisible(false) is not doing the trick either, neither does a combination of both.

Regards, Dean


edit: sorry, this should be to the Swing-board, my bad...
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dean WinchesterD wrote:... this should be to the Swing-board ...

It is now

To get any meaningful help, you'll have so show us code that reproduces the problem. I rather suspect --

-- Swallowing exceptions: an empty catch block or one with sysout/printStackTrace statements that don't show when run via javaw.exe. (Run from a command prompt with java -jat to check)

-- Neglecting Swing's single threaded rule <-- search terms, if you're not familiar with it.
 
Dean WinchesterD
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Darryl Burke wrote:
Dean WinchesterD wrote:... this should be to the Swing-board ...

It is now

To get any meaningful help, you'll have so show us code that reproduces the problem. I rather suspect --

-- Swallowing exceptions: an empty catch block or one with sysout/printStackTrace statements that don't show when run via javaw.exe. (Run from a command prompt with java -jat to check)

-- Neglecting Swing's single threaded rule <-- search terms, if you're not familiar with it.


You were completely right. java -jar did show some hidden exceptions

I wonder why it worked fine when running from the IDE though.

Thanks DB

Dean
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!