What should I do about the syntax of the program?
What other options should I try?
Type: Posts; User: Sugi
What should I do about the syntax of the program?
What other options should I try?
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Suharsh>appletviewer TheHtmlThatExecutesTheApplet.html
Still not working
I use BlueJ and after compiling I run the applet by right-clicking the class.
I go to My Computer/Java/Jdk/Bin/Java.consoleto open the console
The screen of the console opens and closes immediately...no idea.
After compiling the code I run the applet. I make a note of what is being displayed and what is not.
I add a code to see if the...
I simply view the applet and try to change the syntax if the program is not running.
How should I execute the program?
I am unable to see the screen of the console, it opens and closes instantly .....
Based on what you get as an output..what should I do?
I am pretty sure the if statement is correct...
If I add a println statement in the listener method nothing happens.
Is this because I am viewing it in applet viewer?
The updated version:
import java.awt.*; //Basic hierarchy of packages for native GUI components
import java.applet.*; //Package for creating an applet
import javax.swing.*;
import...
I see the message Applet Starting in the terminal window. I am using the applet viewer.
Now that I have made the program into ActionListener, what difference does it make and yet the buttons are not...
Okay I have no idea what you did...but now I made a similar coded class with ActionListener
It is pretty much the same just without the other methods that were there for mouseListener.
Also..what...
I put the println() statement in mouseClicked method.
I clicked the mouse on the buttons
I have tried printing a message but nothing happens..I guess the listener is not being called.
Should I convert it to ActionListener?
When I execute..The Label Vidya Valley School Elections is displayed.
The label Head Boy is also displayed and along with it 4 buttons are also displayed.
If I click on the first button nothing...
Hey guys..I am not able to find the solution of the problem in my applet. It displays the buttons for only one category and it is not going ahead with the program.
Please help me find the problem...