how to use JComboBox using Enum in Dialog Box
        Posted  
        
            by Edan
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Edan
        
        
        
        Published on 2010-04-26T16:14:25Z
        Indexed on 
            2010/04/26
            16:33 UTC
        
        
        Read the original article
        Hit count: 335
        
Hi,
I define enums:
enum itemType {First, Second, Third};
public class Item
{
private itemType enmItemType;
...
}
How do I use it inside Dialog box using JComboBox? Means, inside the dialog box, the user will have combo box with (First, Second, Third). Also, is it better to use some sort of ID to each numerator? (Integer)
thanks.
© Stack Overflow or respective owner