Skip to main content

Posts

Showing posts from March, 2011

Java Objects - Basics!!!!

How to create and "use" an object in Java  In the following tutorial, I will explain how to create an Object in JAVA, and how you can "use" this object from a "tester" program... The object described is a cashRegistrer System in a Supermarket. Multiple instances of cashRegisters exist, each one of them has its own balance (money inside the machine).  This is an instance variable. The only operation the machines perform is to put money inside (and increase the balance). This operation is called payAmount and needs two inputs :         1) the amount of money the customer needs to pay, for example: 5.75 (amountPayable)         2) the amount of money that the customer gives to the cashier, for example: 10  (amountGiven) the same operation returns a value, which is the change that the cashier should give to the customer. if the amount of money the customer gives to the cashier  (amountGiven)  is less than ...

How to Create a JAVA/SWING Desktop Application

Watch the video to learn the basic steps required to create a simple GUI application in Jdeveloper. The application just performs the task of adding two numbers in textfields and and with the press of a button displays the result in a label... Enjoy!