Question on vertical scroll bars in JScroll Pane

Hi,
I managed to display my chat program with a vertical scroll bars by using JScrollPane. Every time some on types a line, this is appended to whatever was previously in the JTextArea (the JScrollPane has a JTextArea in it). Even though this works fine, when the dimension of the JTextArea is full with text, one has to scroll down to see what was the last line of text that was typed.
Is there a way to make the verticall scroll area alwas scrolled down (I mean, scrolled to the bottom so I can see new incoming text without manually having to scroll it down?)
Thanks!
Cecilia.

You might try adding a properties listener to the JTextArea listening for a "resize/size" property change and when it does, force the scroll bar to go to max.

Similar Messages

  • How to put vertical Scroll Bar on the LEFT side of a VBox?

    The default is on the RIGHT side. It seems no easy solution on this question.

    Hi Darren,
    Thanks for your reply. I've narrowed the problem down to this strange behavior only happening when the viewport component is a tree-table (a JTable with a JTree for a column renderer). The tree-table works okay in JDK 1.3, but not in JDK 1.4. When I remove the JTree column renderer, the table draws correctly, but without the tree. It looks like the viewport position is being set wrong somewhere.
    When a column is resized, an AdjustmentEvent is created. So that's why resizing the column looked like it had the same effect as the horizontal scroll bar.
    If you're interested, then I will be happy to let you know how I fixed it, if I can.
    The complete code that creates the scroll pane with the vertical scroll bar on the left is below. There's too much code to post the JTree column renderer.
    Thank you,
    Don
    m_leftScrollPane = new JScrollPane(m_sourceTable,
    JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
    JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    m_leftScrollPane.setComponentOrientation
    (ComponentOrientation.RIGHT_TO_LEFT);

  • SharePoint 2010, unable to see the site vertical scroll bar in Safari and Mozilla Firefox

    Hi,
    I am not able to see the sharepoint site vertical scroll bar in Safari and Mozilla firefox in window OS as well as  Mac OS , even I have tried with various option of the browser but still not able to see the vertical scroll bar.
    I have tried to check with other sharepoint site in Windows OS and found that I can see others sites vertical scroll bar in Safari and Mozilla firefox , Please let me know why I am not able to see for my sharepoint sites.
    Thanks
    Roopak

    Screen in jammed or how it looks without vertical scroll bar ? Check with site master page if you have modified anything related to  vertical bar or else Try in other system and check if you are able to see vertical bar . 
    Let us know your result 
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever you see a reply being an answer to the question of the thread, click "Mark As Answer

  • How to fix double vertical scroll bar in responsive output

    After implementing the solution provided for the question 'Responsive HTML5 Output: How to auto adjust the screen resolution for all devices?', the function bar in output does not appear and also another vertical scroll bar in the output. I edited the max-width value in the layoutfix.min.css file and fixed the function bar issue. How can I do away with the additional vertical scroll bar?

    I've looked into the issue.
    @Delennish: In your case, the size of the iframe is too large, or you have an extra empty element below the iframe. You can try 2 things:
    1. Best solution but may have side effects: In the main.css, add the following code:
    div.contentholder { overflow: hidden !important;}
    For this option, please check for undesired side effects.
    2. Works, but is ugly: In the main.css, add the following code:
    div.floatholder iframe.wTopic { height: 95% !important;}
    Try playing with the height setting until the 2nd scrollbar disappears.
    @CarolW: The layout you're using is very old. I've made a new responsive layout with TOC only. Please use that one instead: http://www.wvanweelden.eu/sites/default/files/attachments/Theme1_Standard_TOC_Only.zip (I'll update my site with this new version later.)

  • Textarea: strange vertical scroll bar

    Hi, everyone
    I implemented textarea with JTextPane, code is below.
    The problem is that,
    when there is only one pane in the content of HBox, the vertical scroll bar runs normal;
    but when there is 2 panes, the vertical scroll bar changes between visible and invisible again and again.
    My code wrong? or a bug of JavaFX?
    Thanks.
    * TextArea.fx
    * Created on 2009-12-5, 22:27:47
    package morsshow;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import java.awt.Dimension;
    import javax.swing.JScrollPane;
    import javax.swing.JTextPane;
    import javafx.ext.swing.SwingComponent;
    import javafx.scene.layout.HBox;
    * @author icycandy
    var text: JTextPane = new JTextPane();
    var pane: JScrollPane = new JScrollPane(text,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS ,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    text.setText("youyouyouyouyouyouyouyouyouyouyou");
    text.setPreferredSize(new Dimension(500, 300));
    var text1: JTextPane = new JTextPane();
    var pane1: JScrollPane = new JScrollPane(text1,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS ,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    text1.setText("lovelovelovelovelovelovelovelovelovelove");
    text1.setPreferredSize(new Dimension(500, 300));
    Stage {
        title: "love you"
        scene: Scene {
            content: [
                HBox{
                    content:[
                        SwingComponent.wrap(pane),
                        //SwingComponent.wrap(pane1)
    }

    Hi,
    I've just used the following SQL statement to create a tabular form:
    select
    "EMPNO",
    "EMPNO" EMPNO_DISPLAY,
    "ENAME",
    "PHONE1",
    APEX_ITEM.TEXTAREA(5, PHONE2, 5, 50, 'style="overflow-Y:scroll"') "PHONE2"
    from "#OWNER#"."EMP"PHONE2 is a small field, so you probably won't be able to save anything, but this statement is used in: http://htmldb.oracle.com/pls/otn/f?p=33642:100
    Both in IE7 and FF3, the scroll area appeared on the right of the box.
    Andy

  • When I open gmail, I cannot use the vertical scroll bar.

    When I use the gmail website on firefox, the vertical scroll bar. As there is no horizontal scroll bar on the website, the vertical scroll bar layers over the top of the page resizer and makes the arrow button for the scroll unusable.
    Please advise.

    you may be connected to the wireless network but the question is the internet working properly on the wireless network...
    what i mean is that i can make a wireless network without the internet so i can save and share files and have other devices connected to the same network access them... but you have to make sure that your internet it running properly... may have to reconfigure the router is your using PPPOE or if it was working prior to your post then try to restart your modem... that usually resolves most issues.

  • JScrollPane - change vertical scroll-bar

    I am developing an application to be run on a touch-screen monitor. The customer has asked that I make the vertical scroll-bar on the tables easier to use. How do I set the width of the scroll-bar(s) in a JScrollPane?

    Do you want to set the width of all vertical scroll bars (and in that case, probably also the height of all horizontal scroll bars too) OR the width of one specific scroll bar of one specific scroll pane?
    db

  • Some Java-based websites missing vertical scroll bar

    Web site (http://www.addictinggames.com/dailyjigsaw.html) loads with no vertical scroll bar.
    == This happened ==
    Every time Firefox opened

    Hi
    Do you have 3rd party Glims installed? If so, make sure you have the latest version (v 20).
    I used to see the scroll problem more frequently. I haven't of late. Never determined what causes it, however older versions of Glims (since it alters Safari functions) may be one possible cause.
    Only workaround I've seen is to quit the tab in question, then reopen another tab and reload the page missing the scroll bar. Tabs ought to appear.
    If you don't have 3rd party add-ons, send feedback to Apple via the Safari Menu>Report Bugs to Apple.

  • At times when dragging the vertical scroll bar my computer screen oscillates up and down for some time before going blank or not responding to any clicks requiring a forced system restart. What is wrong?

    Hi,
    Suddenly while working with Firefox if I happen to drag the vertical scroll bar, a very abnormal behavior occurs. My screen dances up and down for a short time before either going black or getting restored but with no clicks working. The only way to resume is to force a restart of the system.
    Any help would be deeply appreciated.
    Thanks and Regards
    Deepak

    That didn't work. On trying to install a new driver I got the error the graphics driver could not find compatible graphics hardware. Is there anything else that can be done to at least prevent the hanging of the computer even if it means less features from Firefox being available?

  • Vertical Scroll bars in analysis - View all rows

    Users want to see the whole report displayed in one page with only a vertical scroll bar. They do not want the up/down arrows. Is this possible in OBIEE?
    Thanks.
    Ad

    To implement the solution, please do:
    1. Change instanceconfig.xml file in <biee11g_install>\instances\instance1\config\OracleBIPresentationServicesComponent\coreapplication_obips1 as following
    <Views>
    <Pivot>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager-->
    <DefaultRowsDisplayedInDelivery>75</DefaultRowsDisplayedInDelivery>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager-->
    <DefaultRowsDisplayedInDownload>2500</DefaultRowsDisplayedInDownload>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager-->
    <DisableAutoPreview>false</DisableAutoPreview>
    <MaxVisibleColumns>5000</MaxVisibleColumns>
    <MaxVisiblePages>2500</MaxVisiblePages>
    <MaxVisibleRows>500000</MaxVisibleRows>
    <MaxVisibleSections>5000</MaxVisibleSections>
    </Pivot>
    <Table>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager-->
    <DefaultRowsDisplayedInDelivery>75</DefaultRowsDisplayedInDelivery>
    <!--This Configuration setting is managed by Oracle Business Intelligence Enterprise Manager-->
    <DefaultRowsDisplayedInDownload>2500</DefaultRowsDisplayedInDownload>
    <MaxVisiblePages>2500</MaxVisiblePages>
    <MaxVisibleRows>500000</MaxVisibleRows>
    <MaxVisibleSections>5000</MaxVisibleSections>
    </Table>
    </Views>
    3. Note the new elements added are the following to both <Pivot> and <Table>, the Pivot part controls Pivot view, and Table part controls Table View, my testing was done with Table View.
    <MaxVisiblePages>2500</MaxVisiblePages>
    <MaxVisibleRows>500000</MaxVisibleRows>
    <MaxVisibleSections>5000</MaxVisibleSections>
    4. Restart Presentation Server from EM, then run your request, do excel export to verify.
    Thanks...

  • On every website, my right vertical scroll bar is missing and all of my Toolbar bookmarks unless I minimize the window, click "view" and "full page." How do i get it back to NORMAL?

    When I hit "full page" the right vertical scroll bar re-appears, but my bookmark toolbars, my bing bar, and pretty much the entire top 2 inches of my screen disappears. When all of these things are showing, the right vertical scroll bar disappears, and the entire webpage shifts to the right, so I can't see most of the right side of the page. How do I fix this?

    Welcome to Safari 6 with:
        .   .  t  .   .  a  .   .  b  .   .  s  .   . 
    That are the size of tractor-trailer trucks!
    There is no known way to get them smaller except when you get a lot they will "shrink-to-fit".

  • Adobe Reader move the vertical scroll bar from left to right

    Hi,
    is it possible to move the vertical scroll bar from left to right in Adobe Reader 9?
    If not, are you planning to implement this functionality?

    I meant from right to left, sorry
    You see, I'm left handed and when I use the scroll bar that is on the right side with the left hand I don't actually see the content of the page, because my left hand is covering the screen (I'm browsing the internet in tablet mode and I use the pen to navigate between pages).
    My system is a Tablet PC with Windows XP Tablet Edition 2005 and Adobe Reader 9.3.2.
    P.S. can you edit my post so the google indexes it right? (
    from right to left
    instead of "from left to right")

  • Want to remove scroll bar from navigation pane in Web Template

    HI All,
    I have a report created in WAD.When I am using navigation pane, I get a scroll bar there.
    I want to remove that scroll bar from navigation pane.Tried increasing the height in the property of same but nothing is helping.
    The expanded option should be ON and do not want to group characteristics shown in nav. pane.
    Please suggest, if there is any other way to do that.
    Thanks,
    Anu

    Why do you want to expand it? Generally when you click on Nav pane, it should show the assigned chars under it. No scroll bar comes up with  below settings:-

  • Removing the Vertical scroll bar from the content area.

    Hello,
    Is there a way to remove the vertical scroll bar from the content area?
    I am trying to create a new light portal frame work.
    Everything works fine except that I see two vertical scroll bars, one from the content area and another from the page(frame).
    Thanks in advance.
    -Sudheer

    Hi
    There are a couple of ways in which to achieve this
    1) Try and make the content flat. What I mean by this is that the content area (when using the standard light framework) doesn't contain an iframe, meaning that the iview defined on the page has "EMBEDDED" isolation mode. This should mean that you only have one scrollbar (if the content extends past the size of the browser)
    2) If you need to make the iview URL isolation, then try and get the domain of the content to be of a similar domain to your portal server, i.e. your portal is portal.company.com and the content is content.company.com. In this way you can make the pages expand.
    NOTE: One thing to note is that when using URL isolation iviews doesn't allow the automatic expanding of the iframe content. This is because the standard javascript doesn't allow this. Therefore you may have to write your own javascript function (or content area page) to do this
    I hope this helps
    Darrell

  • Remove vertical scroll bar from table control

    hi,
    i had used table control in my application. i want remove vertical scroll bar from table control.
    At initial time in table control there is no vertical scroll bar. In my table control lines are dependent on internal table which i was used to fill it.
    i was used these code for to set table control lines.
    DESCRIBE TABLE IT_RISK_ZINRISEXC LINES EXC_LINE.
    TC_RISK_EX-LINES =   EXC_LINE .
    Initially there is no data in internal table so there is no vertical scroll bar. After getting value i am filling internal table. and there is scroll bar in my table control. but i does not want that.
    i was not selected RESIZING-VERTICAL OR -HORIZONTAL.

    Hi,
    From Scroll Bars in Table Control
    You can remove the scroll bar in the table control by switching off horizontal and vertical scrolling in the properties of the table control. The properties can be accessed from the screen painter by double clicking on the table control. Regarding the page up and page down functions, I believe you add those buttons in the screen layout and code for them. You can use the standard function code for the page up and page down functions.
    or
    You can get rid of the vertical scroll bars by not setting table control lines. This way the user can only see the visible lines of the table control. As for the horizontal scrollbar, just make sure that your table control doesn't contain too many fields.
    Regards,
    Raj.

Maybe you are looking for

  • Changing thumbnails to full screen viewing

    Hello     When I double click on a jpeg thumbnail image in iPhoto to view full screen, the full screen version will not appear. It starts to appear but then what ends up showing is a exclamation mark with a grey background. This happens with all of t

  • How do I remove the white Padding line atop page?

    Hi folks, I made this quick and dirty temporary page for a friend using the blank all black template. For the life of me I don't know how to remove the white line that appears at the top and shows when viewing the page in any browser. The line is con

  • Can't run Pages (or iWork '08 apps) from external drive

    My MacBook Pro is back at Apple for repair, so I created a bootable clone of that machine's hard drive to an external hard drive. While I can boot from that drive on another MacBook, none of the iWork '08 apps will run. They start up, show a menu bar

  • Custom size in the photo collage

    Hello, I would like to create a wallpaper in 2560x1440px. When I try to make a photo collage there are only 3 different sizes I can choose. How can I add a custom size? Thanks for your help.

  • Downloaded book on iPhone didn't sync to iPad

    Hi,  I downloaded a book through iBooks onto my iPhone 4S.  For some reason it didn't sync with my iPad 2 thru the Cloud.  Any tips?  Thanks!