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.
我想创建一个在单击按钮时向左滑动的面板。我希望是否有一个摆动组件可以做到这一点。我画了一个草图来说明我的想法。
我会选择一个JSplitPane. 您可以通过从位置添加/减去并使用 Thread.sleep(millis go here) 来为拆分器的位置设置动画;计时每个增量/减量。我希望这行得通!
JSplitPane