Changing the order of JInternalFrames



If I have JInternalFrame instances inside a JDesktopPane, calling JDesktopPane.getAllFrames() will return an array of JInternalFrames based on the order the JInternalFrames are added.

Is it possible to programmatically change the order of the JInternalFrames other than removing all and then reinserting in the desired order?


.



Relevant Pages

  • Re: Changing the order of JInternalFrames
    ... JDesktopPane.getAllFrameswill return an array of JInternalFrames based on the order the JInternalFrames are added. ... Is it possible to programmatically change the order of the JInternalFrames other than removing all and then reinserting in the desired order? ... Maintain an array or List of JInternalFrame references and add to it whenever a JInternalFrame is added or removed from your JDesktopPane. ...
    (comp.lang.java.gui)
  • Re: How to start on debugging this Swing/AWT error?
    ... Basically there is a JDesktopPane that contains 4 JInternalFrames. ... if the deiconization occurs as a result of a user action, ... Interestingly the deiconization actually succeeds, ...
    (comp.lang.java.programmer)
  • Re: "illegal component position" again
    ... > I have a JDesktopPane and I want to put two JInternalFrames in it. ... There's no such thing as an IllegalComponentPositionException in J2SE. ... small *compilable* example that causes the exception to be thrown? ...
    (comp.lang.java.gui)
  • "illegal component position" again
    ... I have a JDesktopPane and I want to put two JInternalFrames in it. ... getChildFrame() both return JInternalFrames. ... Thanks for replying, ...
    (comp.lang.java.gui)
  • Re: JInternalFrame Focus problem
    ... When I add JInternalFrames to my JDesktopPane, ... Note that neither frame has focus at launch. ...
    (comp.lang.java.gui)