import java.applet.*; import java.awt.*; public class OSXBugs extends Applet { public void init() { // the following worked properly under OS 9 Checkbox serifBox = new Checkbox("Serif"); serifBox.setFont(new Font("Serif",Font.BOLD,20)); add(serifBox); Checkbox romanBox = new Checkbox("TimesRoman"); romanBox.setFont(new Font("TimesRoman",Font.BOLD,20)); add(romanBox); TextField serifTF = new TextField("Serif"); serifTF.setFont(new Font("Serif",Font.BOLD,20)); add(serifTF); TextField romanTF = new TextField("TimesRoman"); romanTF.setFont(new Font("TimesRoman",Font.BOLD,20)); add(romanTF); Choice serifChoice = new Choice(); serifChoice.setFont(new Font("Serif",Font.BOLD,20)); serifChoice.addItem("A Serif item"); add(serifChoice); Choice romanChoice = new Choice(); romanChoice.setFont(new Font("TimesRoman",Font.BOLD,20)); romanChoice.addItem("A TimesRoman item"); add(romanChoice); Choice disabledChoice = new Choice(); disabledChoice.setFont(new Font("Serif",Font.BOLD,20)); disabledChoice.addItem("A disabled item"); disabledChoice.disable(); add(disabledChoice); // the following didn't work properly under OS 9 Label enabledLabel = new Label("Enabled label"); enabledLabel.setFont(new Font("Serif",Font.BOLD,20)); add(enabledLabel); Label disabledLabel = new Label("Disabled label"); disabledLabel.setFont(new Font("Serif",Font.BOLD,20)); disabledLabel.disable(); add(disabledLabel); Checkbox redBox = new Checkbox("Red"); redBox.setFont(new Font("Serif",Font.BOLD,20)); redBox.setForeground(Color.red); add(redBox); } public void paint(Graphics g) { g.setFont(new Font("TimesRoman",Font.BOLD,20)); g.drawString("TimesRoman", 100 , 300); g.setFont(new Font("Serif",Font.BOLD,20)); g.drawString("Serif", 100 , 325); } } // END OF Class OSXBugs