Results 1 to 2 of 2
Thread: JavaLover Terrified
- 03-03-2009, 08:44 AM #1
Member
- Join Date
- Mar 2009
- Posts
- 1
- Rep Power
- 0
JavaLover Terrified
Assalaam O Alaykym(Peace) to Brothers and Hi to rest!
My name is ...i would like to make many Java friends of all ages.....................to know me you can add me - my email
shoaibenatorme@gmail.com
shoaib_braveheart@hotmail.com
Just started learning Java. Im making an Applet of a calculator. I have to make functions like normal arithmetic, factorial and generating random numbers and Log function. I have to use NetBeans IDE 6, that is what is being taught in University.
I dont have much time, busy in FYP, otherwise, i would learn from Notepad.
Can anyone give me some reference of sample code to Calculator JavaApplet?
Well appreciated!
- 03-03-2009, 05:16 PM #2
No, but I can give you a couple of suggestion.
First, use the Matisse form designer to create your user interface. That will save you a ton of time. Look at the code it generates to understand what it is doing.
Instead of starting with JApplet, start with JFrame. You can turn it into an applet later, and you can run JFrame on your PC without the browser headaches.
Add a JPanel to the JFrame, and put your components in there. Then, you can just move the JPanel to a JApplet. In fact, you can make the JPanel an external class and use it as a component in both (when you get more experienced).
Don't add any logic to the GUI. Create a controller to run the application and a model to handle all your calculations. The controller should create the GUI and the model and pass values back and forth between them. Have the controller listen to events generated by the GUI.


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks