What are the two complete names of your home page? I.e. from the web and from your perspective (like, how to access it
to edit it?).
Ruby as a binary to decimal converter: Ruby starts at home with 1000 coins in her bag. There is a binary number
whose most significant bit is under her feet; it continues out in front of her, and the least significant bit is
followed by 2 coins. Her task is to put the number of coins it represents one block north of home.
If the initial coins were 10012 (she starts standing on the first 1), she should put 9 coins down. If initially the coins
were 110112, she should put down 27.
Building a Java web-based calculator
The Java part
Components
Frame
Button
TextField
Why naming them well helps
Event handlers
actionPerformed for the TextField
actionPerfomed for Buttons (like +, -, etc)
Interacting with TextFields
TextFields contain text; you can set it with setText(String), and get it with getText()
inTF.getText() returns a String, so before you can to arithmetic
you must convert that String to an int, like this:
int x;
String s;
s = inTF.getText();
x = Integer.parseInt(s);
The web part
The easiest way to go it to store your project under public_html
Use the broom (clean and build), then run the applet in NetBeans, then the html to
run it is under build (right next to src), you can link to this directly, or copy the <APPLET>
tag from it to your index.html file (note that you can adjust the size in the tag)