Linux « Applet « Java Swing Q&A





1. Error when using JApplet in appletviewer in Linux    coderanch.com

Dear my friends, I am new to Swing. I follow the text book and type the following code: import java.swing.*; import java.awt.Graphics; public class MyFirstApplet extends JApplet { public void paint(Graphics g) { g.drawString("To climb a ladder, start at the bottom rung", 20, 90); } } The file is compiled successfully. And then I create a html file as following code: ...