Java Swing Ordering JInternalFrames

Are there any default features for organizing JInternalFrames in Java Swing?

I would like to use the functions of Cascade, Tile, etc. in my Java Swing application as follows: http://www.codeproject.com/KB/cs/mdiformstutorial.aspx I could only find the code where they executed manually. No support for this in Java Swing or am I a little blind?

+3
source share
1 answer

I cascaded before, but I did this by shifting the pixels of the frames to create an effect that I don’t know, another way to do this would be to figure out how big JDesktopPane now gets an array of your internal frames with getAllFrames (), then calibrate and manual movement.

I’m sure (although I haven’t been looking for at least 2 years) that rocking has no other way to perform these operations, I’m sure someone wrote a third-party library somewhere to chat with swing applications if no, I would write one and open source :)

Edit

I just thought that otherwise you could make a tile, etc., it would be to write your own layout manager that would do the hard work for you with something like FrameTileLayoutManager, and then use it ... just a thought.

+5

Source: https://habr.com/ru/post/1736654/


All Articles