且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Java Swing的元素转换

更新时间:2023-01-14 13:46:25

因为你没接受了答案,我可以建议你的 SlidingLayout库
这是一个非常小的库,目的就是为了某些成分的两种布局之间创建平滑的过渡。从而,使两个屏幕之间的过渡是很容易做到的。这里我只是做了一个例子:

Since you did not accepted an answer yet, may I suggest you the SlidingLayout library? It's a very small library which aim is to create smooth transitions between two layouts of some components. Thus, making a transition between two screens is very easy to do. Here's an example I just made:

Java Swing的元素转换Java Swing的元素转换

这两个过渡过程之间的差异依赖于code的两行。您还可以通过每个组件应用不同的延迟创造更多的花哨的过渡,所以他们很显然并不是所有的一次,但与它们之间的一些时间的变化。

The difference between the two transitions relies on two lines of code. You can also create more fancy transitions by applying a different delay on each component, so they appear not all at once but with some timing variations between them.

我希望它可能对你有用:)

I hope it may be useful to you :)