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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Need Help Please  RSS feed

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi, I'm new with Java, and I need help with a program that I wrote.
It needs to prompt the user for the x value, the y value, and the radius value, and then display the info in a JTextArea. Is giving me the following error:

I don't know what I'm doing wrong. I would really appreciate your help with this. This is the code i have:

Thank you so much.
 
Ranch Hand
Posts: 348
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
First of all, there is no main() method signature in your code.
once you define the main() method, pay attention to the string literal ""
they should appear in pair. <- compiler will tell you about this.
also, pay attention to the parameter pass to JOptionPane.showMessageDialog();
[ November 15, 2003: Message edited by: chi Lin ]
 
federico elbl
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Report post to moderator
Thanks a lot. Now is giving me these three errors:

 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross-post the same question to multiple forums. This has also been addressed in the Swing forum. Please post followups to that thread.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!