title: Listening to all JInternalFrame events - Java
body: <p>I'm trying to internationalise a Java applet and with that, support scripts which are written from right to left. I want to set up component orientations for all java components added to the view automatically.</p>
  
  <p>My solution so far has to listen to all AWTEvent's using the windows mask:</p>
  
  <pre><code>c.getToolkit().addAWTEventListener(listener, AWTEvent.WINDOW_EVENT_MASK);
  </code></pre>
  
  <p>...and then setting the c/o on each window added, as well as adding component listeners to set c/o on any components added to the window at a later point.</p>
  
  <p>My issue is that JInternalFrames are not handled by this solution, I want to be able to add another listener for these events, much like I have done for windows. Any ideas?</p>
  
  <p>Or alternatively, are there any better approaches to handling script direction for all components in an applet?</p>