• Advertisement
Sign in to follow this  

[java] Keyboard Event

This topic is 4506 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement