The source can be found in the Factory/Java .zip-archive in factory/classes/examples/EditFrame.factory:
<param> <var> T </var> </param> The following unparameterized factory
can be found in factory/src/test/EditFrameTest.factory in the
Factory/Java .zip-archive. It applies factory EditFrame to
class Person and instantiates an
object e of the resulting class PersonEditFrame. Then
it applies factory Printable to
class Person
and instantiates an object p of the resulting class PrintablePerson.
The edit() method of e is called with p and,
after the edit window has been closed, the print() method of p
is invoked to print out the values of its attributes.
java -classpath classes factory.Factory -javad src -classd classes src/test/EditFrameTestand run with
java -classpath classes test.EditFrameTestThe following window is displayed: