Lecture 1B
  History
  Features
  Benefits in Science
  Drawbacks
  Apps in science
 
  Running Java
  Interpret/Compile
  1.0 vs 1.1 vs 1.2
  Getting Started
  Tools
  Simple Applet
  Homepage Setup
  Java Books
  Exercises

Lectures

1A: Introduction
1B: Java Intro
2A: BuildingBlocks
2B: Objects
3A: More Objects
3B: Exceptions
       & Threads
4A: Waves
4B: Nuclear &
       Particle
5A: AWT
5B: More AWT
      & Graphics
6A:Detectors &
      Simulation
6B: LHC/Atlas &
     RandomSims    
7A: Swing
7B: Java2D
8A: Java Apps
8B: Dialogs &
    MoreClasses
9A: Java I/O
9B: Utilities,
        Unicode
10A: More
    Threading
10B: File
    Handling
11A: Array,Print,
    Images
11B: SimplePhysics
    Simulation
12A: Tips &
    Techniques
12B: More Tips &
    Techniques
13A: Satellite
    
Simulations
13B: Intro to Java
    Networking
14A: Java Servers
14B: HTTP Server
15A: ServerClient
15B: ServerClient
   Expt.Simulation
16A: Course
          Review
16B: ExerciseTest
        Discussion

    Contacts
    Description
    Exercises
    Index
    Outline
    Q&A
    Resources
    StudentInfoForm
    Student Pages
    What's New

 

Home : Lectures : Lecture 1B : Homepage Setup
Setup for Your Java Homepage

In your public_html, create sub-directories for each applet, e.g.

    user/public_html/hello/
In that directory put the HelloWorld.java, HelloWorld.class and HelloWorld.html files.

From your Java homepage create links to each applet html page so the instructor can run and examine the applet (and to download standalone application code). 

On your home page:

    .
    <p> Applet exercises for course: <br>
    <a href="hello/HelloWorld.html"> Applet 1 </A>
    .
    .
In the applet add a line to provide a link to the source code.
 
    <HTML>
    <HEAD>
    <TITLE> Applet Exercise 1</TITLE>
    </HEAD>
    <BODY>

    <APPLET CODE="HelloWorld.class" WIDTH=150 HEIGHT=50>
    </APPLET>

    <A href="HelloWorld.java"> Source text </A>

     </BODY>
     </HTML>

 

 

Home Lectures Resources Index Contacts Students


Physics Simulations with JavaTM
KTH, Kurskod: 5A1418
Curator: Clark S. Lindsey