• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can't find constructor!

 
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey,
I always meet the problem:
cannot resolve symbol
symbol: constructor OriginJCombo ...
I have a class named OriginJCombo:
and a class named ClientMain:

By the way, I used the mediator pattern:

Regards,
Thank you
Damu
[ July 16, 2003: Message edited by: damu liu ]
 
Ranch Hand
Posts: 883
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does ClientMain inplement ActionListener?
 
Bigwood Liu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Burk,
Thank you for reply, the ClientMain implements
ActionListener.
Regards,
Damu
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Damu
I cannot see anything obvious with the code you provided.
I recommend you compile with debugging turned on, so that when the exception is thrown you will see the line number that is causing the problem - confirm that is one of the lines shown that is causing the problem.
Regards, Andrew
 
Bigwood Liu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Andrew,
Thank you!
Regards
Damu
 
Bigwood Liu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey,
I compiled the files with the -g parameter,
the problem is at ClientMain: can't find constructor!
Can you compile it in your computer? think u
regards
Damu
 
Andrew Monkhouse
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Damu
There is not enough code here to try and compile it locally. To give just one example: I have no idea what ClientMain is extending.
Could you please post the complete error message?
Regards, Andrew
 
Bigwood Liu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey Andrew,
Thank you for reply.
this is ClientMain:

this is OriginJCombo:

this is DataCommand:

this is part of Mediator :

this is error message:

[ July 18, 2003: Message edited by: damu liu ]
 
Andrew Monkhouse
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Damu,
Ahhh, the benefits of having an editor which does colour coding.
This entire block is a comment:
Notice that space between the "*" and the "/"?
Regards, Andrew
 
Bigwood Liu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OOOOOOOOOOOOOOOOOOOOOO my GOD!
Thank you very much Andrew, you are my angel!
It had taken me three days!
BTW, what editor do you use?
Thank you once more!
Best Regards
Damu
[ July 18, 2003: Message edited by: damu liu ]
 
Andrew Monkhouse
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Damu

BTW, what editor do you use?


Normally vi
But I had JBuilder open already, so I loaded your code in there.
If I am on a Microsoft platform (very rare), I use UltraEdit.
Regards, Andrew
reply
    Bookmark Topic Watch Topic
  • New Topic