Home : Course Map : Chapter 6 : Java : Tech :
Exercises
JavaTech
Course Map
Chapter 6

Introduction
AWT
Swing
Containers
  Demo 1
UI Components
  Demo 2
UI Layout
  Demo 3   Demo 4
Text Display
  Demo 5
Drawing
  Demo 6   Demo 7
Draw Polygons
  Demo 8   Demo 9
Colors
Text Draw 
  Demo 10
Images
  Demo 11
Exercises

    Supplements
AWT
  Demo 1
Drawing
  Demo 2
Text Drawing
  Demo 3
UI Components
  Demo 4

Java2D
Shapes & Areas
  Demo 1   Demo 2
Stroke & Paint
  Demo 3
Transforms
  Demo 4
Gradients&Textures
  Demo 5   Demo 6
Text
  Demo 7   Demo 8
     About JavaTech
     Codes List
     Exercises
     Feedback
     References
     Resources
     Tips
     Topic Index
     Course Guide
     What's New

The classes here provide basic features needed for our plotting tasks. With these exercises you can enhance and customize the classes.

  1. Add the ability to put a label on the vertical axes and for tick marks in PlotPanel. Also, allow for the axes scales to go from high to low starting at the origin.

  2. Add the option of log scaling on the axes in PlotPanel.

  3. Create a new version of PlotFormat that uses the java.util.Formatter class discussed in Chapter 5: Tech and Chapter 9: Java.

  4. Create an enhanced histogramming display program by adding more capabilities to the Histogram and HistPanel classes such as displaying the mean and standard deviation values, the number of entries in each bin, the total number of entries, etc.

  5. Provide an option in the HistPanel class for drawing a symbol instead of a vertical bar. Also, allow for the option of an error bar that's equal to the square root of the number of entries in the bin.


            Tech
Java Tech Graphics
Starting to Plot
  Demo 1
Drawing Panel
  Demo 2
Histogram Display

  Demo 3
Exercises

           Physics
Display Text Data
  Demo 1
Plot Data
  Demo 2
Find Max/Min
  Demo 3
Exercises

  Part I Part II Part III
Java Core 1  2  3  4  5  6  7  8  9  10  11  12 13 14 15 16 17
18 19 20
21
22 23 24
Supplements

1  2  3  4  5  6  7  8  9  10  11  12

Tech 1  2  3  4  5  6  7  8  9  10  11  12
Physics 1  2  3  4  5  6  7  8  9  10  11  12

Java is a trademark of Sun Microsystems, Inc.