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.
valleytechAsked:
Who is Participating?
 
objectsCommented:
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

0
 
objectsCommented:
whats the error

use eclipse to resolve your imports
Source>Organise imports

0
 
CEHJCommented:
Can you post the exact error please?
0
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
0
 
valleytechAuthor Commented:
what should i import?
0
 
valleytechAuthor Commented:
i got it because after declare DrawPanel panel = new DrawPanel(); I  must create a DrawPanel class immediately :)
Thanks a lot.
0
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.