DrawPanel class

hi ,
 i just type a program from a book that has a line
 DrawPanel panel = new DrawPanel();

 Eclipse said errors. I import javax.swing.JFrame already. Please advise.
Who is Participating?
tun Organize Imports from your eclipse source menu

if that does not fix it then check that DrawPanel is in your build path and it is declared as a public class

whats the error

use eclipse to resolve your imports
Source>Organise imports

Can you post the exact error please?
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

valleytechAuthor Commented:
error message: DrawPanel cannot resolve to a type
valleytechAuthor Commented:
what should i import?
valleytechAuthor Commented:
i got it because after declare DrawPanel panel = new DrawPanel(); I  must create a DrawPanel class immediately :)
Thanks a lot.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.