Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JFrame question on unresolved symbol ???  RSS feed

 
Douglas Braxton
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • 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 ]
 
maggie woo
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • Quote
  • Report post to moderator
okay thanx!
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To get by without creating another class, just change the MyDrawPanel in your code to JPanel.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!