TennisGame In Java - Online Code


Title: Tennis Game Description: I did this as my assignment hope you all will like it. The author may have retained certain copyrights to this code...

Source Code

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class Game implements ActionListener{
	JFrame myFrame;
      MyPanel myPanel;

      // labels used to display palyers name    
... (login or register to view full code)

To view full code, you must Login or Register, its FREE.

Hey, registering yourself just takes less than a minute and opens up a whole new GetGyan experience.


SUDIPTA SAHOO on 2011-02-02 13:02:33 wrote,

when i run this code then this message is shown "C:\Documents and Settings\DIP\My Documents\ cannot access MyPanel
bad class file: C:\Documents and Settings\DIP\My Documents\
file does not contain class MyPanel
Please remove or make sure it appears in the correct subdirectory of the classpath.
MyPanel myPanel;
1 error

Process completed."