[Bluej-discuss] Code Pad: is it working correctly?
Barry Brown
BARRY at CS.SIERRACOLLEGE.EDU
Wed Apr 19 09:51:01 BST 2006
I am using BlueJ on a Mac (10.4.6). I recently found out about the
Code Pad where I can type in Java statements and have them executed.
From what I read in the instructions, the objects I create should
appear on the bench. But they don't.
Here's what I've tried:
Open the Shapes example project.
Open the Code Pad.
Type in something like: Circle c = new Circle();
Should I see an object appear in the bench?
Another question: is there a way to "replay" the statements in the
Code Pad? My students have been clamoring for a way to record a bunch
of actions, similar to the way the JUnit testing recording works.
Except in JUnit, all the objects that are creating during the test go
away once the test is complete. Is there a way to create a bunch of
objects and have them stay on the bench? That would save a lot of
time when testing their programs. Doing the Auction project was a
real pain because they kept having to create Persons, Auctions, Lots,
and Bids over and over.
If they write a method to create the objects, they won't appear on
the bench.
Is there a good built-in solution?
Thanks!
-B
More information about the bluej-discuss
mailing list