My JScrollPane scrollbar defaults to the bottom not top

Hi,
I have a slight problem with a JScrollPane in that it appears to default the scrollbar to the bottom when the scrollbar is visible. I basically have a panel on a JFrame containing a JTextArea within a JScrollPane.
Does anyone know how I can make it default to the top ? I think I found a method that works on JScrollBar but can't seem to find one for JScrollPane.
Thanks,
Andy

I've just tried this and it works great, thanks for that.
I was looking for methods in JScrollPane to control the bar, never thought of the JTextArea class having the answer

Similar Messages

  • When i open iphoto i see my photo's for 1 second and then they are gone .The photo's are still there but i can see them only on the bottom or top of my screen when i try to open them i get a sign that it is not possible.Can somebody please  help me?

    when i open iphoto i see my photo's for 1 second and then they are gone .The photo's are still there but i can see them only on the bottom or top of my screen when i try to open them i get a sign that it is not possible.Can somebody please  help me?

    Have you upgraded to iPhoto 9.6 for compatibility with Yosemite? If not, try that first.
    It looks like iPhoto has lost the connection between the thumbnails and the original image files.
    This can be caused by a corrupted iPhoto library, or the originals have been deleted or moved.
    Try first to rebuild your iPhoto Library:
    If you do not have a current backup of the iPhoto library, make a copy of the library, but do not overwrite any previous backup.
    Launch iPhoto with the ⌥⌘-key combination (option-command) held down.
    Select "rebuild" from the first aid panel.  This may take a while for a large library.
    Can you now see your photos again?
    If not, rebuild the library with iPhoto Library manager as described by Old Toad:            Re: iphoto crashed

  • Why do html page links on iweb suddenly start opening the pages at bottom not top?

    Why do html pointer to pages open those pages at the bottom not the the top on a web page I am working on with iWeb. Software seems a bit flakey as sometimes if I close the site down and then reopen it all is ok. Any ideas? Thanks. Sean

    Okay, I figured out the problem with those certain links not working on www.calgaryyouthrally.com. The grey background was apparently covering the links somehow on the first and last pages of the site (due to its becoming enlarged in IE8). I made some changes and took care of that problem.
    But, the enlarged grey background is bugging me. It is acceptable in Firefox and Safari. But in IE8 the grey extends well beyond the actual size that I made it. The grey shape with the white picture frame around it is what I have made in iWeb. But in IE8 the grey is extending well beyond the white picture frame border. What can I do to fix this? Any ideas? Again, the site is www.calgaryyouthrally.com.
    Thanks!
    Message was edited by: bawill
    Message was edited by: bawill

  • How to use Percent_Rank to knock out the bottom and top 10% of query?

    Hi,
    I'm trying to use Percent_Rank to knock off the bottom and top 10% of a query result, and then take an average of what's left.
    The query is of the form:
    SELECT 'Average Resolution Time Days' Service_Time_Type,
    ROUND(NVL(AVG(NVL(hds.hds_working_duration(jr.date_lodged, jas.job_close_date),0)),0),2) Time_Days
    FROM hds.hds_job_request jr, hds.hds_job_assignment jas
    WHERE jr.job_id = jas.job_id
    and jas.job_close_date is not null
    AND jas.job_close_date >= '01-JAN-2006'
    AND jas.job_close_date < '01-NOV-2006'
    I would like to add a: WHERE PERCENT_RANK ?????? BETWEEN 0.10 and 0.90, but I can't work out how to use it, can someone help?
    Thanks
    Adam
    Message was edited by:
    Adam Sawyer

    I worked it out:
    This is the query I ended up with:
    SELECT 'Average Resolution Time Days' Service_Time_Type,
    ROUND(AVG(duration),2) Time_Days
    FROM
    SELECT hds.hds_working_duration(jr.date_lodged, jas.job_close_date) duration,
    round(percent_rank() over (order by hds.hds_working_duration(jr.date_lodged, jas.job_close_date)),2) pr
    FROM hds.hds_job_request jr, hds.hds_job_assignment jas
    WHERE jr.job_id = jas.job_id
    AND jas.job_close_date IS NOT NULL
    AND jas.job_close_date >= '01-JAN-2006'
    AND jas.job_close_date < '01-NOV-2006'
    WHERE pr BETWEEN 0.1 AND 0.9
    ORDER BY 1
    Thanks for all your help
    Cheers
    Adam

  • Jumping to the bottom or top of a photo album?

    Just wondering whether there was a way on the iPhone to jump directly to the bottom or top of a photo album, like the Safari jump to the top tap? Would be very useful for photo albums in the hundreds.

    There is no quick way of doing it, either scroll or exit the album access a different album then access the previous album again and you will be back on top

  • When I open another window the cursor defaults to the bottom of the page instead of the top why and how can I fix it? It is a pain to have to keep scrolling to the top all the time. This does not happen with Chrome or IE.

    I can send you a screen shot if that would be helpful.
    I have noticed that the emails sent out of S1 always default to the end
    of the message so we need to scroll up to edit what we've written. Most
    of the time I need to edit the text near the top of an email so although
    it is a very minor thing, it is a bit irritating.

    In Firefox 4 the cursor is placed automatically at the end of a text area.<br />
    Easiest to go to the top is by using Ctrl+Home

  • Display the FRM-40400 at the bottom not with popup

    Hi,
    I need help with one form i have to modify, after modifiying the form, i noticed that the message FRM-40400 is displayed as popup but i just want this message to be displayed at the bottom of the form. Do you have any idea?
    Thanks.

    What version of Forms are you using?  What changes did you make to the form?  Did you make changes to the ON-MESSAGE or ON-ERROR triggers?
    The most likely cause of the FRM-40400: Transaction Complete message being promoted to the Default Alert is that you are writting a new message to the status bar but you didn't call the CLEAR_MESSAGE() built-in first.  It is always good (and recommended) practice to call the CLEAR_MESSAGE() built-in before displaying a new message with the MESSAGE() built-in; this ensures the status bar is clear before the message is displayed.  If there is a message already displayed in the status bar when a new message is sent to the status bar then the current message is promoted to the default Alert so the new message can be displayed.
    What message is in the status bar after you click OK on the popup (default Alert)?
    Craig...

  • Thermal paste goes on the bottom or top of cpu?

    Hi, managed to get thermal paste on the bottom of a socket 775 cpu, wiped it off with a dry cloth but the pc will not go. Is it buggered? or is there something i can clean it with properly? (if i hold it in the right light can still see smears on the bottom)
    Thanks
    Hmm maybe ill try meths while im waiting for a reply.....

    Well looks like you logged off.
    Anyway, I wont ask how you got paste on the wrong side.
    When I am installing a previously installed cpu I use alchohol on a Q-tip to clean the Chip and the heat sink. It has never appeared to cause any damage. I would try and limit the amount used though. The board side would be the most problematic as fibers from whatever you use might remain. perhaps some compressed air after you have swabbed it would clear it out. I would get a magnifying glass and inspect it carefully to make sure NOTHING is contaminating the socket. Also there are probably some surface mounted components on the contact side of the CPU. Check carefully to make sure there is no contamination there either.
    I use Arctic Alumina paste. They used to have a good instruction page with pictures at www.arcticsilver.com  Take a look.
    Good luck

  • Screen image clips at the bottom, not so when using explorer-how do i correct this?

    screen images such as games and submit buttons don`t show at bottom of screen. they do using explorer ,same screen setting, how do i correct

    Is this in the normal browser window or in (smaller) pop-up windows?
    It is possible that the screen is too wide or too high.
    * Use Restore or Maximize in the right-click context menu of the Taskbar icon to set focus to the Firefox application if you do not see the Firefox window.
    * Open the system menu of that Firefox window via Alt+Space and see if you can move and resize that window (use the keyboard cursor keys).
    If that works then first close all other open Firefox windows and then close Firefox via "File > Exit/Quit" to save that setting.
    If the above didn't help then see:
    * http://kb.mozillazine.org/Corrupt_localstore.rdf

  • I want to remove "full screen" and set it back to where I can see the tab bar at the bottom and top of my screen. I want Firefox to go to Google - not Yahoo

    I think I am clear about what I want as stated in my question above. Please help

    Right-click the empty space next to the Firefox button and choose 'Customize', then click 'Restore Default Set'

  • HT201269 I am trying to unlock the iphone I have the instructions from apple refer to restore in the itunes and state at the bottom not the top.  Where is it?

    Can anyone help with the above question.

    I have managed to unlock my phone thank you.  Top and bottom referred to the menu options which I found eventually. NontechnicalB Up and running.

  • When using email via iCloud, when I try to reply to emails, the cursor defaults to the bottom of the chain. How can it be set to default to the top?

    PDF reader will not open certain documents. I have to download to desktop and open PDF documents there. No similar problem if using Safari. Already loaded PDF plugin for Firefox. Any guesses?

    Also, This is the message I receive when the page doesn't open:
    The connection was reset
    The connection to the server was reset while the page was loading.
    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer's network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

  • My droid maxx display has a mind of its own.  Keeps going back to the home screen by itself and the hard keys on the bottom not working properly.  I was told my someone that it could be the screen sensor.  Any help?

    This Droid Maxx is loosing its mind.  The display started going crazy yesterday and nothing helps.  I have even done a hard reset and still screwed up.  Suggestions anybody

    Run it in Safe Mode see what it Does.. There could be a 3rd Party app that is causing the issue..

  • When I try to scroll using my arrow keys, it jumps to the bottom (or top) of the page instead of scrolling down so I can see the contents. Why is it doing this?

    I tried closing Firefox and even restarting my computer, but it still doesn't go back to scrolling slowly.

    Have you upgraded to iPhoto 9.6 for compatibility with Yosemite? If not, try that first.
    It looks like iPhoto has lost the connection between the thumbnails and the original image files.
    This can be caused by a corrupted iPhoto library, or the originals have been deleted or moved.
    Try first to rebuild your iPhoto Library:
    If you do not have a current backup of the iPhoto library, make a copy of the library, but do not overwrite any previous backup.
    Launch iPhoto with the ⌥⌘-key combination (option-command) held down.
    Select "rebuild" from the first aid panel.  This may take a while for a large library.
    Can you now see your photos again?
    If not, rebuild the library with iPhoto Library manager as described by Old Toad:            Re: iphoto crashed

  • When I press on the down arrow key (or up) the web pages jumps all the way to the bottom (or top)

    So basically the up and down key are acting as "home" and "end".
    If I click on the page I can get them to work somewhat normally, although there is a cursor (like for imputing text) and it goes line by line when I press up and down (instead of scrolling) very annoying and I'll be switching to Chrome for good unless this is resolved for me.

    that was it... thank you

Maybe you are looking for