In class practice   GUI, Applet and HTML

July 19, 2007

1. JFrame, JLabel, JTextField, JButton and Event

      a.  Download the code LowerUpperCase.java. Compile it and run it. 

      b.  Analyze the code. 

      c.  Add the break point( red dot) at the beginning of the following methods: main, LowerUpperCase and actionPerformed. Run in debug mode to see the control flow of the code, especially the control flow of handling user inputs.

  

2. HTML

    a. Open simple.html and otherTags.html.

    b. See the source code of these two html file. Figure out the usage of each tag. The source file can be viewed by selecting menu: FIREFOX: view -> Page Source;  IE: view->Source

    c. Save the html file to local disk. Modify the tags in the html source file to see what will happen.

 

3. Applet

    a. Open LowerUpperCaseApplet.html, run the Applet program.

    b. Download LowerUpperCaseApplet.java, compile and run it. Analyze the code. Figure out how to modify from LowerUpperCase.java to LowerUpperCaseApplet.java.

    c. Read the source code of LowerUpperCaseApplet.html.