*
The moose likes Swing / AWT / SWT and the fly likes event sequence Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "event sequence" Watch "event sequence" New topic
Author

event sequence

ps prasad
Greenhorn

Joined: Mar 03, 2005
Posts: 3
I have a requirement to open another window as soon as the user closes the current window.
We are using a framework and extending a framework class(Abstract Frane) to create new frames. The abstract frame adds defautl internal frame listerner to the created window. And also there is a toolbar in desktop pane.
As per my requirement, i have added a new internal frame listener and has code to invoke a new screen in the internal frame closed event.Now there two internal frame listeners 1) Added by frame work 2) Explicitly added by me.
When the window is closed, the code that i wrote in internalframeclosed event is getting executed and the next scteen is invoked, Now the problem is here. Next, the listener added by framework fires and it has code to disable the tool bar . so the tool bar is getting disabled. But actually the bar always point to current frame. so, it's setting should confrom to newly opened frame. As the infterframe closed event is firing after the new window is created, tool bar is becoming non funtional. As per my knowledge there is noway impose sequence on the events. I have some functionality in the listerner added by framework and as far as possible don't want it to be removed.
Is there any way to control this.
[ March 03, 2005: Message edited by: ps prasad ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: event sequence