ScrollPane will not create Horizontal Scrollbar

Hi,
I have a JTable that I add to a JScrollPane. The Vertical scrollbars show up fine but I can't seem to get the horizontal scrollbars to appear. Is there something that I am doing wrong or is there a way to force the scrollbars to appear.
Thanks!
public void drawContractPanel() {
SearchEvent searchEvent = SearchEvent.getInstance();
searchEvent.setDealerList(dealers);
searchEvent.setStatusList(statuses);
String [] arrayDealers = searchEvent.getSelectedDealers();
String [] arrayStatus = searchEvent.getSelectedStatuses();
summaryTableModel.setQuery(arrayDealers, arrayStatus);
contractTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
contractTable.setPreferredScrollableViewportSize(new Dimension(694, 135));
saveAdapter = new SaveAdapter();
contractTable.addMouseListener(saveAdapter);
contractScrollPane.setPreferredSize(new Dimension(800, 140));
contractScrollPane.setBounds(24, 340, 800, 140);
contractScrollPane.setVisible(true);
summaryTableModel.fireTableChanged(null);
getContentPane().add(contractScrollPane);
getContentPane().invalidate();
getContentPane().validate();
}

You may be running into the problem of having the table resize the widths of the columns in order to make it fit into alloted viewport size. Try this line of code to make sure that the table columns remain at their preferred size.
contractTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);If The widths of your columns are larger than the viewport of your scrollpane, this should give you the horizontal scrollbar you are after.
Jerry

Similar Messages

  • Acrobat XI will not create PDF from word for Mac

    I'm on a late 2013 macbook air, running Mountain lion, office for mac 20011 and acrobat XI pro.  In acrobat, when I go to file, create pdf and navigate to a word doc, acrobat will not creat the pdf.  I get an error message that reads someting like "acrobat could not open test.docx because it is not a supported file type."  Create pdf works with other file types. I can create PDF by using the Save As in Word, but that is besides the point. I bought Acrobat in order to process many word and excel files into on PDF-file easily and currently that is not possible. Anyone?

    This is possible on Windows.

  • Pdf pack will not create a pdf from a tiff file    conversion failure    Why

    pdf pack will not create a pdf from a tiff file    conversion failure    Why

    Hi David Turner,
    What is the exact error message which you are facing while converting the file from .tiff  format to PDF format.
    As per my knowledge, PDF Pack supports conversion from .tiff format to PDF Format -Different File formats that Adobe PDF Pack supports.
    Regards,
    Rahul Tyagi

  • New computer.  Acrobat 7 will not create the pdf maker

    Got the file from the [email protected] site as directed by tech support. It loaded and can open pdf files but will not create.  When installing it said cannot create the pdf maker.
    How can I fix?

    Hi ronc638131,
    What operating system are you using? I'm guessing that if you have a new computer, you most likely have an operating system that is much newer than Acrobat 7, and on which Acrobat 7 was never tested. Please see the Acrobat system requirements  here: http://helpx.adobe.com/x-productkb/policy-pricing/system-requirements-acrobat-family-produ cts.html
    Best,
    Sara

  • LR 5.7.1 will not create folders on a network connected Drobo.

    LR 5.7.1 on IMac2 (OS 10.9.5) will not create a folder an a Drobo that is USB connected to IMac1 (OS 10.10.2).  The two IMacs are ethernet connected through a router.  When attempting to create a folder on the Drobo from LR on IMac2 an error message from LR is displayed: "Could not complete the folder move. The folder named “2014” could not be created." A folder cannot be uniquely created from LR on the Drobo.  Folders can be created on the Drobo from the desktop of IMac2,  image files can be moved between already created folders on the Drobo and new images can be added to existing folders.  Read and Write permissions are set for all users on both iMacs.  Looking for some help on figuring this out.

    Have you successfully Signed Out and back in to CC (or do you still have an error message on CC)?
    Sign out, Sign in | Creative Cloud Desktop app
    If not and you can't I'd guess it's still the CC that is the problem.  There have been similar issues preventing LR starting here on the forum in the past (do a search, it might help)
    After that I'd try the Technical Chat if you can't find anything on the CC forum (IMHO the forums are more likely to be able to help but it might take time).
    Contact Customer Care

  • Siri will NOT create reminder using location

    I'm having trouble creating a location based reminder.  I've set location service on Siri.  It knows my "home" and "work" locations based on my info.
    1. Enable Siri.
    2. I tell Siri to "set reminder"
    3. Siri asks what I need to be reminded about, I say "Buy eggs"
    4. Siri asks "when would you like me to remind you?". I say "When I leave home".
    5. Siri repeats the reminder and asks if Siri should create the reminder.
    6. I say yes.
    7. Siri comes back with "I wasn't able to create your reminder. Sorry about that."
    I've tried several times, no luck.  It's not that Siri does not know the locations, it just will not create the reminder for some reason.  Anyone had this issue and fixed it?
    Thanks.

    I had the same issue and error message with Siri.  After some tinkering, here is how I had to have a few settings in order to use "location" for Reminders.
    ICloud-Reminders ON
    Mail, Contacts, Calendars...Reminders...Default List... set to iCloud Reminders (Not Exchange Tasks nor Exchange Tasks)
    You can verify that Siri can use Location by manually creating a Reminder in the Reminder App and then click on Remind Me... and you should see "At a Location" as well as "On a Day."
    Based on this, it appears that Location Based Reminders can only be used/saved in the cloud in order for "it" to tell the phone where you are, and the trigger a reminder.

  • Ical will not create new / delete old calendars

    On my imac, ical will not create a new calendar (File / New Calendar) and will not delete the calendar (Edit / Delete) that is in there (a custom calendar called 'group 3' that was never used - the default calendars are not in there either).
    I tried same on my ibook and it worked as expected.
    Back to the imac, I delete the imac application from the applications folder, then did a custom install from my OS X 10.4 disk. Although the install completed successfully, the situation is no different.
    Suggestions? thanks

    Solved: Deleted all Key Chain references to the FTP address.

  • Will not create a pdf

    I was happy with Pro XI trial and so purchased the monthly version which I downloaded.  But it will not create a PDF.  It is unable to find any exisitng document, in word or any other form.  I have shut down and restarted.

    Thank you so much for your concern. Prashant at the Adobe help got on with me and fixed a problem with my Office suite.

  • Genius will not create 2010 song lists

    The majority of new 2010 cd's that I have added to my iTunes library will not create a genius list. I update my Genius at least twice a week as I add new material. If a 2010 compilation has songs prior to 2010 it will make a list from the older songs. I have tried turning off genius, rebooting my computer and turning Genius back on and updating. Some of the=is music was even purchased from iTunes store and it still won' create Genius playlists. It is not a critical problem, but it is certainly frustrating

    Finally noticed some or all of my music had been unchecked? Rechecked all music-problem solved

  • Need help creating horizontal scrollbar in graphic timelime (built in AI)!

    I am trying to use Catlyst to build an interactive scrollbar on a graphic timeline build in Adobe Illustrator,  I want to be able to scroll from one end of timeline to the other.  Can anyone help?  Thanks! 

    Can you post a screenshot of the timeline you are trying to convert. It will help in accurate response.
    You would probably need to do it in two step:
    - Have the graphic timeline converted into Datalist element, and make the data repeatable.
    - Create a Horizontal Scrollbar component and add it to the datalist component (timeilne)
          - If you have the Horizontal scrollbar designed, then select it and convert it to a Horizontal Scroll component (using the HUD - the black overlay that comes up when you select a graphic element)
          - After conversion you would need to define the parts of the H. Scrollbar (Track, thumb, right button, left button). Note: It helps if you designed your H. Scrollbar with these components in AI/PSD.
    - Now come back to the artboard, and select the H. Scrollbar by clicking on it.
    - Cut the H. Scrollbar
    - Click the Datalist element, and go to Edit Parts (in HUD)
    - Paste the H . Scrollbar inside the Datalist element. This will attach the scrollbar to the data.
    Hope this helps,
    Fu

  • ScrollPane - Change Position of Horizontal Scrollbar?

    Hi all,
    With scrollPane, is it possible to change the position of the horizontal scrollbar?  I saw an old thread that suggested using the following for moving the vertical scrollbar:
    scroller.verticalScrollBar.x=-20;
    So I tried changing it to "scroller.horizontalScrollBar.y=-20;" but that had no effect.

    I tried to do this for about 2 days and looked at every post in every forum I could find. It would appear that with some version of the v2 componenents it was possible, but I never got it to work.
    Finally I had to create my own scrollbar which was a huge pain and then the client decided to drop scrolling altogether. I will be interested if you find a solution for this.

  • How to create Horizontal scrollbar

    I am using Form6i, how to create a horizontal scrollbar for a multi-record block?
    Thanks!

    A horizontal scroll bar is not an object that you can drag or resize like a vertical scrollbar. It is implicitly created when needed.
    To get a horizontal scroll bar, you have to place the items you want to scroll on a STACKED CANVAS and set property Show Horizontal Scroll Bar of this canvas to Yes.

  • A very wide, continuous page that will feature a horizontal scrollbar

    Hello, I'm trying to create a very simple portfolio website that simply features one long, horizontal page that will be wider than the browser window and therefore produce a horizontal scrollbar that can be manually scrolled. This is surely a very simple thing to achieve but I don't know how to achieve it! Do I change the page width somehow??
    Any help would be much appreciated! Thanks.

    that's great and what i'm looking for, but where do I insert these numbers?
    As you can probably tell, Im quite unfamiliar with dreamweaver..
    If you view source in your browser, you'll see how that demo page was built.
    File, New, HTML page.  Add some content to your page and wrap select areas around <div> tags
    <div1>
    some content here
    </div>
    <div2>
    some content here
    </div>
    <div3>
    some content here
    </div>
    <div4>
    some content here
    </div>
    Then style and position each div with CSS.
    HTML & CSS Tutorials - http://w3schools.com/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Acrobat 9.4.6 will not create Word PDF.

    Hi --
    I have a Adobe Acrobat PRO 9.4.6 installation that can not create a Word 2003 SP3 documents to a PDF. If I create a text file I can covert the file to a PDF.  If I careate a new word documnet file with "hello world", save the file to a DOC or DOCX,  and try to convert it to a PDF the distiller does through the process and simply stops responding. 
    OS Vista 32 bit
    office 2003 SP3
    Office 2007 compatability pack is installed
    I did try removing Acrobat and reinstalling it with the same results. 
    Any ideas what I should try next?
    Thank you for your assistance.
    Joe Lorenz

    Thanks Bill,
    Since then this is what I have found.
    If I use the Printing feature files can be opened in Solaris Gnome PDF Viewer, but as you know, links and bookmarks will be lost.
    I tried to set the backward compatibility option to Acrobat 1.3 (the oldest option) but somehow it always resets to 1.6 when I save the PDF file.
    All fonts are embedded and I have reinstalled Acrobat just in case.
    I tried with different PDF converters and so far Foxit Phantom PDF works fine with Solaris (and also cheap). It gets stuck when there is a complicated line drawings in the Word file, but otherwise it has been stable and bookmarks/links have been alive. If I don't find a breakthrough in a couple of days, I will switch to Foxit.
    Anyhow, thank you for your support.

  • Magic mouse will not scroll horizontally

    Magic mouse will not scroll horizontally

    We need far more information.
    Has it previously scrolled horizontally?   Is the fault restricted to certain browsers or program facilities?   What machine are you using it on?    Has this problem appeared following an OS upgrade.

Maybe you are looking for