Sorry, I copied the code from the first message, that is the reason. I think I got what you meant.
BTW, may god bless you truly well for all the help you volunteer.
Type: Posts; User: ashliii
Sorry, I copied the code from the first message, that is the reason. I think I got what you meant.
BTW, may god bless you truly well for all the help you volunteer.
Sorry about the spaces in the tag. Will make sure not to repeat.
Will you kindly show me how to put the value into a class variable, perhaps by modifying the code.
import...
HI, Can someone help me. In the checkbox below, what I want to achieve is, as a selection is made, (say 120), the value 120 to be part of the drawLine method. Thank you for your time.
import...
Ok, thanks, I got it by adding the addActionListener(this); to both buttons, thank you for help and time.
Object obj = e.getSource();
if (obj == increase)
value++;
BTW, can we see an applet code with a println statment in it. Thanks.
I am sorry, it seems println statements do not work in applets, but I have pasted the code.
import java.applet.*; import java.awt.*; import javax.swing.*; import java.awt.event.*;
...
Can you please see why then, the code does not respond to the actionPerfomed method and repaint. Thanks.
Norm,
How do I tie the actionPerfomed method to the Paint method.
Ashliii
When I click the "Increase" button, the value of 1000 should be increased to 1001 but nothing happens. Can you please help. Thank you for your time.
import java.applet.*; import...
// Hi, Will someone kindly take a peek at the code below, corrrect it and let me know why this simple applet does not work.
// All I am trying to do is, as the buttons are pressed, 1000 to...
Thanks for trying to help me. The problem I had was when I pressed the "Example" button, the three textfields, tf1, tf2 and tf3 did not show the values 5000, 6 and 8. I just realized that was...
Hi, I am relatively new to applets, hence having some problems when it comes to handling event driven code.
Below is a java applet code. All I want is when the button called "Example" is pressed,...