Results 1 to 3 of 3
  1. #1
    nsharath is offline Member
    Join Date
    Feb 2009
    Posts
    1
    Rep Power
    0

    Smile How to set SCROLLBARS to my APPLET???

    Hello sir,
    I m working on applets.I wanted to put horizontal and vertical scrollbars to my applet.I dont know what is the corresponding method.I know how to put these for a TEXTAREA.
    Can u please include the scrollbars to the sample code given below so that I can use it in my java file.






    /*<applet code="SimpleApplet" width=200 height=200>

    </applet>*/

    import java.awt.*;

    import java.applet.*;

    public class SimpleApplet extends Applet {

    public void paint (Graphics g) {

    g.drawString("First Applet", 50, 50 );

    }

    }

  2. #2
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Location
    Hong Kong
    Posts
    473
    Rep Power
    7

  3. #3
    sp_29 is offline Member
    Join Date
    Feb 2009
    Location
    philippines
    Posts
    16
    Rep Power
    0

Similar Threads

  1. I am having trouble with scrollbars in netbeans 5.5.1
    By ineedhelp in forum New To Java
    Replies: 2
    Last Post: 03-13-2009, 07:56 PM
  2. BFS using APPLET
    By bharanidharanit in forum Java Applets
    Replies: 3
    Last Post: 12-30-2008, 03:45 AM
  3. Applet in a GUI
    By serfster in forum New To Java
    Replies: 1
    Last Post: 06-13-2008, 12:09 AM
  4. applet
    By amith in forum AWT / Swing
    Replies: 1
    Last Post: 05-16-2008, 04:24 AM
  5. Replies: 4
    Last Post: 06-08-2007, 07:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •