Can't see the horizontal scroll bar in the scroll pane.

Hi there,
I have created a JScrollPane object for a JTable. Using the code below, I am trying to create a horizontal scroll pane for the JTable object but the horizontal
bar doesn't move at all. this is the code. Also when I create the horizontal bar as "AS_NEEDED" the horizontal bar does not appear. The vertical bar works
properly. Can someone help me with this please.
This is the Code:
loadTableScrollPane = new JScrollPane(getLoadTable()); //"getLoadTable()" return a JTable object.
loadTableScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
loadTableScrollPane.setViewportView(getLoadTable());
loadTableScrollPane.setBounds(new Rectangle(5, 149, 1135, 232));

alisadri wrote:
Hi there,
I have created a JScrollPane object for a JTable. Using the code below, I am trying to create a horizontal scroll pane for the JTable object but the horizontal
bar doesn't move at all. this is the code. Also when I create the horizontal bar as "AS_NEEDED" the horizontal bar does not appear. The vertical bar works
properly. Can someone help me with this please.
This is the Code:
loadTableScrollPane = new JScrollPane(getLoadTable()); //"getLoadTable()" return a JTable object.
loadTableScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
loadTableScrollPane.setViewportView(getLoadTable());
loadTableScrollPane.setBounds(new Rectangle(5, 149, 1135, 232));
Just a wild guess ... because you do need to post a real example - but get rid of the setBounds and setPreferredSize and use pack() on the frame.

