Custom Visual Controls

Creating Custom Visual Controls and Menus


EXPERIMENT ONE

Here's what we need:

frilled.cs.indiana.edu%ls -ld *.java
-rw-r--r--   1 dgerman      2653 Apr 24 17:05 AnimationStrip.java        [2]
-rw-r--r--   1 dgerman      3222 Apr 24 17:11 Animator.java                  [3] 
-rw-r--r--   1 dgerman      1597 Apr 24 17:06 BufferedGraphics.java      [2] 
-rw-r--r--   1 dgerman      4015 Apr 24 16:24 Component2D.java       [1] 
-rw-r--r--   1 dgerman      1248 Apr 24 17:11 ImageGroup.java            [2] 
-rw-r--r--   1 dgerman      4006 Apr 24 16:34 Label2D.java           [1]
-rw-r--r--   1 dgerman      3686 Apr 24 17:03 Label2DTest.java       [1]
-rw-r--r--   1 dgerman      4041 Apr 24 17:07 Vector2D.java              [2] 
frilled.cs.indiana.edu%ls -ld *.gif
-rw-r--r--   1 dgerman      5149 Apr 24 22:32 label1.gif             [1]
-rw-r--r--   1 dgerman     15772 Apr 24 22:32 label2.gif             [1]
frilled.cs.indiana.edu%ls -ld *.html
-rw-r--r--   1 dgerman       171 Apr 24 22:54 Label2DTest.html
frilled.cs.indiana.edu%cat La*.html
<html>

  <head>
    <title>Label2DTest</title>
  </head>

  <body>
    <hr>
    <applet code=Label2DTest.class width=300 height=300></applet>
    <hr>

  </body>
</html>
frilled.cs.indiana.edu%
The location for the files above is:
/l/www/classes/a348-dger/t540/spr2002/lectures/code/Twelve
For the next experiment I include the path from the beginning:

EXPERIMENT TWO

frilled.cs.indiana.edu%pwd
/nfs/grouchy/home/user2/www/classes/a348-dger/t540/spr2002/lectures/code/Seven
frilled.cs.indiana.edu%ls -ld *.java
-rw-r--r--   1 dgerman      2653 Apr 25 00:03 AnimationStrip.java           [3]
-rw-r--r--   1 dgerman      3222 Apr 25 00:04 Animator.java                 [3] 
-rw-r--r--   1 dgerman      1597 Apr 25 00:02 BufferedGraphics.java     [2]
-rw-r--r--   1 dgerman      7102 Apr 24 23:56 Button2D.java         [1]
-rw-r--r--   1 dgerman      2759 Apr 24 23:55 Button2DTest.java     [1] 
-rw-r--r--   1 dgerman      1318 Apr 24 23:57 ButtonImageGroup.java [1] 
-rw-r--r--   1 dgerman      4015 Apr 25 00:00 Component2D.java          [2]
-rw-r--r--   1 dgerman      1248 Apr 25 00:01 ImageGroup.java           [2]
-rw-r--r--   1 dgerman      2733 Apr 25 00:03 ImageLoader.java              [3]
-rw-r--r--   1 dgerman      4006 Apr 25 00:00 Label2D.java              [2] 
-rw-r--r--   1 dgerman      4041 Apr 25 00:01 Vector2D.java             [2] 
frilled.cs.indiana.edu%ls -ld *.gif
-rw-r--r--   1 dgerman      1940 Apr 25 00:04 buttons.gif           [1] 
frilled.cs.indiana.edu%ls -ld *.html 
-rw-r--r--   1 dgerman       184 Apr 24 23:54 Button2DTest.html     [1] 
frilled.cs.indiana.edu%
I am sure you can get there easily.

EXPERIMENT THREE

frilled.cs.indiana.edu%pwd
/nfs/grouchy/home/user2/www/classes/a348-dger/t540/spr2002/lectures/code/Eight
frilled.cs.indiana.edu%ls -ld *.java
-rw-r--r--   1 dgerman      2653 Apr 25 10:48 AnimationStrip.java         [2] 
-rw-r--r--   1 dgerman      3222 Apr 25 10:49 Animator.java                   [3]
-rw-r--r--   1 dgerman      1597 Apr 25 10:48 BufferedGraphics.java       [2]
-rw-r--r--   1 dgerman      1318 Apr 25 10:49 ButtonImageGroup.java       [2]
-rw-r--r--   1 dgerman      4015 Apr 25 10:47 Component2D.java            [2] 
-rw-r--r--   1 dgerman      1248 Apr 25 10:48 ImageGroup.java             [2]
-rw-r--r--   1 dgerman      2733 Apr 25 10:49 ImageLoader.java                [3]
-rw-r--r--   1 dgerman      4006 Apr 25 10:47 Label2D.java                [2]
-rw-r--r--   1 dgerman      4288 Apr 25 10:45 RadioButton2D.java      [1]
-rw-r--r--   1 dgerman      4030 Apr 25 10:43 RadioButton2DTest.java  [1]
-rw-r--r--   1 dgerman      2337 Apr 25 10:43 RadioButtonGroup.java   [1]
-rw-r--r--   1 dgerman      4041 Apr 25 10:48 Vector2D.java               [2] 
frilled.cs.indiana.edu%ls -ld *.html
-rw-r--r--   1 dgerman       194 Apr 25 10:40 RadioButton2DTest.html  [1]
frilled.cs.indiana.edu%ls -ld *.gif
-rw-r--r--   1 dgerman      1409 Apr 25 10:50 radio.gif               [1] 
frilled.cs.indiana.edu%emacs ../../Eleven.html &
[2] 21074
frilled.cs.indiana.edu%
The permissions are set so you can retrieve these files with ease.

