Keeping the scrollbar at the top when appending to a textArea

I have a JTextArea with a veritcal scroll bar on the right side. Everything works fine scrolling wise except for the position of the of the knob ( I believe that's what it's called) after the text area is appened to.
The knob automatically goes to the lowest position and I can't figure out how to keep it at the top.

To clarify further,
After ammending the text area I've inserted these lines
System.out.println(slider.getVerticalScrollBar().getMinimum());
System.out.println(slider.getVerticalScrollBar().getMinimum());
slider.getVerticalScrollBar().setValue(0);The print statements were just to check. They're both returning 0 though...I'm not entirely sure that means. The third line doesn't appear to have any effect

Similar Messages

  • Can I make layers default to the top when I drag and drop into a new folder?

    Can I make layers default to the top when I drag and drop into a new layer folder instead of the bottom? It annoys me that they always go to the bottom and I inevitably always need them at the top.
    Thanks

    Hi there
    ok so PS CS6 if I grab a layer in Group A (yes layer sets sorry) and drop it into Group B, itll put it under anything thats already in Group B, which annoys me! Is there a way of telling PS to default anything dragged from one group to another to default the newly added layers to the top 

  • How can I keep the formatting when converting from Word to pages?

    How can I keep the formatting when converting from Word to pages?

    Use only formatting that is supported (in the same manner) in both applications. You'll need to find which that is through trial and error. Beyond those formatting options, you'll need to do some corrections, as Fruhulda suggests.
    Regards,
    Barry

  • HT1529 my screen keeps jumping up to the top when on web sites

    my screen keeps jumping back to the top of pages when i am on the web.

    Hey Wooskie,
    Welcome to the BlackBerry® Support Community Forums.
    To better assist you I have a couple questions, is this happening with all conversations? Have you reinserted the battery? 
    Thanks.
    -HB
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Why does Large text in a Form get cut off at the top when I save it as a PDF

    Hi. I've created a form in Acrobat with 2 text fields. I set the size to 40pt and 30pts using Helvetica. When I fill out the form and save-as a PDF the text displays as cut off at the top.
    Here's what I've tried so far:
    Making the text fields MUCH larger than the font.
    Changing fonts. I've tried Helvetica, Verdana, Arial
    Selecting Multi-line
    Does anyone know how I can keep it from cutting off? The only solution I've been able to find thus far is reducing the font size significantly, which is not an option.
    THANKS!

    I'm using Acrbat Pro version 10.1.4
    The text looks perfect in Acrobat. I'm choosing File > Save As from Acrobat and then when I open it with Preview or Reader it cut's off the text.
    Thanks for your help.

  • Keeping the heading when scrolling down the page

    In Excell it is possible to keep the column heading row separate so that when you scroll down through pages of numbers the headings are still visible at the top of the rows. Is it possible to do this in Numbers?
    Thanks

    Go to the "inspector"-click on the "table" icon-then "headers and footers" where you can set the number of headers or footers you want and click/unclick "freeze". You can also do that directly from the button bar on the "header-footer" buttons

  • TS4337 my scroll bar continues to scroll up to the top when I'm in the daily or weekly view of ICloud calendar - how do I stop this?

    When I am using the Icloud calendar on my PC in the daily or weekly view, my scroll bar on the right continues to move up to the top of the page.  This has just happened today so I'm sure I pushed something on my keyboard.  I have restarted my system, disconnected then reconnected my keyboard but to no avail.  Any suggestions?

    If you're using Chrome as your browser, try increasing the font size in your browser settings (see https://support.google.com/chrome/answer/96810?hl=en).

  • In Firefox 3.6.10 I was able to go forward and backwards between pages without the page defaulting to the top of the page. Is there any way to prevent the page from automatically moving to the top when using the forwards and back buttons in Firefox Four?

    I like to be able to navigate backwards and forwards without having to scroll down and find where I was previously. In Firefox Four, when using the forwards and back buttons, the page will automatically return to the top of the page. Is there any way to change this setting in Firefox Four to prevent it from doing that?

    Thanks for the response. No Time Machine, but I probably have a backup from a few months ago on an external hard drive. :/ I guess it'd have useful history, but not if it overwrote the last 3 months or so of Awesome Bar, that might not be so great.

  • How to make your folder list appear at the top when opening a finder window

    Sorry if this has been asked before but couldn't find it in the threads... About the only thing I miss from Windows, is the way file mgr displays list in folders, i.e. starting with folders, then listing the files.
    Any way we can do this in Leopard?? The closest I get is by displaying content in list, then sort by type, but obviously my Adobe documents are listed before my folders... I'd really love to get my folders on top.
    Thanks for the help!
    Jean-Francois.

    FYI, I found this trick posted at another board:
    Sorting by kind with folders at the top can be done in Leopard with a little hacking:
    OBLIGATORY WARNING:
    If you're not comfortable with this, don't do it!
    With that out of the way:
    - navigate to: /System/Library/CoreServices/
    - right-click Finder.app and select Show package contents...
    - navigate to: Contents>Resources>English.lproj
    - backup InfoPlist.strings
    - open the original InfoPlist.strings in a text editor
    - locate the line that says:
    Code:
    "Folder" = "Folder";
    - add a space at the start of the second "Folder":
    Code:
    "Folder" = " Folder";
    - save the file
    - reboot or relaunch Finder
    The space in front of "Folder" forces folders to the top of the list when sorting alphabetically by kind.

  • What are all of the New Tabs across the top when Downloading Firefox it has been going on for almost 45 minutes, MAC OS10.8.2

    I am down loading the new Firefox. As soon as I stated the down load I start seeing these New Tab boxes start flowing across the top of my screen. They just keep coming and coming and I don't know what is going on. It looks like my computer is being hacked. I tried to stop it and I can't. I tried to close the window and couldn't, I forced quit my computer and as soon as it comes back on it goes right back to all of those New Tab going across the top of my screen. I was finally able to get another window to come up so I could send this message.
    I may not be able to get back to this page or open my e-mail so if need be you can call me at two 51-621-96 nine eight
    1/23/2013

    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Use a compressed image type like PNG or JPG to save the screenshot.

  • How to keep the highlight when the JTextComponent lose focus?

    I wanted to do some basic copy/cut/paste on the JTextPane from the Menu. But when I selected the menu, the highlight disappeared. How do keep the highlight?
    The only topic I found about this was here:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=214931
    but it appeared intimidating and not exactly what I needed.

    Most javax objects will accept things in <html> tags why don't you try setting them onto the JTextPane (never tried this btw but should be worth a try) using html and the transferring the same syntax to the output email

  • Keeping the volume when converting an AIFF file to MP3

    Hello,
    I use Garageband to make a podcast that I then send to iTunes. Within iTunes I get the name, artist, date etc. set, then I convert the AIFF to an MP3.
    However, I have noticed that the volume of the converted MP3 file is significantly lower than the original AIFF. I have tried converting to AAC and the same applies.
    The volume of the original AIFF seems perfect to me... How can I get the MP3 file to be at the same level when converting?
    Thanks in advance...

    The only thing I can think of is that you have Sound Check enableb and so it is lowering the volume when you convert to keep it the same as the rest of your library. Try turning it off.
    It is also possible that having it off could cause the same problem, so if it is off, try turning it on and see what happens.
    To check the status of Sound Check, go to the Playback tab in Preferences.

  • Coloured pixels running across the toolbar at the top when starting up.

    Hey I'm new to this so go easy!
    Basically, sometimes when I start up, the toolbar at the top i.e. File, Edit, View, History, Bookmarks, Window, Help and the time etc all becomes a big coloured pixel mess.
    I can still click the tabs and they will come up fine but the whole bar stays pixelated.
    I have a screenshot if that is any use.
    Danny

    Hello Danny:
    Welcome to Apple discussions.
    If your system is in warranty (or even if it is not) contact Apple (Applecare or a retail store). The problem you describe is probably hardware-related.
    Barry

  • TextPane always scroll to the bottom when append text

    How to avoid TextPane (inside scroll pane) to go to the bottom after append or set text. The current way I do is to scroll up again. This causes a noticable blink which I don't like very much. Could someone please point out if there is a setting I can do to say don't scroll?

    int pos = myTextArea.getCaretPosition();
    ...append text...
    myTextArea.setCaretPosition(pos);

  • 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

Maybe you are looking for

  • Can't able to release transport request which has process chain information

    Hi Experts, Can any one come accross the similar issue? . If so I am eager to know the fix for it. I have collected my process chain in a transport request and when I am trying to release the same for import to another system, I get the following err

  • Field in  BSEG

    Hello experts, I m developing the report on landed cost, I want one field namely 'Freight' included the service tax ,  for which data is in BSEG, for freight amount, material, po num  and its service tax and transaction is there.But the problem is ag

  • IMac - Where to buy replacement HD fan (Early 2009, 20") MB417LL/A

    The fan is old and worn out, and  I need a replacement HD fan! Where to buy replacement HD fan? Link? If I can I buy from Apple, link? Early 2009, 20" 2,66 Mhz, MB417LL/A?

  • Ordering the groups and columns in the Presentaion Services

    Hi Gurus, We are grouping the columns in the presetation Layer of RPD. Consider the senario like this GroupA having columns and sub groups subgroup1, subgroup2. When we navigate in answers it is displaying Group A under that subgroup1,subgroup2 and G

  • Name of the PDF got as correspondence - LSO 600

    Hi Kris, When the employee or manager receives the correspondence PDF, it always has the name  as 'No-title'. Any idea where i have to change the correct title. Regards, Sharadha