Using jdk1.2 pre_v2

I have a simple applet........

import java.awt.*;
import java.applet.Applet;
import java.awt.event.*;     
public class FirstEvent extends Applet
    implements AdjustmentListener {
    private Scrollbar slider;
    private int sliderValue = 0;

    public void init() {
        slider = new Scrollbar(Scrollbar.HORIZONTAL ,0, 1, 0, 100); 
        add(slider);
        slider.addAdjustmentListener(this); 
    }

    public void paint(Graphics g) {   
        g.drawString("Current value is " + sliderValue, 100,100);
    }

    public void adjustmentValueChanged(AdjustmentEvent e) {
        sliderValue = slider.getValue(); 
        repaint(); 
    }
}

and here for the record is the html file.....

<title> First Event applet </title>
<applet code="FirstEvent.class"
        width=300 height=200> </applet>

When I run this applet, I get some messages about missing dingbat fonts, but
the applet still displays and runs without any problems.

I went to the bug page and downloaded and installed the URW fonts, Now when
I run the applet, the messages about dingbat fonts have disappeared, but the
applet will not display text at all.

Any ideas ?



----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to