EXPERIMENT FOUR

We switch the location one more time.

frilled.cs.indiana.edu%pwd
/nfs/grouchy/home/user2/www/classes/a348-dger/t540/spr2002/lectures/code/Nine
frilled.cs.indiana.edu%ls -ld .
drwxr-xr-x   3 dgerman      1536 Apr 25 11:21 .
frilled.cs.indiana.edu%ls -ld *.html 
-rw-r--r--   1 dgerman       182 Apr 25 11:07 Panel2DTest.html      [1]
frilled.cs.indiana.edu%ls -ld *.gif 
-rw-r--r--   1 dgerman     43083 Apr 25 11:21 panel.gif             [1]
-rw-r--r--   1 dgerman       518 Apr 25 11:21 radio2.gif            [1]
-rw-r--r--   1 dgerman      1350 Apr 25 11:20 xpbutton.gif          [1]
frilled.cs.indiana.edu%ls -ld *.java
-rw-r--r--   1 dgerman      2653 Apr 25 11:16 AnimationStrip.java       [2]
-rw-r--r--   1 dgerman      3222 Apr 25 11:19 Animator.java                 [3]
-rw-r--r--   1 dgerman      1597 Apr 25 11:16 BufferedGraphics.java     [2]
-rw-r--r--   1 dgerman      7102 Apr 25 11:16 Button2D.java             [2]
-rw-r--r--   1 dgerman      1318 Apr 25 11:16 ButtonImageGroup.java     [2]
-rw-r--r--   1 dgerman      4015 Apr 25 11:15 Component2D.java          [2]
-rw-r--r--   1 dgerman       864 Apr 25 11:15 Container2D.java          [2]
-rw-r--r--   1 dgerman      1248 Apr 25 11:19 ImageGroup.java               [3]
-rw-r--r--   1 dgerman      2733 Apr 25 11:19 ImageLoader.java              [3]
-rw-r--r--   1 dgerman      4006 Apr 25 11:17 Label2D.java              [2]
-rw-r--r--   1 dgerman      2558 Apr 25 11:09 Panel2D.java          [1]
-rw-r--r--   1 dgerman      3500 Apr 25 11:10 Panel2DTest.java      [1]
-rw-r--r--   1 dgerman      4288 Apr 25 11:17 RadioButton2D.java        [2]
-rw-r--r--   1 dgerman      2337 Apr 25 11:19 RadioButtonGroup.java         [3]
-rw-r--r--   1 dgerman      4041 Apr 25 11:15 Vector2D.java             [2]
frilled.cs.indiana.edu%
We have one more experiment to go.

EXPERIMENT FIVE

frilled.cs.indiana.edu%ls -ld *.html
-rw-r--r--   1 dgerman       180 Apr 25 11:31 Menu2DTest.html       [1] 
frilled.cs.indiana.edu%ls -ld *.gif
-rw-r--r--   1 dgerman     12469 Apr 25 11:43 menuA.gif             [1] 
-rw-r--r--   1 dgerman     12749 Apr 25 11:43 menuB.gif             [1] 
-rw-r--r--   1 dgerman     14812 Apr 25 11:43 menuC.gif             [1] 
-rw-r--r--   1 dgerman      1350 Apr 25 11:43 xpbuttons.gif         [1] 
frilled.cs.indiana.edu%ls -ld *.java   
-rw-r--r--   1 dgerman      2653 Apr 25 11:38 AnimationStrip.java           [3]
-rw-r--r--   1 dgerman      3222 Apr 25 11:41 Animator.java                 [3]
-rw-r--r--   1 dgerman      1597 Apr 25 11:38 BufferedGraphics.java     [2] 
-rw-r--r--   1 dgerman      7102 Apr 25 11:38 Button2D.java             [2] 
-rw-r--r--   1 dgerman      1318 Apr 25 11:39 ButtonImageGroup.java     [2] 
-rw-r--r--   1 dgerman      4015 Apr 25 11:42 Component2D.java              [3]
-rw-r--r--   1 dgerman       864 Apr 25 11:42 Container2D.java              [3]
-rw-r--r--   1 dgerman      1248 Apr 25 11:42 ImageGroup.java               [3]
-rw-r--r--   1 dgerman      2733 Apr 25 11:39 ImageLoader.java          [2] 
-rw-r--r--   1 dgerman      4006 Apr 25 11:39 Label2D.java              [2] 
-rw-r--r--   1 dgerman       658 Apr 25 11:33 Menu2D.java           [1] 
-rw-r--r--   1 dgerman      7288 Apr 25 11:35 Menu2DTest.java       [1] 
-rw-r--r--   1 dgerman      2558 Apr 25 11:37 Panel2D.java              [2] 
-rw-r--r--   1 dgerman      4041 Apr 25 11:38 Vector2D.java             [2] 
frilled.cs.indiana.edu%
File names and capitalization are significant.


Last updated: Apr 24, 2002 by Adrian German for T540