Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

multiple enums in 1 enum class

807603Feb 6 2008 — edited Feb 7 2008
hello,

i'm trying to make a chatserver that receives multiple sorts of packets
and for determinating what sort of package it receives i'm using an enum class

now i'm trying to add icons to some status labels on the overview window, but when the server receives 'FILE' packages, it means someone is transferring a file to someone else

in order to get a better overview of the received 'FILE' packages i would like to use this as my file class, but it doesn't let it compile

can anyone help me how to get this piece of code to work?
public enum NFile{
     public enum MS{ WORD, EXCEL, POWERPOINT, OUTLOOK; },
     public enum Web{ HTML, PHP, XML, ASP, CHM, JS; },
     public enum Image{ BMP, JPG, GIF, PNG, TIFF; };
}
thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 5 2008
Added on Feb 6 2008
14 comments
1,254 views