It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Partner Sites
Board index Programming Java Forum

loop in a button

loop in a button

Postby var5an1 on Sun Jan 01, 2006 10:48 pm

code:

tried for and do whil loop..

the amount is already set to 1.00

every time the user clicks on the "10p" button it deducts 10p

until it gets to 0 if its more then 0 its give change

if (e.getActionCommand().equals("10p"))
{
..can u help me what code goes here inc calculation
}

thank u
var5an1
 
Posts: 3
Joined: Sun Jan 01, 2006 10:43 pm

please help

Postby var5an1 on Mon Jan 02, 2006 4:47 pm

need help for the amount to decrement when a button is pressed
var5an1
 
Posts: 3
Joined: Sun Jan 01, 2006 10:43 pm


Return to Java Forum

Who is online

Users browsing this forum: No registered users and 0 guests