I need help with Xcode on my mac


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: I need help with Xcode on my mac

  1. #1
    Join Date
    Apr 2004
    Posts
    3

    I need help with Xcode on my mac

    I am using the ide xcode and it is pissing me off. when i debug a program i don't know how to get it to show me what part of the code is conflicting. i wrote a simple program applet and the !@#$ing program found an error and i don't even know what is wrong. can some one please tell me what is wrong with this applet and please tell me a little bit more about xcode.

    import java.applet.Applet;
    import java.awt.*;

    public class FontApplet extends Applet
    {
    Label lblName = new Label("Blank");
    Label lblPhone = new Label("555-5555");
    Font fntName = new Font("Serif", Font.ITALIC, 14);
    Font fntPhone = new Font("Sans Serif", Font.BOLD , 12);
    public void init()
    {
    setBackround(Color.cyan);
    lblName.setFont(fntName);
    add(lblName);
    lblPhone.setFont(fntPhone);
    lblPhone.setForeground(Color.red);
    add(lblPhone);
    }
    }

  2. #2
    Join Date
    Feb 2004
    Posts
    541
    the error you'll be getting is on the line
    Code:
    setBackround(Color.cyan);
    The error is "Cannot resolve symbol", so as it stands that method doesn't exist. I'm afraid I have no idea how to make your IDE display the error though.

  3. #3
    Join Date
    Apr 2004
    Posts
    3
    thanks alot...it worked

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center