Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

reletionship between inner classes  RSS feed

 
Juhan Voolaid
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
First i want to appologise for such a big post, where i add all my code, but the compiler gives me such a error that i cannot solve.
My weak side is reletionship between inner classes. I try to highlight the key things in my code.
ok .. first the compiler error:
--------------------Configuration: thirdspace - j2sdk <Default> - <Default>--------------------
C:\j2sdk\JCreatorV3\MyProjects\thirdspace\thirdspace.java:32: cannot resolve symbol
symbol : constructor buttons (thirdspace.console)
location: class thirdspace.buttons
bs=new buttons(center); // that i can call cosnole fx-s in buttons class
^
1 error
Process completed.

and then code:
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This really isn't an inner class problem at all. The "buttons" class has a no-argument constructor only, but you're passing a "console" as an argument. You'd get the same error if these were all top-level classes. If "buttons" needs a "console" as a constructor argument, then you need to modify the constructor to accept the argument.
 
Juhan Voolaid
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!