/*public class WelcomeWindow extends {
boolean isStandalone = false;
//Construct the applet
public WelcomeWindow() {
}
//Initialize the applet
public void init() {
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
//Component initialization
private void jbInit() throws Exception {
this.setSize(new Dimension(400,300));
}
//Get Applet information
public String getAppletInfo() {
return "Applet Information";
}
//Get parameter info
public String[][] getParameterInfo() {
return null;
}
// static initializer for setting look & feel
static {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
//UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
}
catch (Exception e) {}
}
} */
//I AM GETTING THE ERROR MESSAGE HERE SAYING ILLEGAL START OF EXPRESSION
if("OK".equals(event.getActionCommand()))
usernameField.getSelectedText();
passwordField.getSelectedText();
}
if (usernameField.getSelectedText()=string2 && passwordField.getSelectedText()=string1)
<applet
codebase="."
code="Runprogram.Welcome.class"
width="250"
height="250"
>
</applet>
Consider Paul's rocket mass heater. |