Running Netscape 7.0 on Solaris 8.
The font size does not take effect when the label component is added to applet in its init() method. However, they work when the components are added in the start() method.
This works fine on Netscape 6.x on Solaris and in Netscape 7 on windows . Only Netscape 7 on Solaris seems to have the problem.
To Reproduce:
==========================
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
public final class Sample extends Applet
{
Label lbl;
TextField txt;
public void addMyComps()
{
this.add(lbl);
}
public void init()
{
lbl = new Label("ABCDEFGHIJ");
lbl.setFont(Font.decode("Dialog-bold-25"));
String sTemp = super.getParameter("ADD_IN_INIT");
if ( (null != sTemp) && (sTemp.equals("YES")) )
{
System.out.println("Adding comps in Init");
addMyComps();
}
}
public void start()
{
String sTemp = super.getParameter("ADD_IN_START");
if ( (null != sTemp) && (sTemp.equals("YES")) )
{
System.out.println("Adding comps in Start");
addMyComps();
}
}
public void stop()
{
System.out.println("In Stop()");
}
}
###@###.### 2003-02-03