Home : Map : Chapter 7 : Java : Tech : Physics :
Exercises
JavaTech
Course Map
Chapter 7

Introduction
Event Overview
Event Processing
Button Events
  Demo 1
 Demo 2
Mouse Events
  Demo3

More Components
  Demo 4  Demo 5
  Demo 6  Demo 7

LayoutManagers-1
  Demo 8     Demo 9
  Demo 10  Demo 11
  Demo 12

LayoutManagers-2
  Demo 13  Demo 14
  Demo 15  Demo 16
  Demo 17

Inner Classes
Anonymous Class
Adapter Classes
  Demo 18  Demo 19
Frames & Menus
  Demo 20  Demo 21
Exercises

    Supplements
AWT Components
  Button
     Demo 1
  Canvas
     Demo 2
  AWT GUI Demo
     Demo 3
Swing Dialogs
JOptionPane Dialog
  Demo 1
JDialog
  Demo 2
UI Enhancement: P1
  Demo 1   Demo 2
  Demo 3

UI Enhancement: P2
  Demo 1
     About JavaTech
     Codes List
     Exercises
     Feedback
     References
     Resources
     Tips
     Topic Index
     Course Guide
     What's New

You can use any of the graphics techniques (Swing, AWT, Java2D, etc) for the following exercises:

  1. For the programs you created for Chapter 6: Physics : Exercise #1, add control components such as buttons and input components such as textfields that allow the user to re-run the program easily with new setup values.

  2. Create a program similar to RanDistAnglesApplet.java that allows the user to choose from several different polynominal shapes for the random number distribution.

  3. Create a GUI that displays 3 different histograms, each with a different example distribution for use with the Histogram Distribution method. Allow the user to choose one of these three histograms as the guide to generate a random distribution for display in a fourth histogram on the interface.

  4. Modify the MCPlotApplet Monte Carlo integration example to add more capabilities such as a text field to let the user input the number of scatter points, text fields to modify limits on the x and y values, a JList to select more than one function to integrate, etc. Modify the sine function so that the phase and frequency can be varied as well.

 

Last update: Oct. 22, 2005

 

 

           Tech
Histogram UI
  Demo 1
Probablity Distrib.
  Demo 2 Demo 3
RejectionMethod
Histogram Stats
  Demo 4
Exercises

           Physics
Sim & Randomness
Custom Prob. Dist.
   Demo 1
Histogram Dist.
   Demo 2
Monte Carlo
  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.