import java.awt.*; import java.applet.*; public class ClassLoad extends Applet { StringSupply ss; public void init() { String param = getParameter("classname"); try { ss = (StringSupply)Class.forName(param).newInstance(); } catch (Exception e) { System.out.println(e); return; } String str = ss.getString(); Label label = new Label(str); label.setFont(new Font("TimesRoman", Font.BOLD|Font.ITALIC, 30)); add(label); } }