阅读背景:

使用Enum类填充JComboBox

来源:互联网 

I'm trying to populate JComboBox with enums declared in Colour.java. I can access the description of the enums using Colour.values() but is it possible to access the enum declaration itself? I'd like the JComboBox populated with Blue and Red. I've had a look at I'm trying to populate JComboBox with enums dec




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: