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...
Type: Posts; User: mjpam
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...
This is what I meant to say. I was wondering how to do this.
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>
*/
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...
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...
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;
...
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...
Here is the code snippet for the division operation:
public DivisionAction(TextField arg1Txt, TextField arg2Txt, TextField answTxt)
{
...
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...
How would I go about running the banner in one thread and the calculator in another?
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...