Similar Messages

  • How can I get a scroll bar at the bottom of the page so I can see the right side of the page when I am using two windows?

    With two or three pages open, I have scroll bars that allow me to see the right side of the other pages, but not on the Firefox page.

    Thank you for the reply, Fred, but when I went to my saved screenshot, I realized that the shortcut on my desktop had opened in IE, not Firefox. There is no scroll bar and the directional arrows do not work. My daughter has been playing with my laptop again. When I set up the same conditions with Firefox, there is no scroll bar, but the arrows function properly, so I can read to the right edge of the page. Now to find someone who knows IE11. Thanks again, for your reply.

  • No horizontal scroll bar on the Jtable. In order to see long column.....

    No horizontal scroll bar on the tJable.
    In order to see long cell data we have to eliminate other columns of the table.
    I need an horizontal scroll bar on the JTable if the data in a cell is longer.
    Could somebody help me out?
    Thanks in advance.

    in the jtable use following method :
    myTable.setAutoResizeMode(this.AUTO_RESIZE_OFF);
    KR,
    Jan

  • Set the horizontal scroll bar for the OOTb document library view

    hi all,
     Am facing an issue in my sp portal.We have designed and developed the portal with OOTB document library views for site columns also. Going to enable the doc lib view. but  we have some  35 columns in eeacha nd every document
    library within our sub site. But if an end user wants to see the last column then he needs to scroll. but, since  then my master page has fixed width, the top corner will be seen as blank. would like to know how can we set horizontal scrolling
    in this doc lib view .
    Das

    Hi,
    According to your description, my understanding is that you want to set the horizontal scroll bar for the document library when the last column postion exceed the fixed width.
    I suggest you can try to use Jquery to set the width attribute of the menu bar dynamically if the document library width exceeded. You can add the Jquery or CSS style using SharePoint Designer under the PlaceHolderMain tag of document
    library page. Also, you need to find the div id in your environment using Internet Explorer.
    More information:
    http://sharepointpromag.com/sharepoint-development/sharepoint-branding-101-branding-master-pages
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Horizontal scroll bar for the adf page

    Hi,
    We have around 7 tables in single jsff page. Here , we have a requirement like :
    We need to show horizontal scroll bar for the entire page instead of each table. Is there any way to get this.
    As of now, we have horizontal scroll bar for each table, but our customer is not accepting this, that want the scroll bar for the entire page.
    Please suggest the approach.
    Thanks

    I have grouped all the tables in panelgrouplayout.So, what is the problem (because it is not quite clear what you need)?
    If your PanelGroupLayout is with layout="horizontal", then the tables will be rendered next to each other horizontally but there will be no horizontal scrollbar on the page.
    If your PanelGroupLayout is with layout="scroll", then the tables will be next to each other vertically and there will be a horizontal and a vertical scrollbar on the page (if necessary).
    If you need your tables to be relocated next to each other horizontally and to have a horizontal scrollbar on the page, then use a PanelGroupLayouts(horizontal) inside a PanelGroupLayout(scroll):
    <af:panelGroupLayout layout="scroll">
      <af:panelGroupLayout layout="horizontal">
        <af:table> ... </af:table>
        <af:table> ... </af:table>
        <af:table> ... </af:table>
      </af:panelGroupLayout>
    </af:panelGroupLayout>If your problem is that you still have horizontal scrollbars inside the tables, then you should set appropriate widths to the corresponding tables (e.g. to <af:table> tags) such that they are large enough to fit the sum of corresponding column widths.
    ya, I know that its not god design, but its customer requirement, so we need to do that.If you expect some table(s) to be stretched automatically according to the size of browser's window, then you should re-think your UI design because PanelGroupLayouts do not stretch their children. A possible solution is to use a combination of PanelSplitters or other layout containers that stretch their children.
    Dimitar

  • Umwanted horizontal scroll bar at the bottom of the screen

    Hello,
    Our application is a plug in to the Solution Manager Workcenter. The initial screen of the application
    contains two tables, one below the other.
    The ROOTUIELEMENTCONTAINER has a matrix layout, and both the tables' layout has been set to MatrixHeadData. Width of all has been set to 100%, and the 'stretchedHorizontally' property has been enabled.
    However, I am getting a scroll bar at the bottom of the screen which is unwanted. Please suggest a way in which I can get rid of this annoying scrollbar, so that the tables are contained within the screen.
    Thanks!
    Shalini.

    scrollbars at the bottom of the screen only appear if the contents of the screen pass the right border.
    the 100% width isn't going to change this. It only defines that the table must take at least 100% of the screen, but if it needs more, it will take more.
    In other words:
    remove unnecessary columns to be able to keep your contents inside the screen.
    btw:
    if someone else works with a smaller resolution, he will have the scrollbar anyway.

  • Can i put the scroll bar on the left hand side of the page

    i am left handed and using a touchscreen asus and would like to get the scroll bar on the left

    Hi!
    Yes, you can!
    # Type "about:config" (without quotations) in the urlbar and hit Enter
    # Search for "layout.scrollbar.side" (without quotations) variable
    # Double click on that
    # Modify the value to "3" (without quotations)
    # Click Ok
    # Restart Firefox

  • The scroll bar on the right is gone. the only way i can move the screen up or down is by using the arrow keys.  happened after i updated software is there something i missing

    The scroll bar on the right is gone  the only way I can move the screen up or down is with the arrow keys  Why how do i get it  back and have it stay there

    Yep. For all us spreadsheet geeks, this is a real sinker. Anyway, here's my workaround. Not free, unfortunately. I have a macro program called QuicKeys installed on my Mac that I've used for countless years, and  which I highly recommend for other reasons. Anyway, one of QuicKeys' many features is simulating a scroll wheel using the keyboard. I have it simulating a cell-by-cell scroll using cmd-arrow keys. The only drawback is that I have to release the cmd key each time I want to move another cell.

  • How can i make the popup window have scroll bar when the content is long?

    Hi,
    My page have a button, when click it, it will show a popup window, and invoke a taskflow.
    <af:commandToolbarButton text="edit"
                                             icon="#{sdk_EmImageMap.toolbar.editCommand.icon[true]}"
                                             disabledIcon="#{sdk_EmImageMap.toolbar.editCommand.icon[false]}"
                                             id="edit"
                                             binding="#{pageFlowScope.procBean.editBtn}"
                                             action="dialog:edit" immediate="true"
                                             partialSubmit="true" useWindow="true"
                                             windowEmbedStyle="inlineDocument"
                                             windowHeight="400" windowWidth="750">
    And the page in the taskflow is :
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:c="http://java.sun.com/jsp/jstl/core"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
       <jsp:directive.page contentType="text/html;charset=UTF-8"/>
       <f:view>
          <af:document title="#{pageFlowScope.procStepEditor.pageTitle}"
                       id="document">
             <af:form id="f1">
                <af:panelStretchLayout id="pgl1" topHeight="10%">
                   <f:facet name="top"/>
                   <f:facet name="center">
                      <af:panelStretchLayout id="psl1">
                         <f:facet name="center">
                            <af:panelGridLayout id="pgl3">
                               <af:gridRow marginTop="5px" height="auto" id="gr1">
                                  <af:gridCell marginStart="5px" marginEnd="5px"
                                               width="100%" halign="stretch"
                                               valign="stretch" id="gc1">
                                     <af:panelBox text="panel 1"
                                                  id="pb1"
                                     </af:panelBox>
                                  </af:gridCell>
                               </af:gridRow>
                               <af:gridRow marginTop="5px" height="auto" id="gr2">
                                  <af:gridCell marginStart="5px" marginEnd="5px"
                                               width="100%" halign="stretch"
                                               valign="stretch" id="gc2">
                                     <af:panelBox text="panel 2"
                                                  id="pb2">
                                     </af:panelBox>
                                  </af:gridCell>
                               </af:gridRow>
                               <af:gridRow marginTop="5px" height="auto" id="gr3">
                                  <af:gridCell marginStart="5px" marginEnd="5px"
                                               width="100%" halign="stretch"
                                               valign="stretch" id="gc4">
                                     <af:panelBox text="panel 3"
                                                  id="pb3">
                                     </af:panelBox>
                                  </af:gridCell>
                               </af:gridRow>
                            </af:panelGridLayout>
                         </f:facet>
                         <f:facet name="bottom">
                         </f:facet>
                      </af:panelStretchLayout>
                   </f:facet>
                </af:panelStretchLayout>
             </af:form>
          </af:document>
       </f:view>
    </jsp:root>
    And in panel 2, the content is added dynamically, so it cannot control the width. Once it is very long, then the UI will not show all the data in panel2, and panel 3 also cannot display.
    So i want to the window have a scroll bar. How can i do this?
    Thanks.

    Hi Timo.
    Thanks for your replies.
    I change the panel 2 like this:
    <af:gridRow marginTop="5px" height="auto" id="gr2">
                                  <af:gridCell marginStart="5px" marginEnd="5px"
                                               width="100%" halign="stretch"
                                               valign="stretch" id="gc2">
                                     <af:panelBox text="panel 2"
                                                  id="pb2">
    <af:panelGroupLayout id="pgl4" layout="scroll>
    </af:panelGroupLayout>
                                     </af:panelBox>
                                  </af:gridCell>
                               </af:gridRow>
    But it still cannot display a scroll bar for the panel 2.
    Thanks.

  • I've upgraded to 13.I can't see fonts in search bar & tabs.Please help.If u need screenshots,please share me the site of image sharing.Thanks!

    I've upgraded to 13.I can't see fonts in search bar & tabs.Please help.If u need screenshots,please share me the site of image sharing.Thanks!
    [http://www.flickr.com/photos/80001361@N06/7346073414/in/photostream http://www.flickr.com/photos/80001361@N06/7346073414/in/photostream]

    Looks like a font problem.<br />
    Firefox seems to be using a font that isn't working properly.
    Try this solution: [[/questions/927322#answer-336404]]

  • How do I resize so that I can max and minimize the page again. I clicked on something and now can not see the ubuntu menu bar at the bottom of my screen while browser is openj

    I cant resize, minimize/maximize because the top bar of the browser has disappeared and the browser window now occupies my entire screen, I can no longer tab back and forth using the ubuntu menu bar at the bottom of the screen. I have to pull down from File to quit, there is bar at the top that I can click on with my mouse. I did this accidentally and rather quickly by clicking with the mouse on something late last night, and I can't correct or even find out what I've done

    My home page background has a design on it. How can I change it back to its original plain background.

  • Vertical scroll bars remain the older OSX pill type (pre 10.8) in Firefox on OSX 10.9. How can I fix this?

    The Firefox installation on my iMac (2009) spans at least 3 operating systems. I recently updated to OS X 10.9 from 10.6.x but the scroll bars in Firefox are not the default OSX 10.9 but the older 10.6 ones. There are 4 other users on this computer and their scroll bars are the correct ones. Resetting my profile and full re-install has not corrected this problem. I have used Firefox since OSX 10.2 and transferred my profile from an older Mac to this iMac some time ago. This is probably some bit of code or style or something from some theme that was installed under 10.6 or earlier that needs to be removed. I have not tried the nuclear option of completely deleting my profile and hunting down every preference related to Firefox or Mozilla in my account. This is not so much a problem as an irritation.

    Thanks for the suggestion, but no go. Some bit of an old Mozilla/Firefox theme or some other 3rd party OSX utility is stuck somewhere. Like I said, more an irritation than a problem, doesn't effect the performance of the browser--its just weird.

  • Enabling the scroll bars of the  iView

    Hello all,
    I am creating one portal application which consists of 5 iView and my aim to have all the iViews completely visible on the screen at all the times and make use of the vertical and horizontal scrollbars to allow the user to see the additional data.
    So my question is How to enable the vertical and horizontal scroll bars of the iViews. I have tried this by setting <b>Isolation Method</b> of the iView to <b>"URL"</b> but doing the same i was not able to pass the events from one iView to another.
    Can you suggest me another way of enabling the scroll bars to iView.
    Thanks in advance,
    Prashant

    Hi Prashant,
    There are some other ways for achieveing the same:
    1. Define new Page Layout with 8 blocks of same size as per your requirement, and then place all the iviews in that, one per block. These changes need to be done in PAR file of framework page. (A bit time consuming)
    2. Add iViews to pages such that one page contain one iview. Add all these pages to one page and then set page properties to display every apge completely like page height as full page.
    3. iView height can be kept fixed and then all scroll bars will start appearing.
    This might help you.
    Regards
    -Kedar Kulkarni
    reward if useful

  • Adding a scroll bar to the legend in flex 4

    How can i add a scroll bar to the legend in Flex 4?
    I am to scroll the bars in the bar chart but i am unable to scroll the legend items.
    Can anybody help me out as soon as possible?

    Hello,
    The feature you are looking for is not there in Adobe Muse.
    I would suggest you to post this as a feature request on our "Ideas for features in Adobe Muse" section of the forums : http://forums.adobe.com/community/muse/ideas
    You might see this feature in future releases of Adobe Muse.
    Hope this helps.
    Regards,
    Sachin

  • 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

  • Table Grid resizing,How to avoid getting scroll bar in the browser

    Hi All,
    Requirement is to enable Grid Resizing feature in the Table UI element. The table will have  approx 12-30 columns
    For providing this feature on the table UI element, we have set the following properties
    'ScrollableColCount' Property of table UI is set to -1.
    'Resizable' property of each column is set to true.
    This will remove the scrollbar at table level and all the columns will be shown on the screen at one time.
    Problem encountered:
    1. Horizontal  scroll bar will be introduced on the screen.We tried giving width in pixels  to individual column grid but unable to eliminate this scroll bar in the screen.   
    2. Also the resizing properties modified for a table grid will be applied on the similar task screen having table UI element.
       For Example: In GP Workflow,if USer1 holds 2 task(Task A and B) of an application. If he resizes the column of the table in A task then these changes will be reflected in the B task table UI also.
    Please provide pointers on this.
    Thanks and Regards,
    Pradeep

    Hi,
    In table set tablecellEditor wrapping property to true,by default its false.
    By this you can get value in many rows(per row size is depend on whatever u have given for column width).
    this way you can avoid scroll bar.
    Regards
    Trilochan

Maybe you are looking for

  • How to control pop ups on a per web site basis using Safari 7.0.1?

    rMacbook Pro late 2013 maxed out with the 512gb SSD.... 16gb ram, nVidia GT750m, SuperDrive, and Lacie external 1Tb Rugged Thunderbolt/USB 3.0 for Time Machine and 300GB for DATA out of it. Having been a windows user all my life I am generally real r

  • Payment Card Merchant ID could not be determined

    In the CRM WebGUI, when I go to an In-House Repair --> payment method --> new  and I enter in my credit card data I get the error "For OrgUnit and card VISA, no merchant ID could be determined."  The details of this error show the following: System R

  • Package javax.persistence does not exist

    Hi, I'm a beginner on Weblogic, sorry my so simple and basic question (and my bad english). But I'm trying to build the weblogic examples ("ant build", as the documentation says) and got error messages like this: Buildfile: build.xml clean: init: [mk

  • Trouble compiling java files inside the packages.

    Hello I have a question in Java when compiling with packages. Can anyone Help?? My 2 java files BeerSelect2.java & BeerExpert.java are in packages com.example.web & com.example.model respectively. C:\MyProjects\beerV1\src\com\example\web\BeerSelect2.

  • How to count a particular character in a column ??

    I am facing a probem while intergrating a module, we have a column in which user inserts conditions like 1.asd.2.err.3.errr..etc..now my requirement is that i need to count the number of conditions made in this particular column . Can anyone please s