Results 1 to 7 of 7
  1. #1
    churrp is offline Member
    Join Date
    Aug 2012
    Posts
    3
    Rep Power
    0

    Unhappy Drawing a house using Java Applet. Who can help? Even simple house output :(

    i've given a task to make my dreamhouse by using Java Applet. I am just a beginner in Java Applet. Can you please help me? just give me codes and i will try to understand it. I need a guide for this project :(( Guys can you help?:(

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default Re: Drawing a house using Java Applet. Who can help? Even simple house output :(

    You should look at the tutorials on Applets:
    Lesson: Java Applets (The Java™ Tutorials > Deployment)
    and drawing using Swing:
    Lesson: Performing Custom Painting (The Java™ Tutorials > Creating a GUI With JFC/Swing)

    Also there are several posts on this forum that do drawing. Drawing in a panel would be the same as in an applet.

    After reading the above, Make an effort to design and write the code. When you have problems, come back and ask questions.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    churrp is offline Member
    Join Date
    Aug 2012
    Posts
    3
    Rep Power
    0

    Unhappy Re: Drawing a house using Java Applet. Who can help? Even simple house output :(

    Quote Originally Posted by Norm View Post
    You should look at the tutorials on Applets:
    Lesson: Java Applets (The Java™ Tutorials > Deployment)
    and drawing using Swing:
    Lesson: Performing Custom Painting (The Java™ Tutorials > Creating a GUI With JFC/Swing)

    Also there are several posts on this forum that do drawing. Drawing in a panel would be the same as in an applet.

    After reading the above, Make an effort to design and write the code. When you have problems, come back and ask questions.
    but, the tutorial that i have seen is about JApplet. My project only uses Applet. i dont know if the codes for JApplet is suitable for Applet.

  4. #4
    kammce's Avatar
    kammce is offline Senior Member
    Join Date
    Dec 2010
    Location
    California
    Posts
    194
    Rep Power
    4

    Default Re: Drawing a house using Java Applet. Who can help? Even simple house output :(

    The code for Applet will not work with JApplet. You are going to want to use JApplet though. If any of your components do not start with a J, you should make a transition. Swing has surpassed AWT, and as such, one should not be using AWT, unless you need the legacy code.

    Is there any reason why you need to use applet, or is that just the you set your program with?
    My API:
    Java Code:
    cat > a.out || cat > main.class

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default Re: Drawing a house using Java Applet. Who can help? Even simple house output :(

    The JApplet class extends the Applet class. There should be very few problems changing your class from extending Applet to JApplet. If you have problems, post the code and the full text of the error messages.
    If you don't understand my response, don't ignore it, ask a question.

  6. #6
    churrp is offline Member
    Join Date
    Aug 2012
    Posts
    3
    Rep Power
    0

    Unhappy Re: Drawing a house using Java Applet. Who can help? Even simple house output :(

    Quote Originally Posted by kammce View Post
    The code for Applet will not work with JApplet. You are going to want to use JApplet though. If any of your components do not start with a J, you should make a transition. Swing has surpassed AWT, and as such, one should not be using AWT, unless you need the legacy code.

    Is there any reason why you need to use applet, or is that just the you set your program with?
    my subject only use Applet and not JApplet. so i suppose to make my project by Applet. and i am not familiar to JApplet

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default Re: Drawing a house using Java Applet. Who can help? Even simple house output :(

    Quote Originally Posted by churrp View Post
    my subject only use Applet and not JApplet. so i suppose to make my project by Applet. and i am not familiar to JApplet
    When you go for your driving license, will you agree to learn in a car that you have to hand-crank to start the engine, with spoked wheels, manual ignition advance, running boards with the spare wheel mounted on one side, and a rubber bulb horn?

    Get with the times!

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. 1st Lawson In-House Job Fair
    By angelofgod in forum Jobs Offered
    Replies: 0
    Last Post: 11-14-2011, 04:58 AM
  2. regex house address
    By paul1024 in forum New To Java
    Replies: 6
    Last Post: 05-08-2011, 02:10 PM
  3. Help with House/Fence Applet.
    By GA Scooby in forum Java Applets
    Replies: 15
    Last Post: 04-11-2011, 09:58 AM
  4. Hello gurus' in the house
    By javahsm in forum New To Java
    Replies: 0
    Last Post: 11-29-2008, 06:11 PM
  5. building a house
    By dc2acgsr99 in forum Java Applets
    Replies: 4
    Last Post: 03-07-2008, 11:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •