Sign in to follow this  
ace84_84

[java] Keyboard Event

Recommended Posts

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]

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this