![]() ![]() G. G.drawString("Programming is not", 140, 100) Protected void paintComponent(Graphics g) Public class DrawingTextPanel extends JPanel If you changed your program to something like this. You don't have to go through the hassle of finding an applet viewer or possibly changing the security settings for Java if you do applets are also pretty outdated. Right after running the applet program using appletviewer a new applet window is displayed to us - Advertisement. ![]() I think it's easier to use other Swing tools instead of applets. In order to run our applet using the appletviewer, type the following command at the command prompt- appletviewer Applet8.java Where Applet8.java is the name of java file that contains the code of an applet.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |