JPT Tutorials
The JPT project has as its goal
to encapsulate the common tasks in creating GUIs with Java Swing Libraries
and designing the interactions between the model and the view.
The JPT-Tutorial provides an
overview of the different JPT components, their role, and their interdependencies.
A series of introductory hands-on tutorials
shows how the user can easily build GUIs with a number of different components.
Java Power Framework (JPFalt) application uses
Java reflection package to create a GUI for building test suites for programs.
Java2D-Graphics gives
overview of the most basic features of the Java2D Graphics Library.
Introductory Hands-On Tutorials
- Simple Adder explains
the use
TextFieldView
and add SimpleAction
to the
GUI
- SimpleLineDrawing
shows how to use the
ColorView
, TextAreaView
,
and BufferedPanel
for graphics.
- SimplePainter
introduces the
MouseActionAdapter
and the TextAreaView
.
- MiniPaint shows how
to use BooleanView, OptionsView and FileView and how to use JPT codec and
parser to easily save data to a file and to parse input from a file.
JavaPowerFrame
This application uses Java reflection package to create a GUI for building
test suites for programs. The file TestSuite.java (which can be easily
re-named to indicate its current role) contains only test functions. For
each function declared void with no arguments (and not private or protected)
the program generated a GUI button which invokes function execution. Functions
which have arguments and return values other than void (again, not privete
or protected) generate a button which creates a modal GUI in the REPL style:
user can type in the argument values and the GUI evaluates the function for
the given inputs.
The test functions within TestSuite.java file can instantiate objects in
other classes, provide a separate test for each method in a class, or contain
a call to a complete application.