i have an .html file <APPLET CODE=Client.class WIDTH=600 HEIGHT=300>
</APPLET>
and my code is
import java.applet.*;
import java.awt.*;
public Client()
{
appletContainer.setLayout(new FlowLayout());
appletContainer.add(nameLabel);
appletContainer.add(nameTextField);
appletContainer.add(joinButton);
appletContainer.add(inputTextArea);
appletContainer.add(outputTextArea);
appletContainer.add(sendButton);
appletContainer.add(leaveButton);
}
i know this is just the beginning of my program and it should work, any guidance or advice will be greatly appreciated
the main error it gives is : class, interface, or enum expected
appletContainer.add(LeaveButton);

New Topic/Question
Reply




MultiQuote





|