I tried to access the JInternalFrame in my JDesktopPane and use the getAllFrames method.
I just want to access the JInternalFrame in the order in which I added JDesktopPane. e.g. i add a, b, c
frames[0] contain a
frames[1] contain b
frames[2] contain c
But I found out that the contents in the array will change in case I change my choice. Every time I change my choice. The selected JInternalFrame in the array will move to the top.
For example, I select b The array will become
frames[0] contain b
frames[1] contain a
frames[2] contain c
Are there other ways to get the internal frame in the order that I add it to the desktoppane?
source
share