?
Solved

Event Handling

Posted on 2003-03-22
1
Medium Priority
?
218 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
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month8 days, 16 hours left to enroll

621 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