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

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);

  • 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?

  • 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.

  • 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".

  • 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 &quot;Vote As Helpful&quot;! And whenever you see a reply being an answer to the question of the thread, click &quot;Mark As Answer

  • 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")

  • 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.

  • Text editing window expands instead of creating vertical scroll bar

    In the last few days, I have noticed that when I try to edit or post to Wordpress.com the vertical scroll bar no longer appears on the text editing box. Instead the box just gets progressively larger which makes it very difficult to get to other items on the WordPress editing screen, such as tags and categories. This problem seems to have arisen during the v31.0 auto-upgrade. Is anybody else having this issue and what steps can I take to solve it? (FYI, I tried modifying the setting described in another response about a similar issue using the about:config screen, with no success.)

    I don't know whether your dashboard has the "Visual" and "Text" buttons, but I believe the Visual uses CKEditor or another WYSIWYG editor and the Text editor might be a simpler design. Are both affected?
    I searched around to see whether I could find Wordpress.com support threads or other stories about it and I can't. So I'll fall back on some general suggestions:
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    "3-bar" menu button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site:
    * right-click and choose View Page Info > Security > "View Cookies"
    * (menu bar) Tools menu) > Page Info > Security > "View Cookies"
    In the dialog that opens, you can remove WordPress.com cookies without affecting other sites.
    Then try reloading the page. Does that help?
    To rule out extensions as a possible culprit, could you try the site in Firefox's Safe Mode? That's a standard diagnostic tool to deactivate extensions, some advanced features, and some custom settings. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using either
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * (menu bar) Help menu > Restart with Add-ons Disabled
    Note: Flash and other plugins still run
    After Firefox closes, a small dialog should appear: click "Start in Safe Mode" (''not'' Reset)
    Any difference?

  • TileList does not recognize the size of vertical Scroll Bar

    Hi,
          I have a tileList with a custom vertical scroll bar that I made, the problem is that when the tilelist gets filled, it does not recognize that the vertical scroll bar width is not the default 16 pixels (I think the default value it's 16, but I'm not really sure) but 5 or 6 pixels, so the first time it gets filled it shows 3 columns of items (no problems with the rows). The columnWidth is set to 185, if I lower it to 180, it shows the 4 columns that I want it to show (instead of 3). I know that there is enough space because when I scroll down, and then scroll up, the fourth column appears. That's why I think that the TileList is not recognizing that the width of the vertical scroll Bar is less than the default width.
    Does anybody know how to make it recognize the new width? And how is  it that it has to take a scroll down to get it to recognize it.
    Thank you for your help.
    Sebasti'an Toro O.

    Yeah, you can try signing up for DropBox - it's a free service that allows you to sync any files between your iPhone and your computer.  More info here:  http://www.dropbox.com/about

  • Component on page not moving as vertical scroll bar is moved

    All -
    I have a mxml page that is a mx:Application.  This page basically consists of a VBox
    and a number of components included within that VBox.  All but 1 of the components
    within this VBox are built-in flex components.  The one component that is not a built-in
    flex component is the one that is causing me issues.  The issue is happening when I run
    the application, once running the vertical scroll bar appears on the right-hand side of the
    page (as expected because I have quite a few items in my VBox).  The problem is that as
    I drag the vertical scroll bar from the top of the page to the bottom of the page, the custom
    component within my VBox that I built is staying put (it's not moving with respect of the
    movement of the vertical scroll bar).  All of the built-in flex components that are within my
    VBox are moving with respect of the movemnet of the vertical scroll bar as expected.
    I appreciate any information that you can provide that will lead me in the right direction,
    Thank you,
    Wes

    // THIS IS THE CUSTOM COMPONENT

  • Problem getting vertical scroll bar in tree

    Hi,
    I am adding nodes to a tree control dynamically. But somehow,
    a vertical scroll bar doesn't appear during the process. I guess,
    somehow, the tree is not able to detect the change in the height,
    hence, is not giving the vertical scroll bar. However, after a node
    has been populated with the sub-nodes, when I close that node and
    re-open it, then the scroll bar appears. I really need to fix it as
    soon as possible. Plz help!
    Thanks in advance,
    Cheree

    Seems like Flex 4 is working fine:
    This is the updated code working on Flex 4.6 using XMLCollection:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" applicationComplete="application1_applicationCompleteHandler(event)">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                import mx.collections.XMLListCollection;
                import mx.controls.Tree;
                import mx.events.FlexEvent;
                import mx.events.TreeEvent;
                [Bindable]
                public var treeData: XMLListCollection=new XMLListCollection();
                private var hasRun: Boolean = false;
                //finalSrcList is the ArrayCollection that has value objects returned from data base by a remote object.
                public function populateTree(event:TreeEvent): void{
                    if (hasRun == false){
                        hasRun = true;
                        var parentNode:XML=event.item as XML;
                        var temp:XML;
                        var i: int;
                        var finalSrcList: ArrayCollection = new ArrayCollection();
                        // Prepare source list
                        for (i=0; i<10; i++){
                            var item = new Object();
                            item.attribute1 = "attribute " + i.toString();
                            item.attribute2 = i.toString();
                            finalSrcList.addItem(item);
                        for(i=0;i<finalSrcList.length;i++){
                            temp= <node label={finalSrcList[i].attribute1} id={finalSrcList[i].attribute2} isBranch="true"/>;
                            event.currentTarget.dataDescriptor.addChildAt(parentNode,temp,0);
                protected function application1_applicationCompleteHandler(event:FlexEvent):void
                    var rootItem: XML;
                    rootItem = <root label="root" id="1000">
                        <node label="level1" id="2000" isBranch="true"/>
                        </root>;                                   
                    treeData.addItem(rootItem);
            ]]>
        </fx:Script>
        <mx:Panel width="600" height="250" paddingBottom="20" paddingLeft="20" paddingRight="20" paddingTop="20"
                  verticalAlign="middle" horizontalAlign="center">
            <s:Label>
    This is using XMLCollection
            </s:Label>
            <mx:Tree id="funcTree" height="100%" width="100%" dataProvider="{treeData}" labelField="@label" showRoot="false"
                     itemOpen="populateTree(event)" />       
        </mx:Panel>                  
    </s:Application>

  • Focus vertical scroll bar in report div

    Hi everyone,
    I just want to know if the issue has been resolved by someone :
    I have a report within a div and a vertical scrolling bar to scroll the rows. When I click on a row of the report the row is highlighted. Now, if the clicked row is at the end of the report, the scrolling bar goes up, and the user has to scroll down to see the selected row. So how to focus this scrolling bar once the user clicks on the row ?
    I guess I have to compute the id of the selected row times the row height and send this value to the css parameter of the scroll bar (but AFAIK there's no such parameter in css for positioning a scroll bar) ... Someone has came up with a solution ?
    Best regards,
    Othman.

    Thanks a lot Andy,
    I didnt' know about the scrollTop attribute. So for those how are interested : Each time I click on a row, I store the scrollTop position in a Hidden field. On each body onload, I call a javascript function to position the scroll bar of the div like this :
    getElementById.("mydiv").scollTop = html_GetElement('P1_SCROLL_ID').value;
    Regards,
    Othman

Maybe you are looking for