Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
    Bookmark Topic Watch Topic
  • New Topic

Need Help Please

 
federico elbl
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.
 
chi Lin
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:

 
Jason Menard
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