-(id) initWithFrame:(CGRect) rect {
[super initWithFrame:rect];
self.backgroundColor = [UIColor whiteColor];
image= [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"blank.jpg"]] autorelease];
image.frame = CGRectMake(0, 0, 80, 110);
image.opaque = YES;
[self addSubview:image];
return self;
}
Friday, October 8, 2010
To Turn on Ensure and Require Tags in Dr Java
Go to Edit->Preferences. In custom Javadoc parameters, enter:
-author -version -tag require:cm:"Require:" -tag ensure:cm:"Ensure:"
-author -version -tag require:cm:"Require:" -tag ensure:cm:"Ensure:"
Tuesday, October 5, 2010
Assignment 6 Extension
There have been some questions on the requirements for assignment 6. We want to make sure all of the requirements are clear and take some time for questions tomorrow during class. Thus, we are extending the deadline for assignment 6 until Thursday (10/7) 11:59PM. Do note that assignment 7 is also posted and will be due next Tuesday (10/12).
Assignment 6 Additional Information
One additional note on the assignment due this evening. In the buyItem method in LittleTike, you should first check with Daddy to see if the LittleTike has enough money in their PiggyBank to buy an Item. If the LittleTike gets an affirmative response, you then should proceed to ask the Mommy to pleaseBuyItem. Do not ask Mommy to buy the item if Daddy indicates that there are insufficient funds in the PiggyBank.
Assignment 6: New File Available
A copy of the LittleTike.java which meets the requirements for assignment 5 is now available. If you did not successfully complete LittleTike for assignment 5, you can build off this version for assignment 6.
Tuesday, September 28, 2010
Homework 5: New Files Available
All of the class files are now available for homework 5. If you did not complete the previous assignments successfully, you may use the Item.class and PiggyBank.class as part of your solution for homework 5. The LittleTike.class file is also available if you want to use it for testing to verify that your solution works as expected. The LittleTike.class file may not be submitted as part of your solution. You must create a LittleTike.java file on your own and compile it to produce your own version of LittleTike.class for submission.
Thursday, September 16, 2010
Slight Correction for Assignment 4
We had a typo on Assignment 4 that is now corrected. The return type for getDescription() and getStore() should be String, and the return type for getCost() should be double.
Subscribe to:
Posts (Atom)