Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Just began Java GUI's


  • Please log in to reply

#1
Joeturf

Joeturf

    Member

  • Member
  • PipPipPip
  • 158 posts
Hi G2G. I just recently started Java GUI's. I use a textbook which has a simple demo program in it which I should be able to just copy into my IDE and then run it. However, I get an error "Cannot find symbol : class WindowDestroyer" when I try to define an object for the class WindowDestroyer which should be inside javax.swing. And yes, I have imported javax.swing.*! This doesn't make sense because the demo project in my textbook contains the line "WindowDestroyer myListener = new WindowDestroyer();", and it apparently works on the textbook-writer's computer, but not mine!

Am I missing something important, or is this just some stupid mistake?

Thanks.
  • 0

Advertisements


#2
stettybet0

stettybet0

    Trusted Tech

  • Technician
  • 2,579 posts
would you mind putting the code here so that other people here can try the code and see if they get a similar error?
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP