Back to 111 Main Page

Mobius strip

Extra Credit 1

Task

Teach yourself how to create a proper GUI.

Steps

We've created two user interfaces for the ToDoList program--the text-based UI of A11 and then the primitive JOptionPane GUI of A14. For this optional, extra credit assignment, you can learn how to create an applet and/or proper GUI--complete with windows, frames, layouts, buttons, and event listeners--using either AWT or Swing.

To learn to make a Java GUI, find a good book or tutorial. I recommend starting with the Java Tutorial, particularly the trail on Swing

If you have questions regarding the specifications (see below) or how this assignment is graded, please let me know. I will not answer any Swing or applet questions however--the point of this EC assignment is that you learn how to do it on your own.

FAQs

Do you have any examples?
Here is an example of student submissions so far:
  • 16 Apr 2008 -- An applet with pop-up embedded/direct control interface GUI and all bonus features (and a bit more, like being able to create or close tabs).
  • 17 May 2008 -- Another applet with a pop-up embedded controls GUI interface and many bonus features. (JRE 6.0 required.)

Grading

The value of this assignment depends on the sophistication of the GUI. The following are some guidelines/ideas:

5 points - Applet (JOptionPanes)
An applet (only) that generates a series of JOptionsPane pop-ups (as done for A14).
8 points - Applet or GUI Application (Text-based)
Runs much like the original A11 text-based, menu-driven version, only it is displayed directly within the applet panel or its own JFrame window (using a non-editable TextArea for output and a text field for input, perhaps?)
10 points - Applet or GUI Application (Static display of list)
The to-do list is displayed continuously in its own component (rather than appearing along with a printed menu). The list can be affected through components (buttons, input fields, etc) in the same panel. (These components may produce pop-up/JOptionPanes to get input.)
12 points - Applet or GUI Application (Embedded/direct controls)
As for "Static display of list" description, but no pop-ups are used to get input. Instead, all input is done through the same panel as contains the list display. For example, each line of the list could be displayed with its own Remove and Change Urgency buttons, and then a single text field and Add button on the bottom would allow additions to the list.
+1 points - Close button works
Your application's X close button works.
+2 points - Quit Menu
The application window includes a simple working menu of the File -> Quit variety.
+3 points - Multiple to-do lists
The application includes two or more tabs, each displaying its own unique to-do list.
+3 points - link to online version of Applet
You get your applet version uploaded and running on your uhunix website.
+2 points - Applet (full GUI)
You make a stand-alone GUI that is also runnable as an applet embedded in a webpage.

Your submission must work to get credit! This means you need to include all files needed to run it, including any .html files for applets, etc.



~ztomasze Index : TA Details: ICS111: EC 1
http://www2.hawaii.edu/~ztomasze
Last Edited: 15 Apr 2008
©2008 by Z. Tomaszewski.