简体   繁体   English

Sick / AWT实现的“ PickList”

[英]Swing / AWT implementation of “PickList”

I'm looking for a component which provides functionality similar to this: 我正在寻找一个提供类似于此功能的组件: 一个“选择列表”

After googling around, this seems to be called a "PickList". 谷歌搜索之后,这似乎称为“ PickList”。 Please correct me if I'm wrong. 如果我错了,请纠正我。

So far I found implentations in various languages, but not for Java. 到目前为止,我发现了各种语言的实现方式,但Java没有。 Actually, I found three implementations of a "PickList" in Java, but all of them are made for JSF, not Swing or AWT. 实际上,我在Java中找到了“ PickList”的三个实现,但是它们都是针对JSF而不是Swing或AWT创建的。

You can find a simple demonstration of the needed functionality here . 您可以在此处找到所需功能的简单演示。

Any pointers to a library implementing this would be appreciated. 指向实现此功能的库的任何指针将不胜感激。

PS: Of course I could build this component myself. PS:当然,我可以自己构建此组件。 But I'd prefer to use existing code... 但是我更喜欢使用现有的代码...

There is such component in JideSoft library (you can quickly find it in demo app by keyword "DualList"), but it is a commercial library. JideSoft库中有这样的组件(您可以通过关键字“ DualList”在演示应用中快速找到它),但这是一个商业库。 I don't know any open-source analogues. 我不知道任何开源类似物。

Anyways, it shouldn't take much time to create this component by yourself - few buttons, two lists and a bit of work with data. 无论如何,您无需花费太多时间自行创建此组件-几个按钮,两个列表以及一些数据处理。 You can even implement DnD pretty quick there. 您甚至可以在那里快速实施DnD。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM