JTable: AUTO_RESIZE_OFF for Scrollbar, but fitting table in Container?

Hi!
I have a Panel extended from a JScrollPane and a JTable in it. I have set it to AUTO_RESIZE_OFF, because I want to have Scrollbars if the value in the column is larger than the view.
How can I achieve it to resize the table if the window was resized?
Thank you all for your postings.
Regards, Robert

Works fine for me:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=623692
If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

Similar Messages

  • I'm trying to install Word for Mac, but it doesn't contain enough memory.  Any suggestions?, I'm trying to install Word for Mac on my 10.7.4, but there isn't enough memory.  Any suggestions?

    I need to install Word for Mac on my MacBook OS X Lion 10.7.4, but there are two problems:  1)  Microsoft sells only Office, not the individual programs, and 2) I don't have enough memory to do so (2 GB).  Any suggesions?  I'm currently using Pages, and it's worthless.  Should I install more memory and buy Office for Mac?  Is there another decent word processing program (preferably downloadable) that will convert my documents to Word?
    Thank you so much for your help and suggestions! 

    I woud buy a 4 GB RAM package and install it.  RAM is cheap these days and the additional RAM would also improve the performance of your other programs as well.  I have used MS Office for Mac as well as other free downloads, i.e., Open Office and Libre Office.  I have found that Open Office anf Libre Office perform just as well as MS Office and, because they are a free download also save you money.  Another advantage is that they also contain a database, which MS Office doesn't have.  They allow you to save files in MS format as well as standard text format.  I ave also used Pages and feel it is satisfactory, although a little clunky to use.  If you feel MS Office is the only program for you, then buy it and install it.  You really should consider adding the additional RAM as it will improve the performance of all your applications.

  • I just bought a MBA and I need to move my photos and itunes to an external hard drive (from my old MacBook Pro) because they won't fit on the Air.  I got the photos moved fine and I followed an online tutorial to move the necessary files for itunes, but i

    I just bought a MBA and I need to move my photos and itunes to an external hard drive (from my old MacBook Pro) because they won't fit on the Air.  I got the photos moved fine and I followed an online tutorial to move the necessary files for itunes, but it didn't work.  The files copied fine, but when I tell iTunes on the Air to look at the external drive for the library, it doesn't find anything.  What I copied was the entire iTunes Media folder.  So, how do I move the necessary iTunes files from my old Pro to a external drive so I can access them from my new Air?  Whew!

    iTunes- How to move the library to an EHD
    After you move the library you need to open iTunes by first depressing the OPTION key then launching iTunes. You will be given a choice of which library to use. This can then be made a permanent change, if you wish, in the Advanced section of iTunes preferences.

  • Table of Contents page numbers works for PDF but not for other formats

    Hi,
    I followed exactly was indicated here regarding creation of TOC.
    http://docs.oracle.com/cd/E10415_01/doc/bi.1013/e12187/T421739T481157.htm
    The page numbers generated correctly for PDF but not for RTF, HTML and XLS.
    (HTML and XLS are understandably not paginated in nature but why not in RTF?)
    Tried to make the simplest example work, with 2 headings each on a separate page. Doesn't work on either MSWord 2003 or 2007.
    What am I doing wrong?
    Regards,
    Jarell
    Edited by: Jarell on Jan 11, 2012 8:08 PM

    Hi Kavipriya,
    What is your email address? I have attached a file in Oracle Metalink, under SR 3-5172030861. named test_toc.rtf
    You may use any xml because the template does not use any dynamic binding of values.
    The template is basically 2 pages, the TOC in the 1st page. First TOC item (Heading 1) is in Page 1, and Second TOC item is in Page 2.
    So the end result should be (PDF result from BI Publisher):
    First TOC Item .................. 1
    Second TOC Item ............. 2
    But for RTF it outputs:
    First TOC Item .................. 0
    Second TOC Item ............. 0
    And after doing Print Preview (once or twice)
    First TOC Item .................. Error in Bookmark
    Second TOC Item ............. Error in Bookmark
    Hope this is detailed enough to illustrate the problem.
    Edited by: Jarell on Jan 17, 2012 10:24 PM

  • My Ipad 2 have a frozen with itunes icon a lot , i bring to apple store they fix it  , but on ly use about a week ipad have the same broblem a gain , I very tired and mad , I paid alot money for apple but they give mena ****  that why I buy sam sung table

    My Ipad 2 have frozen with itunes icon alot , I bring to apple store fix it alot , but bring home use only a week , ipad have same broblem again , I very tired and mad because I pay alot money for apple but they give me bad ipad , future I thing about samsung tablet . Now my ipad still have a problem I am very upset this ****.

    For what it's worth, you posted this in 2011, and here in 2014 I am still having this same issue. Over the last two days, I have had to unlock my apple account 8 times. I didn't get any new devices. I haven't initiated a password reset. I didn't forget my password. I set up two factor authentication and have been able to do the unlocking with the key and using a code sent to one of my devices. 
    That all works.
    It's this having to unlock my account every time I go to use any of my devices. And I have many: iMac, iPad, iPad2, iPad mini, iPhone 5s, iPod touch (daughter), and my old iPhone 4 being used as an ipod touch now.  They are all synced, and all was working just fine.
    I have initiated an incident with Apple (again) but I know they are just going to suggest I change my Apple ID. It's a simple one, and one that I am sure others think is theirs. I don't want to change it. I shouldn't have to. Apple should be able to tell me who is trying to use it, or at least from where.
    Thanks for listening,
    Melissa

  • How to make JTable use horizontal scrollbar

    My application uses a table to which data is added dynamically(both columns and rows). My problem is that when number of columns increase i want JTable to use horizontal scrollbar instead of resizing columns(which i achieve by setting resize mode to OFF state), But due to this if number of columns are less then there's alot of empty space left after showing columns(coz JTable cannot resize cols to fit Viewport area). To achieve both criteria i used following solution
    1. Set Auto resizing to OFF.
    2. Check if width of table is less than viewport width and if so then set auto
    auto resizing ON :) which will fit columns in viewport thereby occupying empty space.
    But this solution doesn't seem to be straight and simple to me. Is anyone aware of a simple solution to this problem.
    Dimension dm_Dm = new Dimension();
        RSBrowser.setModal(false);
        browseTable_Jt.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        // reqd o.w. JTable resizes column widths instead  of using horizontal
        // scrollbar
        RSBrowser.setVisible(true);
        browseTable_Jt.getSize(dm_Dm);
        // if table width is less than total viewport size then fill the extra
        // space by setting suto resize property to ON.
        if ( browseTable_Jt.getPreferredScrollableViewportSize().getWidth() >
             dm_Dm.getWidth() )
            browseTable_Jt.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
            browseTable_Jt.doLayout();
        RSBrowser.setModal(true);

    hi,
    with your problem statement it seems you should use javax.swing.JScrollPane like the one below
    JScrollPane tableScroller = new JScrollPane(yourTable);
    tableScroller.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    tableScroller.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);hope this helps you,
    regards,
    Afroze.

  • JTable: AUTO_RESIZE_OFF and setPreferredSize

    Hi, I know this has been asked befre but i could find no answer. I have a JTable that I want to set each columns width. I have to use AUTO_RESIZE_OFF so that I get the scrollbar, but then my code to resize columns seems to make no change. I have also tried setMinWidth and setMinWidth but that did nothing.
    Thanks
    US101

    TableColumn column = null;
    String str = new String();
    int width = 0;
    for (int i = 0; i < columns.length; ++i) {
            str = columns;
         tblModel.addColumn(str);
         column = tbl.getColumnModel().getColumn(i);
         width = 10;
    column.setPreferredWidth(width);
         column.setMinWidth(width);
         column.setMaxWidth(width);               
    tbl.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    tbl is a JTable
    columns[] is an array of table header names {"name", age"} etc...

  • Create new JTable based on selection of previous table

    Hello All,
    I want to create a sort of selection table. I have a fairly large JTable that is row selectable. I want the user to be able to select some rows, and then create a smaller table just displaying the selected rows.
    The current problem I am having (I say current b/c I'm sure more will follow) results from users rearranging the columns.
    Example) When columns are arranged as: A B C. Then the user rearranges to B A C. The getColumns() method returns the columns in the right order (B A C), but the getData() method returns the data in the old arrangement. So the data now does not match up to the column names.
    Here are the two methods I mention above (note: This class extends from JTable, so the "super" calls call back to JTable):
    * Retrieves data from table.
    public Vector getData() {
      Vector data = ((DefaultTableModel)super.getModel()).getDataVector();
      return data;
    * Retrieves the column names
    public Vector getColumns() {
      Vector fieldNames = new Vector();
      Enumeration e = super.getTableHeader().getColumnModel().getColumns();
      while(e.hasMoreElements()) {
        String name = (String)((TableColumn)e.nextElement()).getHeaderValue();
        fieldNames.add(name);
      return fieldNames;
    }I hope I made my problem clear. Thanks for any/all suggestions!

    Ah! A vector of vectors is returned from the getData call.
    I assumed is was a vector as follows:
    A -> __data for A__
    B -> __data for B__
    C -> __data for C__
    But no, its:
    Row1 -> __A B C__
    Row2 -> __A B C__
    Row3 -> __A B C__
    etc...
    So after trying to code, I realized what I was doing. I was rearranging rows! Not columns! Why would JTable set up its rows in this fashion? Wouldn't it be more efficient to have the primary vector be the order of the columns? It seems that would make things much easier. Well, that's my little rant after finally realizing that my code wasn't broken, it was doing exactly what I told it to do!

  • Fit Table width/height to Margin

    It would be a great handy feature if the table width could be fitted to the margin of the page.
    Moreover 'tables' need some more extra features like : distribute rows/column evenly to fit table width/height. At present this feature extends the table width/height when applied. Once I fix the width and height of the table, distribute rows/column must fit to that width/height only. The table should only extend when I add rows or column.

    >I have a 2-page site for a customer and have set it up as
    tables (from
    > Photoshop CS to Dreamweaver MX).
    Bad start. Read this for a better approach -
    Taking a Fireworks comp to a CSS-based layout in Dreamweaver
    http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt1.html
    http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt2.html
    Then read this -
    http://apptools.com/examples/pagelayout101.php
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Jonclyde" <[email protected]> wrote in
    message
    news:gfenmb$dek$[email protected]..
    >I have a 2-page site for a customer and have set it up as
    tables (from
    > Photoshop CS to Dreamweaver MX). The first page opens
    fine with the table
    > occupying 100% up and down as required, but clicking a
    link to the second
    > page
    > causes the table to shrink in size, even though (as far
    as I can tell)
    > both
    > pages are virtually identical when it comes to layout. I
    did one page,
    > then
    > copied it to make the second page. Check it out for
    yourself here:
    > www.jonathanstewart.com/chc/index.html. I can get the
    second page
    > (Services) to
    > open properly only if I set the target to _blank. Check
    the far right and
    > bottom of screen on both pages. The bar at the bottom
    should rest on the
    > bottom
    > of the browser window whatever the window's size, and
    the bar at the top
    > should
    > extend "off the page" at both left and right. Any ideas?
    >

  • How can I display "detailStamp" facet selectively for rows in a table ?

    Hi,
    My JDEV version is Studio Edition Version 11.1.1.5.0
    I am trying to display "detailStamp" facet selectively .
    If I read api in link below
    http://docs.oracle.com/cd/E26098_01/apirefs.1112/e17488/oracle/adf/view/rich/component/rich/data/RichTable.html
    Use the "detailStamp" facet on the Table to include a collapsable content area for each table row. Please note that the height of the open detail area will be a set height based on the height of the detailStamp component. Adding a component that changes in height (like showDetail or panelBox) will by default produce strange results when the detailStamp component's height changes.
    Detail Stamp can be selectively displayed for rows in the table by EL binding the "rendered" attribute of the "detailStamp" facet to "true" or "false". The EL binding can contain references to the table "var" attribute since during rendering it will be executed in the context of the row. Disclosure icon is displayed only for rows which have rendered="true".
    I can see that i can achieve it by setting rendered property for that facet. BUT this property is not available in Studio Edition Version 11.1.1.5.0

    Hi Frank.
    Thanks for your quick reply .
    But I am using Studio Edition Version 11.1.1.5.0 . In this version the property RENDERED of f:facet name="detailStamp" is NOT allowed.
    Edited by: user13764942 on Feb 7, 2013 5:48 AM
    Put in another way , I want to render the "detailStamp" facet selectively for rows , so for that I need the RENDERED property of "detailStamp" facet. This property is ONLY available in Jdev version 11.2 . I am using Jdev 11.1.1.5.0 so I need some alternative to RENDERED property as this property is NOT available in Jdev 11.1.1.5.0.
    Please suggest some way to achieve this behaviour of displaying "detailStamp" facet selectively ....
    Thanks!
    Edited by: Mangpal Singh on Feb 7, 2013 11:57 PM

  • 0CO_OM_CCA_4 - Data in r/3 for verification (Transaction or tables in r/3)

    Hello I loaded to BI using 0co_om_cca_4 data source.  I would like to know how to verify the data in r/3 for this data source?  I have seen so many postings regarding this, but was unable to use any of them.  Do you know which transaction to use for verifying the data in r/3?  Some people listed multiple tables, but I don't know logic the extractor uses for connecting all those tables.
    Thanks.

    Hi Sam,
    for Cost Centers: Statistical Key Figures (0CO_OM_CCA_4) orgin table is COSR.
    [http://help.sap.com/saphelp_nw70/helpdata/EN/4d/fcaba947fa5d42b4ef5f7769f87939/frameset.htm]
    Regards
    Daya Sagar

  • FDMEE Import error "No periods were identified for loading data into table 'AIF_EBS_GL_BALANCES_STG'

    Hi,
    We are having trouble while importing one ledger 'GERMANY EUR GGAAP'. It works for Dec 2014 but while trying to import data for 2015 it gives an error.
    Import error shows " RuntimeError: No periods were identified for loading data into table 'AIF_EBS_GL_BALANCES_STG'."
    I tried all Knowledge docs from Oracle support but no luck. Please help us resolving this issue as its occurring in our Production system.
    I also checked all period settings under Data Management> Setup> Integration Setup > Global Mapping and Source Mapping and they all look correct.
    Also its only happening to one ledger rest all ledgers are working fine without any issues.
    Thanks

    Hi,
    there are some Support documents related to this issue.
    I would suggest you have a look to them.
    Regards

  • Create a Navigational Hierarchy for filtering with the Table API

    Hello,
    I've built a WAD report acourding to the how to document: "Create a Navigational Hierarchy for filtering with the Table API".
    It works great but i dont know How to make the hirarchey to show the key and the text.
    Please Advice.
    David

    Hi Kenneth,
    please have a look in the source of the executed Web Application. What is inside of the <div> with the id filter?
    You should also find a td tag with id hier_xyz with xyz the filter inside of the <div>-Tag with id filter.
    Also check whether you have a javascript error.
    Have a look on the Javascript function set_style. Perhaps you can paste it here, than I can have a look.
    Heike

  • Short dump - No more storage space available for extending an internal tabl

    Hi All,
    I have requirement in which my program generates a text file on my presentation server. Here my problem is, this requirement can not be executed in back ground, it should be done in foreground only. When I execute in foreground, if the data records comes to some 38 lacks then I am getting a short dump saying 'No more storage space available for extending an internal table'.
    And in dump analysis under WHAT HAPPENED section it is giving as
    ' What happened?                                                                                |
    |    You attempted to extend an internal table, but the required space was                         |
    |    not available.
    Please suggest me, what I have to do in this case?
    Thanks in advance.
    Thanks,
    Sudha Mettu

    Hi SuDash,
    Allocation of the memory spaces will be done by BASIS people.
    you can contact them..
    Regards!

  • Short dump -No more storage space available for extending an internal table

    Hi All,
    While running one program I get the short dump saying
    "No more storage space available for extending an internal table "IT_862".
    Error Analysis given in the dump log :
    The internal table "IT_862" could not be enlarged further.
    To extend the internal table, 14656 bytes of storage space was
    needed, but none was available. At this point, the table "IT_862" has
    8528862 entries.
    Source Code Extract :
    003360     loop at t_line.
    003370       clear t_output.
    003380
    003390   *   Increment Line counter
    003400       add 1 to l_line_cnt.
    003410
    003420       t_output-object = t_stxh-tdobject.
    003430       t_output-id     = t_stxh-tdid.
    003440       t_output-spras  = t_stxh-tdspras.
    003450       t_output-name   = t_stxh-tdname.
    003460       t_output-line   = l_line_cnt.
    003470       t_output-format = t_line-tdformat.
    003480       t_output-text   = t_line-tdline.
         *>       append toutput.   " ERROR POINT*
    Can you please suggest what can be the possible solution for the above error.
    Thanks in advance.
    Sanjeet

    Hi
    Check out this thread:
    Re: No storage space available for extending the internal table
    Make sure you are not having an infinite loop.
    Hope this helps
    Regards,
    Jayanthi.K

Maybe you are looking for

  • How to import bookmarks and address book from another laptop?

    I have another laptop that has my bookmarks and address book on it. How can I import this to my new laptop? The other laptop also uses Firefox as its browser.

  • Preview PDF grayed out

    I am using Designer for the first time, and I wanted to preview the PDF after I had added a few fields to a new form.  But when I go to turn on the View > Preview PDF tab the selection is grayed out.  I can publish the PDF and tehn look at it, but th

  • HP 4510 Prints Skew/Slant out of the box on 2 different printers

    I have purchased and returned (2) 4510tn laser printers that prints skewed/slanted (very minor) right out of the box.  Have worked with HP support to find a solution but they don't even acknowledgement that the problems exist.  I believe this is a de

  • Hp 70950a osa and 8163a multimeter

    Hi, I am new to this forum, I seek for help to create a basic Labview program to communicate with an old HP70950A optical spectrum analyser, connected via GPIB to a Win98 computer where Labview 6 is installed. there are no driver available, but just

  • How long should it take a well-qualified server admin to migrate from Tiger to Lion...

    How long should it take a well-qualified server admin to migrate from Tiger to Lion... For a small company, if the Tiger server is running on a G4 Tower: -Roughly 500GB in user files -Data resides on old-school ATA drives -OD Master - Kerberized -AFP