FileDocCategorySizeDatePackage
FibonacciApplet.javaAPI DocExample1472Sat Sep 09 21:21:44 BST 2000None

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";