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?:( :=(:
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.
Re: Drawing a house using Java Applet. Who can help? Even simple house output :(
Quote:
Originally Posted by
Norm
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. :(-:
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?
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.
Re: Drawing a house using Java Applet. Who can help? Even simple house output :(
Quote:
Originally Posted by
kammce
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 :(-:
Re: Drawing a house using Java Applet. Who can help? Even simple house output :(
Quote:
Originally Posted by
churrp
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