SingleFrameApplication : Exit Menu vs Close Window button

View: New views
2 Messages — Rating Filter:   Alert me  

SingleFrameApplication : Exit Menu vs Close Window button

by Bob G. :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I am starting to use jdesktop API with NetBean 6.01.

I am building a simple SingleFrameApplication (From the Wizzard). My main view extend the class  FrameView

The auto generated Exit Menu item close my application properly (closing my Spring Context properly).
But when I close it with the Close the windows with the top Button, the behaviour is different. The windows disappear but the JVM does not exit properly (Spring context does not close properly).

How can I have access to the Close event from the JFrame under the FrameView object?

Is there a reason why the API is not published anywhere?






Re: SingleFrameApplication : Exit Menu vs Close Window button

by Po0ky :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bob G. wrote:
Hello,

I am starting to use jdesktop API with NetBean 6.01.

I am building a simple SingleFrameApplication (From the Wizzard). My main view extend the class  FrameView

The auto generated Exit Menu item close my application properly (closing my Spring Context properly).
But when I close it with the Close the windows with the top Button, the behaviour is different. The windows disappear but the JVM does not exit properly (Spring context does not close properly).

How can I have access to the Close event from the JFrame under the FrameView object?

Is there a reason why the API is not published anywhere?
You can find more information on the Swing Application Framework here:
https://appframework.dev.java.net/

More specific to the problem you are having:
https://appframework.dev.java.net/issues/show_bug.cgi?id=58

You can find the API for the framework there too.