Skip to main content
gamedev.net
🔒 Locked

[java] Keyboard Event

Started by ace84_84 0 replies 550+ views
Original Post
ace84_84
ace84_84
I am making a simple graphics program, and in my program i want to change the colour of the square to blue, when i hit "ctrl + b", but i am not sure on how to do this, can someone please help me! [Edited by - ace84_84 on October 21, 2005 12:41:18 AM]
H_o_p_s
H_o_p_s
I've found the Java Almanac's website to be very good source of information for some of the basic things in Java. Here is a link on KeyEvents/Listeners and For drawing on a BufferedImage

If you do not understand these examples, please don't hesitate to ask. If you already have some code, be sure to include that when you can't get something working.
BRING BACK THE BLACK (or at least something darker)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.