Having JScrollBar scroll to the top.

I'v got a JTextArea inside a JScrollBar. After adding text the ScrollBar goes to the bottom of the text. How do I get the ScrollBar to go all the way to the top.
Thanks alot in advance..

myTextArea.setCaretPosition(0);
or
http://search.java.sun.com/search/java/index.jsp?and=jtextarea+top+bottom+scroll&phr=&qt=&not=&field=&since=&nh=10&col=javaforums&rf=0&Search.x=38&Search.y=8

Similar Messages

  • Selected Item in a list automatically scrolled to the top

    Hi All,
    I am having a tough time solving this problem. Please help.
    In my application I have a list keeping track of all the
    games currently going on. The list keeps getting updated regularly.
    What is happening is that whenever I select an item by clicking on
    it, in the next update it automatically
    gets scrolled to the top. This does not get removed even if I
    click anywhere on the stage.
    Because of this I am not able to scroll my list properly.
    Every few seconds, it goes to the top and I am not able to scroll.
    Please help. Any suggestions are welcome.
    With Regards,
    Rohit Sharma

    Ok,
    try this:
    every time BEFORE your page get updated
    you first save the verticalScrollPosition
    var p1:int = list.verticalScrollPosition;
    then AFTER your page get updated you set the value back
    list.verticalScrollPosition = p1;

  • Why is pages scrolling to the top of the page every time I type something?

    Every time I type something, or hit any key for that matter, my document scrolls to the top of whichever page I'm working on and I am unable to see what I am typing. It just started doing this last night, so I feel that I must have clicked something. Any suggestions?

    You're not current with the OS version and you didn't say which release of Pages you have.  Version 4.0.5 is the latest. See Pages, About Pages.
    I'd suggest, in this order:
    Close your apps.
    Download and Install the 10.6.7 Combo Update
    Run Software Update and accept all the revisions for 10.6.7 and Pages
    Try again with Pages.
    If still having trouble, try in another, new, User Account.
    Jerry

  • Extremely slow in every way. Typing, loading, moving and even just scrolling from the top of the page to the bottom. Keeps getting worse. Maddingly frustrating!!! Help!!

    Firefox has gotten extremely slow. Typing, loading, searching, even just scrolling from the top of a page to the bottom. My daughter had the same thing happen to her and had to get her computer stripped down and completely reloaded. I don't have that option. It has no viruses and has been completely freed of all things that could slow it down.
    == This happened ==
    Every time Firefox opened
    == About a month ago. It is getting worse.

    Hmm... try downloading the [http://www.firefox.com latest] version... but if that doesn't work then try [http://support.mozilla.com/en-US/kb/Safe+Mode Safe Mode]. Not sure what could be causing it...

  • When I click on a link, the link I want, won't open, but a bunch of blank tabs scroll at the top. How do I fix it?

    Example:
    I go to United Health Care, and it takes me to the website.
    When I get there I click on the option Forms, instead of that option opening, a bunch of blank tabs scroll at the top.

    -> Clear Cookies & Cache
    * https://support.mozilla.com/en-US/kb/Template:clearCookiesCache
    -> [[How to clear the cache#w_clear-the-cache|Clear the Network Cache]]
    Check and tell if its working.
    Btw your Plugins are quite older. You need to update them.
    -> Update All your Firefox Plugins
    * https://www-dev.allizom.org/en-US/plugincheck/
    * http://www.mozilla.com/en-US/plugincheck/
    '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''
    -> Adobe Flash Player 11.0.1.152 (3.59 MB)
    * http://get.adobe.com/flashplayer/
    -> Java Version 6 Update 29
    * http://java.com/en/download/index.jsp
    * [[Using the Java plugin with Firefox]]
    -> Restart Firefox

  • CreateInsert puts table scroll at the top position

    Hi all,
    I've found a strange behaviour with ADF Tables with editingMode="editAll":
    Clicking the CreateInsert button always puts the table scroll at the top position, which is really annoying. Does anyone know how to solve it?
    Thanks in advance
    Barbara
    Version
    ADF Business Components 11.1.1.56.60
    Java(TM) Platform 1.6.0_18
    Oracle IDE 11.1.1.3.37.56.60

    In my case, rows don't have to be added as the last in the table, just next to the current row. Anyway, your link gave me a clue: use displayRow="selected" in af:table instead of the default value (displayRow="first") turns the selected row always visible, which is exactly what I wanted : )
    Thanks, Shay!

  • The "small ball" on the mouse allows me only to scroll to the top not to the bottom

    The "small ball" on the mouse allows me only to scroll to the top not to the bottom

    Crud builds up under the ball and prevents the rollers from operating properly.
    Turn it upside down and rub the ball vigorously with a microfiber cloth.
    Regards,
    Captfred

  • JScrollPane - scrolling to the top

    Hello,
    I have packed JTextArea in JScrollPane. Now when I append long text to JTextArea, it shows the bottom line of the text.
    How to programatically scroll to the top of text area after text update?
    Roberts

    try with "textArea.setCaretPosition(0);"
    Greetings,
    Marco

  • How to scroll to the top of the page?

    How do I scroll to the top of a page in the browser? On very long pages, the address bar can not be easily reached. I have to scroll up until I get to the top to access the address bar and tabs.
    Phone: One touch fire e, 6015x, OS version: FFOS 2.0.0.0, Firmware version: 03 004, hardware version: 08, plattform: 32.0, update-channel: release-tcl-TEF-DE.
    i can reproduce this after a factory reset. i also can provide a video to prove, if demanded.

    Hi Tom,
    I fear that this is the expected behaviour in FFOS 2.0 browser. It is really annoying, of course, and hopefully it will be addressed and corrected in the following releases.

  • What will keep my screen (not the cursor) from scrolling to the top?

    My laptop screen constantly scrolls to the top whether I'm in e-mail, the web, or any documents. I tried Internet Explorer with the same results. Does anyone have a suggestion?
    == This happened ==
    Every time Firefox opened

    You may have switched on caret browsing.
    *http://kb.mozillazine.org/accessibility.browsewithcaret
    You can toggle caret browsing on/off by pressing F7 (Mac: fn + F7).
    *Edit > Preferences > Advanced > General > Accessibility: [ ] "Always use the cursor keys to navigate within pages"
    Note that this is an accessibility feature of Firefox.
    *http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • To Do List Automatically Scrolls to the Top when I make any date change

    I'm using Palm 6.2.2 at the moment, and I'm finding that Whenever I change the date on any of my To Do List tasks in the desktop software the list automatically jumps/scrolls to the top of the list and it is driving me INSANE. I have a LOT of dated tasks and on a daily basis have to push them forward to other dates. Doing this now takes me forever as I have to rescroll down to the area of tasks I was working on, change the date on the next one then start all over again.
    For what it's worth, I just upgraded from a Treo 700p w/Palm 4.something - that version of the Desktop Software did NOT do this.
    Anyone else encounter this and know how to fix/avoid it?
    Post relates to: Centro (Verizon)

    I can confirm this function. Also I wasn't able to find anyway for it to not do this. 
    Post relates to: None

  • After installing Windows 8, when I try to use itunes, the cursor only slowly scrolls to the top of the page and the program will not respond.

    After installing Windows 8, when I try to use itunes, the cursor only slowly scrolls to the top of the page and the program will not respond.

    After installing Windows 8, when I try to use itunes, the cursor only slowly scrolls to the top of the page and the program will not respond.

  • Why doesn't Firefox stop scrolling past the top of the page?

    When I scroll to the top of a webpage Firefox will not stop there. I goes past the top of the webpage and shows a white square to the left and a grey bar to the left, then it bounces back down to the top of the page. I want Firefox to just go to the top of the page and stop the way it used to do.

    Hello BK_Malik, '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    check if is the Yet Another Smooth Scrolling add-on, just a guess !
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • How do i get to the top of an iTunes playlist without having to scroll all the way

    when i am down at the bottom of one of my playlists and i want to get to the top i have to scroll through thousands of songs and it takes forever i was just wondering if there is an easier way to get to the top of a playlist?

    Hi Dlink123,
    To move to the top of the list, you would use the Home button as with most places on the Mac, fn-Left Arrow on a MacBook Pro.
    OS X: Keyboard shortcuts - Apple Support
    fn-Left Arrow
    Scroll to the beginning of a document (same as Home key)
    fn-Right Arrow
    Scroll to the end of a document (same as End key)
    Note you need to be in the song list so it knows what your are moving to the top of, so click on a song first if none is currently selected.
    Thank you for visiting Apple Support Communities.
    Nubz

  • How can I scroll down the top menu list and then the sub-menu lists when the iPod click wheel is broken?

    I have an iPod Classic 4th Generation and my click wheel connection is broken and so does not work. I can still play music on my Bose dock station but I cannot choose which album I want to play because I cannot scroll down the playlists.  I can just play the first tune in the list or from where I last paused a tune. Is there a way to scroill down the list, including the top menu list, without using the click wheel?

    Index Values, I think, is the property you are looking for.  Set the index to 0 to be at the top.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for