Hello everybody! Here is an appletjava file which displays the user texts(entered via text field) in its upper text area. Now i wnat this text area to be replaced by a canvas and this canvas must contain a scrollbar. If anyone of u could be able to that then plz. mention your code at this forum or mail me at amu_guy@hotmail.com Its vrey urgent. Thankx! ---------------------------------------------------------------- import java.applet.Applet; import java.awt.*; import java.awt.event.*; /* <applet code="dd1.java" width=400 height=400> </applet> */ public class dd1 extends Applet implements ActionListener,ItemListener{ TextArea textarea1; TextField text1; Button button1; Panel down,down1; Label l=new Label("Applet for Fonts & Colors"); Choice ch1=new Choice(); Choice ch2=new Choice(); Choice ch3=new Choice();
down1.add("North", button1); add("South", down); down1.setLayout(new GridLayout(1,3)); ch1.add("Select a font type"); ch2.add("Select a font style"); ch3.add("Select a font size"); ch1.add("SansSerif"); ch1.add("Serif"); ch1.add("Monospaced"); ch2.add("PLAIN"); ch2.add("BOLD"); ch2.add("ITALIC");