Java中的SplitButton [英] SplitButton in Java

查看:101
本文介绍了Java中的SplitButton的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人有SplitButton的编码实现?

Does anyone have a coded implementation of SplitButton?

我试过搜索一些实现,但没有一个工作。 (例如 JSplitButton )。

I've tried searching some implementations but none of them work. (e.g. JSplitButton).

推荐答案

演示不工作!= splitButton不工作: - )

Demo not working != splitButton not working :-)

splitButton = new JSplitButton("Split Button Demo");
splitButton.setPopupMenu(jPopupMenu2);
add(splitButton);

(注意:这是特定splitButton实现的推荐,只是提醒一下,在评估你找到的项目时你应该更加小心。如果你出于某种原因不能,你可以考虑使用商业产品,比如Synthetica或JIDE,仅举两个例子。

(Note: this is not a recommendation of that particular splitButton implementation, just a reminder that you should be a bit more careful in evaluating the projects you are finding. If you can't for some reason, you might consider using a commercial product, like Synthetica or JIDE, just to name two)

这篇关于Java中的SplitButton的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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