• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

JFrame question on unresolved symbol ???

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
please see comment below // FOLLOWING LINE GEN's COMPILE ERROR
error is
TwoButtons.java [38:1] cannot resolve symbol
symbol : class MyDrawPanel
location: class TwoButtons
MyDrawPanel drawPanel = new MyDrawPanel();


[ April 20, 2004: Message edited by: Douglas Braxton ]
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmm...
Where exactly is the MyDrawPanel.java file anyhow? More specifically, where is it in relation to the TwoButtons.java file?
 
Douglas Braxton
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
maggie
this was something my instructor put on the board and did not explain very well.
are you saying i need a new class file called MyDrawPanel.
i thought it was a methiod?
doug
 
maggie woo
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah. yes. you need a MyDrawPanel.java file that probably does something like extend javax.swing.JPanel, and probably has other interesting (or mundane) things on it like buttons, graphics, spinners, whatnot.
Since it seems to be a drawingpanel, have fun! I can't really help you out without digging up MY coursework from oh 5 years ago.
 
Douglas Braxton
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
okay thanx!
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To get by without creating another class, just change the MyDrawPanel in your code to JPanel.
reply
    Bookmark Topic Watch Topic
  • New Topic