Java Swing的JPanel的向上滑动动画? [英] Java Swing JPanel slide up animation?

查看:1036
本文介绍了Java Swing的JPanel的向上滑动动画?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的事情,当我点击过滤器箭头(它应该是一个向上的箭头,我知道):
- 上面的表格潘内尔有向上滑动慢(和disapear)
- 绿色面板已被抬起
- 底部滚动窗格有缓慢上升的高度(+形式面板的高度)

I have this thing and when I click on the filter arrow (it should be a up arrow I know): - the form pannel above has to slide up slowly (and disapear) - the green panel has to be lifted up - the bottom scrollpane has to slowly rise up its height (+the height of the form panel)

我不摆动这么好,我怎么能这样做呢?

I am not so good with swing, how can I do that ?

非常感谢你!

问候

推荐答案

SwingX 配备了JXCollapsiblePanel这可能是很有帮助。其演示它显示在左侧动作(如taskPanes) - 这是的一部分选择演示。

SwingX comes with a JXCollapsiblePanel which might be helpful. Its demo shows it in action (as taskPanes) at the left - that's the part for choosing the demos.

这篇关于Java Swing的JPanel的向上滑动动画?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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