Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
In this tutorial, students will look at keyboard events in Java Swing. The tutorial assumes some understanding of Java and basic Java Swing. Students will create a rectangle object and use keyboard inputs to alter that object.