Redian新闻
>
Java Swing -- autohide panel widgets?
avatar
Java Swing -- autohide panel widgets?# Java - 爪哇娇娃
t*e
1
it should appear as a small tab docked on the side of the screen, when u
click on it, it slide/expand into a panel.
This feature exists in lots of applications so I guess there must be
something similar in swing. So far I didn't find anything, if you know
something please help. Baozi will be served :)
Thanks.
avatar
c*t
2
http://mydoggy.sourceforge.net/

【在 t***e 的大作中提到】
: it should appear as a small tab docked on the side of the screen, when u
: click on it, it slide/expand into a panel.
: This feature exists in lots of applications so I guess there must be
: something similar in swing. So far I didn't find anything, if you know
: something please help. Baozi will be served :)
: Thanks.

avatar
t*e
3
Thanks coconut, they seems to use splitpane style, which is not what my boss
have in his mind :P
Guess I have to do it myself.

【在 c*****t 的大作中提到】
: http://mydoggy.sourceforge.net/
avatar
t*e
4
I didn't find anything so I decided to make my own.
I used layered pane to put my panel on and animator to slide it.
I also made my panel semitransparent.
it works nicely, however, with lots of work on repaint issues.
we later decided to use splitpane. IMO it not looks as good as the previous
implementation.
just a couple of days ago I come across JDock on web, it seems to be the one
I was looking for. https://swing-bug.dev.java.net/
I didn't look deep into it but it seems their demo works.

bos

【在 t***e 的大作中提到】
: Thanks coconut, they seems to use splitpane style, which is not what my boss
: have in his mind :P
: Guess I have to do it myself.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。