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

Similar Messages

  • Getting a horizontal scroll bar in the DHTML_SHUTTLE

    Hello,
    We are currently using Carl's DHTML_SHUTTLE procedure to display some shuttles.
    I have a problem where the data is longer than the width of the shuttle and was wondering if it is possible to implement a horizontal scroll bar so that the user can see it?
    Thanks,
    Paul

    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.

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

  • 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

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

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

  • Horizontal scroll bar is in JTable

    I am doing following code to set horizontal and vertical scroll bar to Table. vertical is working nicely but horizontal is not added to table and all colum of table got shrink and hardly visible. so i want to set horizontal scrollbar as needed.
    how can that possible. looking for response
    mTable.setPreferredScrollableViewportSize(new Dimension(TABLE_WIDTH, TABLE_HEIGHT));
    mTable.setRowHeight(TABLE_ROW, TABLE_ROWHEIGHT);
    mTable.getTableHeader().setResizingAllowed(false);
    mTable.setGridColor(Color.darkGray);
    mTable.getTableHeader().setReorderingAllowed(false);
    mScrollPane = new JScrollPane(mTable);
    mScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    mScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
    Message was edited by:
    Prashant_SDN

    that looks odd. what is wrong in this case
    Nothing's wrong. The columns all start up with the same default width.
    If you want it fitted to width on being shown and then become adjustable then you should invoke that change in a listener which executes when the component is shown (the reliable way to do this is use a HierarchyListener which checks isShowing() and then executes if that's true, then deregisters itself).

  • There is no horizontal scrolling bar on the bottom of my Final Cut Pro 10.1.2. Please Help!

    I normally see a horizontal bar that allows scroll through your project. Once I updates it's been missing! Hellppp!

    In addition to the good information and advice already given: looking at the screenshot, it is a safe bet that you are on a laptop. I work on a MacBook Pro every day and I hardly touch on scroll bars, and I haven't in maybe ten years. Why? Two finger scrolling. It is so much more effective and ergonomic than reaching for the scroll bar. Just put two fingers on the trackap and drag.

  • How to get the Horizontal Scroll Bar for a Table?

    Hi All,
    As per my requirement, I am displaying several records in a Screen in a Tabular Format. But here I have to show 21 Columns in that table which is too high. I am able to display it but due to it I am getting a Horizontal scroll bar for the whole screen since all the columns are not getting displayed in the normal window screen space. But its looking too odd since once I am scrolling it to right the columns are getting displayed but the above Header Bar and Global buttons are not displaying, they are bound to the normal screen space.
    Is there a way to have a Horizontal scroll bar only for that table instead of the entire screen so that on scrolling that bar only the table rows will beshifted ant got displayed?
    With Thanks
    Kumar Gautam

    try this approach.
    include a raw text item before and table item.
    include the appropriate HTML tags in raw text item to enable horizontal scroll
    --Prasanna                                                                                                                                                                                                                                                                                                                                   

  • Horizontal Scroll Bar does not show

    I have a method which creates a table with values and displays it in a dialog. However, the horizontal scroll bars do not appear, even though there is are columns that are not seen in the view. Here is my code:
         private void setTable()
              Object columns[] = headerLST.toArray(),
                        rows[][] = new Object[rowLST.size()][headerLST.size()];     
              for(int x = 0; x < rowLST.size(); x++)
                   java.util.List list1 = (java.util.List)rowLST.get(x);
                   for(int y = 0; y < list1.size(); y++)
                        rows[x][y] = (String)list1.get(y);     
              DefaultTableModel tValues = new DefaultTableModel(rows, columns);
    JTable tableA = new JTable(tValues);
         tableA.setRowHeight(27);
                   tableA.setRowSelectionAllowed(false);
                   tableA.setColumnSelectionAllowed(false);
                   tableA.setFont(new Font("Dialog", Font.BOLD, 12));
              int minColWidth = 120, maxColWidth = 200;
              for(int y = 0; y < tableA.getColumnCount(); y++)
                   TableColumn tbc = tableA.getColumnModel().getColumn(y);
                   tbc.setPreferredWidth(minColWidth);     
                   tbc.setMinWidth(minColWidth);
                   tbc.setMaxWidth(maxColWidth);
              scrollA = new JScrollPane(tableA);
              this.getContentPane().add(scrollA, BorderLayout.CENTER);
    Can someone tell me what I am missing?
    Thanks
    Augustine

    You need this
    tableA.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    otherwise it will always try and fit the table to the space available

  • Can horizontal scroll bar be removed?

    The listbox controls have horizontal scroll bar that can not be removed by property notes. Is there a way to change it to invisible? Also how do I change the controls from raised or recessed to flat? Thank you for your help.

    The only listbox with a horizontal scroll bar is the multicolumn listbox and it does have a property node to remove it or display it. In 8.5, the property is Visible Items>Horizontal Scrollbar Visible.
    There are modern controls, classic controls, and system controls on the palette. Pick the one you want or right click on an existing one and select 'Replace'. You can also right click and select Advanced>Customize.

  • Horizontal scroll bar in tabular form with columns freeze

    Hi All,
    I have a requirement where i have to create a tabular form in which the first three columns should be in freeze mode and it should have a horizontal scroll bar.
    with the help of Google i found an example [http://apex.oracle.com/pls/otn/f?p=267:46]
    I want the same thing as in the example but with first three columns in freeze mode
    But could not find out how to create this column freeze and horizontal scroll bar.
    Let me know if you have any idea on this
    Thanks in advance,
    Ananth

    Hi,
    It is easy to look at the page source and see what they have done
    if you search for var d1 = document.getElementById("d and d1 you see some javascript doing the magic.
    Thanks

  • Horizontal scroll bar moves with page up/down

    I'm new at this and apologize if I don't have the right forum, but can't find any reference to my problem anywhere. A month or so ago the horizontal scroll bar at the bottom of the screen started moving up or down with the page as I used the vertical scroll bar to page up or down. The bar partly disintegrates if I click on it, but mostly remains in place and obscures text on that line. If there is more than one page I can make the bar disappear by scrolling the to the next page, and then back. This happens only when I'm on the internet, and appears in news pages ( e.g. NY Times, BBC) and on my e-mails (I use Hotmail). I have a Mac mini, 1.66 GHz, OS 10.4.11, all other updates offered by Apple. I'm sure this is not a Safari problem, and my searches for Apple viruses, Trojans, Worms, has found nothing about this (there are discussions about vertical scrolling, but these don't seem to relate to my problem). So can anyone tell me what this is and how to get rid of it? Thanks for any help. TJ Wont

    I've got the same problem. It started when the BBC introduced adverts onto their News website. As the page loads an advert (or sometimes whitespace) appears between the tab and the BBC News banner. This is then shifted to the right hand side when the page fully loads.
    I suspect that there's some fancy DHTML going on that Safari isn't rendering properly.
    Problem doesn't occur if the Safari window is maximised to full screen width.

  • REG:: Horizontal scroll bar for pdf

    Dear All,
    I am displaying data in a table in Portal and this table has 13 columns in it. I am writing all this data from the table to a PDF and I am able to generate a PDF. 
    This generated PDF clips the data on the right side, i.e. it shows few columns only.
    I need to have the horizontal scroll bar for the generated pdf output file.
    Can anyone guide me how to achieve this.
    Regards,
    JayPal.

    hi pal,
    refer this help
    http://help.sap.com/saphelp_webas630/helpdata/en/3f/c0ae3dacbff972e10000000a114084/content.htm
    bvr

  • Horizontal scroll bar in bookmarks manager

    FF 29.0.1 win7x64
    there is a vertical scroll bar in the bookmarks manager but no horizontal, which squashes all of the bookmarks names, urls, dates.. on my low res screen.
    Is there a way to add a horizontal scroll bar to the bookmarks manager so that i could make the
    columns wider. Maybe an extension?

    https://addons.mozilla.org/en-US/firefox/search/?q=scrollbars
    '''[https://addons.mozilla.org/en-US/firefox/addon/noiascrollbars/ NewScrollbars (aka NoiaScrollbars)]''' {web link}
    The "NewScrollbars"-extension replaces the default
    scrollbars of Firefox and Thunderbird with
    colorized ones (partly) known from "Noia themes".

Maybe you are looking for

  • Apple TV - iTunes Store Password

    My Apple TV continues to request my password, even though it's correct. What do do?

  • Is it possible to pass value between iView in a Workset?

    Dear all, I created 7 dashboards using VC 7.0. Each dashboard has his own model and iView. I like to add reports(iViews) for each dashboard so there is a list of reports on the left (detail navigation) column for each dashboard.  I created a workset

  • OCI Drivers in JDBC receiver

    Hi All, Brief Scenario: Insert data to CLOB field (source field may be more than 4000kb). Requirement to use OCI drivers in JDBC receiver adapter. When calling Stored Procedure to insert CLOB data field, exception thrown by AE or Oracle server: Messa

  • Inaccessible items - builder's black holes

    Hi folks, There are places in this splendid product where you just can't get what you need. The HTMLDB app itself has reports with a arbitrary maximum rows and no pagination. Hmm. So: 1 - if you use a lot of app-level items (as I do, it's a non-trivi

  • SEND FROM works randomly

    Hi there! Exchange 2010 sp3 Outlook 2010 Two domains in different sites. A domain user in SITE1 and DOMAIN1 has an mailbox on SITE2 DOMAIN2. He is chosing to send from distribution group on SITE1 and DOMAIN1. Sending mail randomly works. Sometimes it