Search:

Type: Posts; User: mjpam

Search: Search took 0.11 seconds.

  1. Replies
    22
    Views
    3,271

    Re: Creating a threaded applet

    Sorry, I've been trying to get this to work for a while, and my brain is fried. I understand what you were saying now that you phrased it.[/QUOTE]



    The Label class does not have a constructor...
  2. Replies
    22
    Views
    3,271

    Re: Creating a threaded applet

    This is what I meant to say. I was wondering how to do this.
  3. Replies
    22
    Views
    3,271

    Re: Creating a threaded applet

    OK, here's what I have done.

    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;

    /*
    <applet code = "BannerCalcApplet" width = 225 height = 300
    </applet>
    */
  4. Replies
    22
    Views
    3,271

    Re: Creating a threaded applet

    This is what I am unsure on how to do. I wrote a stand-alone calculator applet that works just fine. I am, however unsure on how to create a place for the banner within calculator applet and then add...
  5. Replies
    22
    Views
    3,271

    Re: Creating a threaded applet

    I am still really lost on how exactly I am to achieve my desired results.

    Do you have any references to tutorials that might tell me how to create applets that contain multiple classes of my own...
  6. Replies
    22
    Views
    3,271

    Re: Creating a threaded applet

    I'm not sure how to being placing the elements in the GUI. I have tried several things and my latest attempt is:

    public class CalculatorGUI
    {
    /*priavte*/ BannerCalcApplet bca;

    ...
  7. Replies
    22
    Views
    3,271

    Re: Creating a threaded applet

    OK, now I am having trouble integrating the calculator with the banner.

    I have a version of the code that compiles with out error:

    import java.applet.*;
    import java.awt.*;
    import...
  8. Replies
    22
    Views
    3,271

    Re: Creating a threaded applet

    Here is the code snippet for the division operation:

    public DivisionAction(TextField arg1Txt, TextField arg2Txt, TextField answTxt)
    {
    ...
  9. Replies
    22
    Views
    3,271

    Re: Creating a threaded applet

    I guess I was a little confused as to what I need to put into a thread and what I didn't. I just want the applet to display a scrolling banner and allow the user to perform basic arithmetic...
  10. Replies
    22
    Views
    3,271

    Re: Creating a threaded applet

    How would I go about running the banner in one thread and the calculator in another?
  11. Replies
    22
    Views
    3,271

    Creating a threaded applet

    I have two classes that I want to run in separate threads in the same applet:

    ScrollingBanner.java

    public class ScrollingBanner implements Runnable
    {
    private String msg = "This is...
Results 1 to 11 of 11