Two Classes and a Public Void!

Ok for some reason i cant get this to work! 1. I have two panels classes, one for the radio buttons and the other for the checkboxes. 2. the second part is to calculate the choices. what am i doing wrong, (with out the panels i can get it to work) here is the code

What does it do exactly that you define as "not working"? Please provide cocmpiler errors, if any, and describe what results you intend as well as what actually happens. As an aside, typical Java variable names don't use the underscore character. You may want to read more about Java coding conventions. In particular, class names should start with an uppercase letter and used MixedCaps to seperate words in the name. Other identifiers (functions, variables, etc.) should begin with lower case. If you follow the conventions that other programmers are used to, it sure makes it easier for us to read your code, which also means we will be able to help you find solutions to your problems more quickly. HTH Layne

Ok I will modify! erm, also I get public void abstract itemStateChange (ItemEvent e) { error it asks for class or interface. like i was saying without the panels I can get it working, I also get itemListener problems as well, its all to confusing for me but its part of my degree so it has to be done. C++ is far more simpler!

Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061

posted Feb 25, 2004 15:01:00

0

Will you post the exact error messages you get and indicate which line each one refers to? And if you think C++ is simpler, you really should try creating a GUI with it. You will soon change your mind.