cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

WindowActivated event doesn’t triggers correctly in custom application

Highlighted
Participant

WindowActivated event doesn’t triggers correctly in custom application

I'm developing custom application for Arbortext V 7.0 using Java. My application needs active window id to load the JFrame. When I open any ditamap document the Resource Manager window on the left pane of Arbortext editor becomes the active window by default, my custom application loads on that window. However the WindowActivated event doesn't triggered when I try to switch the focus to editor window on the right pane by clicking the mouse button or modifying the text. The WindowActivated event for right side window triggers only when I minimize the editor and restore it.

 

This behavior cases my application to crash, as when I open the application it gets reference of Recourse Manager window, and when I click the button on application to read the content the focus automatically switches to editor window.

 

Questions:

  1. Why the WindowActivated event triggers for Resource Manager window? As this happens only once and this event never triggeres again for same window though user switches the focus between editor windows.
  2. Why the WindowActivated event is not triggered when user switches the focus between the left or right pane in the same window?
Tags (1)
Announcements