Re: Room size in java code
by anandunadkat » Thu Jan 17, 2013 10:18 am
To make things easier to understand, i have pasted my code.
if (validateHouse()){
// if both house and bedroom dimension are unknown then speciry the hardcoded values.
if (cbUnknownHouseDimension.isSelected()){
bathroomLength = 1000f;
bathroomBreadth = 600f;
//bedroomLength = 250f;
//bedroomBreadth = 200f;
}
So as you can see from the code, if the user doesnt know the measurements, it clicks on the checkbox and i want the house size to appear with default values. Hope you understand what i mean.
Many thanks for your help!!