File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes This Application hates me!!!   :( Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "This Application hates me!!!   :(" Watch "This Application hates me!!!   :(" New topic

This Application hates me!!! :(

Rich Nello

Joined: Dec 08, 2003
Posts: 16
Hi All!
i'm trying to convert an applet to an application! I followed teh instructions indicated at the address:
So far, as they say, so good! My maina method looks like this:
public static void main (String args[])
Frame ticTT =new Frame();

ticTT.addWindowListener (new java.awt.event.WindowAdapter()
public void windowClosing (java.awt.event.WindowEvent e)
TTTgame myGame = new TTTgame();
When I compile, the application looks the same as it did in the applet. However, none of my mouse clicks are working! and it's driving me !!
Been trying to read up and try things for the past 3hrs but i'm as clue-less as I was then!!
Please, do you have any suggestions, any ideas what I'm doing wrong??
Oh by the way, this is the Tic Tac Toe game!!
Class details below:
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class TTTgame extends Panel implements MouseListener

Rich Nello (Java Greenhorn)
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Moving this to the Swing / JFC / AWT forum...

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Eddie Vanda
Ranch Hand

Joined: Mar 18, 2003
Posts: 281

Do you have an "addMouseListener (this)" in the TTTGame panel?

The nice thing about Standards is that there are so many to choose from!
I agree. Here's the link:
subject: This Application hates me!!! :(
jQuery in Action, 3rd edition