FileDocCategorySizeDatePackage
FibonacciApplet.javaAPI DocExample1461Sun Dec 12 10:56:00 GMT 2004None

FibonacciApplet

public class FibonacciApplet extends Applet

Fields Summary
private TextArea
resultArea
private TextField
inputArea
private Button
calculate
private String
server
Constructors Summary
Methods Summary
public voidinit()


     
    
    this.setLayout(new BorderLayout());
    
    Panel north = new Panel();
    north.add(new Label("Type a non-negative integer"));
    north.add(inputArea);
    north.add(calculate);
    this.add(resultArea, BorderLayout.CENTER);
    this.add(north, BorderLayout.NORTH);
    Calculator c = new Calculator();
    inputArea.addActionListener(c);
    calculate.addActionListener(c);
    resultArea.setEditable(false);
    
    server = "rmi://" + this.getCodeBase().getHost() + "/fibonacci";