Natalie Green

Greenhorn
+ Follow
since Dec 15, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Natalie Green

I'm getting following errors when trying to implement ItemListener:

Exception in thread "AWT-EventQueue-1" java.lang.ClassCastException: java.awt.Checkbox cannot be cast to java.awt.Choice
at SurveyApplet.itemStateChanged(SurveyApplet.java:68)


Please, advise:

10 years ago
Hi everybody,

Could anybody, please, help with ItemListener: checkbox component

I want to display a picture by clicking on the checkbox.

Here is my code:



Applet

10 years ago
Thanks a lot Jesper de Jong!

I put all my getters and setters in a different class Employee and now my EmployeeApplet looks a lot better and it works!


I think I can resolve this issue. Thank you!
10 years ago
Hello

What I have to do: Use Applet to create two instances of the Employee class. Display the data on the Graphics object. Display in the applet the names and values of all of the instance variables in each instance of the class. Also display the value of any static variables.

What I'm doing:

I'm not able to display hours per week for e1 and e2. Please, give me a hint...
10 years ago