开发者

Java TokenField like Cocoa's?

开发者 https://www.devze.com 2022-12-08 22:47 出处:网络
Does anyone know of an existing Java component that implements a TokenField, similar to Cocoa\'s NSTokenField?

Does anyone know of an existing Java component that implements a TokenField, similar to Cocoa's NSTokenField?

An overview of the Cocoa control is at: http://developer.apple.com/mac/library/do开发者_如何学编程cumentation/Cocoa/Conceptual/TokenField_Guide/Introduction/Introduction.html

Suggestions for implementation?

Thanks!


Erm maybe you can try StringTokenizer? This will break your string into individual tokens. StringTokenizer(String text, delimiter);

For example:

String text="Hello World";

Stringtokenizer stText= new StringTokenizer(text, " ");


Although it does not seems to be implemented yet, you should take a look at macwidgets, and eventually ask for implementation of your widget.

0

精彩评论

暂无评论...
验证码 换一张
取 消