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.
我目前正在研究 Oracle 的示例类DiagonalLayout。
此类创建对角线布局(从左到右)。我会通过选择 JCheckBox 来反转方向(从右到左)。
如何?
DiagonalLayout具有从左到右布局组件的固定行为。
DiagonalLayout
ReverseDiagonalLayout为了以反向对角线顺序获得组件,您必须使用所需的layoutContainer实现来开发自己的组件。然而,原始布局可以作为指南。
ReverseDiagonalLayout
layoutContainer