Search:

Type: Posts; User: ashliii

Search: Search took 0.24 seconds.

  1. Thread: applets

    by ashliii
    Replies
    4
    Views
    151

    Re: applets

    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.
  2. Thread: applets

    by ashliii
    Replies
    4
    Views
    151

    Re: applets

    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...
  3. Thread: applets

    by ashliii
    Replies
    4
    Views
    151

    applets

    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...
  4. Replies
    12
    Views
    313

    Re: Java Applets - Events and Graphics

    Ok, thanks, I got it by adding the addActionListener(this); to both buttons, thank you for help and time.
  5. Replies
    12
    Views
    313

    Re: Java Applets - Events and Graphics

    Object obj = e.getSource();

    if (obj == increase)
    value++;

    BTW, can we see an applet code with a println statment in it. Thanks.
  6. Replies
    12
    Views
    313

    Re: Java Applets - Events and Graphics

    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.*;
    ...
  7. Replies
    12
    Views
    313

    Re: Java Applets - Events and Graphics

    Can you please see why then, the code does not respond to the actionPerfomed method and repaint. Thanks.
  8. Replies
    12
    Views
    313

    Re: Java Applets - Events and Graphics

    Norm,

    How do I tie the actionPerfomed method to the Paint method.

    Ashliii
  9. Replies
    12
    Views
    313

    Re: Java Applets - Events and Graphics

    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...
  10. Replies
    12
    Views
    313

    Java Applets - Events and Graphics

    // 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...
  11. Thread: Java Applets

    by ashliii
    Replies
    2
    Views
    146

    Re: Java Applets

    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...
  12. Thread: Java Applets

    by ashliii
    Replies
    2
    Views
    146

    Java Applets

    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,...
Results 1 to 12 of 12