Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个框架,一旦它被最小化,我想最小化与之相关的其他框架。如果框架不再最小化,我也想恢复其他框架。我该怎么做呢?
编辑:nvm,它有效。
JInternalFrame.addInternalListener,然后在internalFrameDeiconified方法中捕获。
JInternalFrame.addInternalListener
internalFrameDeiconified
然后你可以调用JInternalFrame.setMaximum(true)任何其他被最小化的。
JInternalFrame.setMaximum(true)