Results 1 to 2 of 2
  1. #1
    lipkee85 is offline Member
    Join Date
    Aug 2010
    Posts
    1
    Rep Power
    0

    Default Adjust scrolling in canvas

    Hi all,

    I have done a canvas into an applet. I added scrollPane to make the canvas scrollable if it is too big. How to make the scrollPane so that it automatically scrolls at the middle for the first time I load the applet? Thanks :)

  2. #2
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Default

    Emm...

    You can program the JScrollBar component for this
    I recommend reading this A quick demonstration of JScrollBar both vertical and horizontal : ScrollBar**Swing JFC**Java
    If my answer helped you. Please click my "REP" button and add a comment
    Have a Good Java Coding :)

Similar Threads

  1. Replies: 1
    Last Post: 07-19-2010, 01:31 AM
  2. Replies: 14
    Last Post: 09-18-2009, 05:48 AM
  3. Replies: 2
    Last Post: 07-29-2009, 01:23 PM
  4. Replies: 0
    Last Post: 07-05-2009, 01:31 PM
  5. How To:Use a JSlider to adjust Text size in a JPanel
    By louiebagz in forum AWT / Swing
    Replies: 2
    Last Post: 07-01-2007, 08:37 AM

Tags for this Thread

Posting Permissions

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