?
Solved

Event Handling

Posted on 2003-03-22
1
Medium Priority
?
212 Views
Last Modified: 2010-03-31
hi, i want to make an applet game (ping pong) in which there are two rectangles on the sides , which users can move up or down to play the game. how do i register the listener for this? I need the users to control the rectangles.. so do i have to make them components first? or can i add the listener to rectangles??
0
Comment
Question by:ahmadmzakir
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
kokchoon78 earned 40 total points
ID: 8193011
here have some tutorial :

http://java.sun.com/docs/books/tutorial/uiswing/events/index.html

examples included.

hth,
Kok Choon.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month8 days, 18 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question