不同菜单之间的Java FX动画 [英] Java FX animations between different menus

查看:138
本文介绍了不同菜单之间的Java FX动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个java游戏,我打算用Swing做UI,但我想在菜单之间设置动画,而且据我所知,这很难实现。

I'm developing a java game and I planned to do the UI with Swing, but I wanted to have animations between the menus, and for what I know, that would be hard to achieve.

我一整天都在搜索,看到Java FX有转换和转换。我已经玩了一段时间,但我仍然不知道我能不能做我想做的事。

I've been searching all day and saw that Java FX has transitions and transformations. I've been playing with it for a while, but I still don't know if I can do what I want.

是否有可能实现这种效果? http://i.stack.imgur.com/zThXH.gif

Is it possible to achieve this effect? http://i.stack.imgur.com/zThXH.gif

推荐答案

尝试几次失败后,我决定搜索我展示的gif中使用的内容。

After a few failed tries, I decided to search for what is used in the gif I showed.

我最终找到了它,这正是我所搜索的内容。

I eventually found it and it was exactly what I was searching.

github.com/AurelienRibon/sliding-layout

这是一个非常小的库,用于组件布局之间的平滑动画。它非常容易使用!

It's a very small library used for smooth animations between layouts of components. It's very easy to use!

在20分钟内,我能够做到这一点: imgflip。 com / i / tmef

In 20 minutes I was able to do this: imgflip.com/i/tmef

这篇关于不同菜单之间的Java FX动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