How do I stop horizontal oveflow in a JPanel component?

I have a JPanel inside a JScrollPane with the scroll policies:
VERTICAL_SCROLLBAR_AS_NEEDED
HORIZONTAL_SCROLLBAR_NEVER
Throughout my application, I dynamically add new components (JToggleButtons) to the JPanel. My problem is, I get horizontal overflow and I don't get a horizontal scrollbar. I know I can get one by just changing the horizontal scroll policy, but I want to use vertical scrolling only. I didn't have this problem before I implemented the JScrollPane. How do I control the horizontal overflow?

You might be able to use the [Wrap Layout|http://www.camick.com/java/blog.html?name=wrap-layout].

Similar Messages

  • How do I stop needing to scroll both horizontal and vertical in my folders to see all of the content.

    How do I stop needing to scroll both horizontal and vertical in my folders to see all of the content.

    There is no cancel button.
    I don't see a download all button that will download everything from iCloud anyway. The download all button that I see refers only to the particular artist or album that you select from the left had side. I see no download all button for TV Shows or Movies.

  • With the new version of numbers, 3.0, how can I stop the spread sheet from scrolling horizontally without reducing the size?

    With the new version of numbers, 3.0, how can I stop the document from moving horizontally?  When I scroll up or down I find it annoying that the document might shift to the left, and then I have to scroll it back to the right.  The only way I've found to stop it from moving horizontally is by reducing the document down to about 50%, but then I can't read the document.  I prefer having the document set at 125%, but then the bottom horizontal scroll bar shows up, and then the document can shift to the left if I'm not exact with my scrolling up or down.

    Hi Nels,
    Please update your profile. Numbers 3.0 will not run on Mountain Lion (10.8.x)
    With the new version of numbers, 3.0
    imac, Mac OS X (10.6.3)
    iMac, OS X Mountain Lion (10.8.4)
    Regards ,
    Ian.

  • How do i stop the screen from rotating on my iphone

    how do i stop the screen from rotating on my iphone when i move the phone from horizontal to vertical

    You can lock your screen from rotating. Double-click the home button, then slide your finger to the right until your get to the iPod section. There you click the icon on the left and that will lock your screen. You can unlock it the same way.

  • How do I stop Final Cut Pro 10.1 from  introducing artifacts?

    How do I stop Final Cut Pro 10.1 from introducing artifacts?
    Can someone please tell me what do do differently so that my edited video does not develop artifacts that were not in the original camera file.  My Sony HDR CX900 produces crazy detailed XAVC S video that FCPX seems to import with no problem but FCPX is introducing artifacts: some on import and more on share. The artifact in the examples below appears above and below the horizontal rope line on this model boat. Please look closely. It doesn't look to bad here, but it dances on my screen. Also, the video generally degrades much more than I would have hoped. How can I get more professional results?  Sorry for the long post, but more information now might save time and questions.
    Below is a portion of a frame opened in quicktime directly from camera's card.
    Below is the associated Inspector for above frame
    Here is the same after it is imported into FCPX. Optimized and Proxy Media were created, but FCPX seems to select what to play so I can't tell you which one is shown here.
    Here is the associated Inspector capture from FCPX.
    Here is the same frame once again after it is Shared as ProRes 422. Note the horizontal lines above and below the rope lines on this model yacht.
    Here is Inspector for the above file.
    Here is the same once again after it is Shared as H.264 Better Quality.
    I tried converting to Proress with 5Dto RGB and Brorsoft Video Converter. They both went though the process, but introduced similar artifacts.
    How can I get more professional results?
    And here is the associated Inspector for the above video.
    I tried converting to Proress with 5Dto RGB and Brorsoft Video Converter. They both went though the process, but introduced similar artifacts.
    How can I get more professional results?

    Russ H.
    When I right click on the clip in the browser and select Transcode Media, the dialog box opens, Optimize Media is checked, but OK is greyed out. Transcode is not an option. I think this points to the fact that FCPX is doesn't need to transcode XAVC-S or FCPX can't transcode XAVC-S. This is a new Sony codec produced by the new HDR CX900. The codec is HD at 50Mbps.
    Tom Wolsky,
    I selected Optimized Media in the viewer and both the timeline and exports (422 and H.264) look great.
    The 24 second long exported video jumps a couple of times as if skipping a frame, as it plays. Could this be related to 29.97 instead of 30fps?
    Thank you so much for getting the image right. Now if I can just eliminate those couple of small jumps.

  • HT204053 I have multiple family members using one apple id account and all of each others information is going onto each others phones/how do i stop this?

    I have multiple family members using one apple id and all of our data is going onto each others phones/how do i stop this?

    Each person needs to have their own separate Apple ID along with their own separate computer user account and iTunes Library.

  • How can I stop using my primary Apple ID (Gmail) but leave my secondary Apple ID (icloud) as primary ond only ONE?

    Good afternoon friends.
    Please help me and tell how can I stop using my primary Apple ID (Gmail) but leave my secondary Apple ID (icloud) as primary ond only ONE?
    I started using Apple ID in 2011 when iCloud was not exist and was forced to use non-apple e-mail adress as primary ID.
    So I used GMail mailbox.
    When iCloud was started I created my account but unfortunatelly can't remove this Gmail address from my Apple ID and replace it with icloud mail address.
    I was VERY dissapointed because I don't want to use "outside" mailbox to get letters from Apple and ny ID.
    In fact I see the Apple old users and fans discrimination.
    When creating new user accounts are free to create a box on the iCloud mail and use it as a primary ID, and the only ONE.
    At the same time the old user is obliged to keep third-party mail box like Gmail etc. as the primary and can not get such an opportunity, as a new user
    This is extremely inconvenient and a VERY strange logical.
    For example, now I want to stop using this mailbox on Gmail but I can not do that because in this case I lose access to my ID, or run the risk that someone in the future will create a box with the same name on Gmail (when name will be free and available) and will automatically get access to my accounts on Apple and to my Apple ID.
    Now, to avoid this, your team, I offer the only way out: ID, create anew.
    Of course it's possible, but then:
    - I lose all my purchases for 3 years and will be forced to make them again and pay money for the second time for my purchases
    - Lose access to the familiar iCloud e-mail address who now serves as secondary ID because this e-mail address is almost no longer available and will never be released in future.
    And now answer me for ONLY TWO questions:
    - WHERE IS LOGIC?
    - WHAT ABOUT TO BE FRIENDLY FOR YOUR USERS AND FANS?
    Thank you!
    Hopefully for your GOOD answers.

    You cannot make your @icloud.com address the login address for the ID. However you can change your ID, currently a Gmail one, to any other functioning non-Apple email address. The Gmail address would then no longer access your account, and so even if someone were to obtain posession of it (is that even possible) it wouldn't allow them to get into your account.
    If you want to change your ID to another email address please follow the procedure outlined below, particularly noting the first step.
    Firstly, if you have 'Find My iPhone/iPad/iMac' enabled on any of your devices, turn it off.
    Create a new email address, for example  at Yahoo or Gmail, or anywhere convenient (or you can use an existing address as long as it has never been associated with an Apple ID).
    Go to http://appleid.apple.com and click 'Manage your Apple ID'. Sign in with the current ID.
    Where it says 'Apple ID and primary email address' and gives your current ID email address, click 'edit'.
    Enter your new address and click 'Save changes'.
    Now you will need to go to each of your devices and sign out in System Preferences (or Settings)>iCloud - 'Sign out' on a Mac, 'Delete this account' on an iOS device (this will not delete the account from the server).
    Then sign back in with your new ID. Your iCloud data will disappear from your devices when you sign out, but reappear when you sign back in.
    I re-iterate: before you start, turn off 'Find My Mac' (or whatever) or you will need the services of Support.

  • How do I stop contacts updating across two phones?

    Hi
    This is my first post, so please treat me gently
    My partner and me have both just got 3g iphones, we love them but have one slight prob with them.
    When we connect our phones to our itunes account, contact details from both phones are replaced with all the contacts from each of the 2 phones.
    How can we stop this happening? i.e. ensure that my contacts stop on my iphone only and my partners contacts on their iphone only? (and we don't get each others).
    Sorry if this has been answered before, but I couldn't find it when searching.
    Thanks in advance for any help.....
    Rawlad

    Hey Rawlad,
    You can create a folder in Outlook or Windows Address Book and then sync the selected folder.
    In iTunes, just click the iPhone> Info tab> Check sync contacts> Selected groups.
    You can also Reset the Sync History in the iTunes preferences window as described here: http://support.apple.com/kb/HT1692
    Resetting the Sync History would would make iTunes ask if you want to merge or replace contacts.
    Make sure you have at least one contact syncing from the PC before choosing the merge option, so they can merge.
    -Jason

  • How can I stop the sharing on the iPhones that are in the same account because its sharing every thing even text messages

    How can I stop the sharing on the iPhones that are on my account because its sharing everything even text messages and its driving everybody crazy

    An icloud account is designed to be used by one user to keep his/her devices in sync. 
    If you have muitiple family members or friends using the same account as yours, then have them get their own Apple IDs and icloud accounts.
    If you mean you want to stop the sharing between all your devices, then on any one device, go to Settings>icloud and turn off the services you don't want that device to share/sync.  Or turn off icloud altogether if that's what you want.

  • HT204053 Our family uses one Apple ID for all of our iPhones.  We installed the update and now we are all getting each others photos and texts.  How do we stop this?

    Our family uses one Apple ID for all of our iPhone 5's.  We installed the update and now we are all receiving each other's pictures and texts.  How do we stop this? 

    Have a look here...
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l

  • I have added a work colleague to my family's members on iCloud so we can share the calendar for work appointments. However whe heakes purchases on iTunes I now get charged. How can I stop this happening?

    ive added my work coleague to my iCloud account so we can share the calendar on our I-phones for work appointments. when he makes a purchase on iTunes i now get charged though so how do I stop this from happening? also can I just share only work appointments or do i have to share the whole calendar with him? Can I select what he sees?

    Hi Frantic503,
    Welcome to the Apple Support Communities!
    When you are the Family Sharing organizer, purchases are billed to your account unless the family member making purchases has an iTunes Gift Card or iTunes credit on their account. The attached article has more information on how this process works. 
    Family Sharing - Apple Support
    What I may suggest in your situation would be to discontinue the Family Sharing and use iCloud calendar sharing. Using this method keeps your accounts separate but allows you to still share your calendar. 
    iCloud: Share a calendar with others
    Have a great day,
    Joe

  • Me and my mom share the same itunes account, everytime i download a app it goes to her phone automattically as well, how can i stop this?

    me and my mom share the same itunes account, everytime i download a app it goes to her phone automattically as well, how can i stop this?

    Open itunes
    Connect her iphone.
    Go to the apps tab.
    Uncheck the box that says automatically sync new apps

  • How do I stop iTunes from automatically importing songs I listen to from my external hard drive into the music library?

    How do I stop iTunes from automatically importing songs I listen to from my external hard drive into the music library?

    Mac OS X: Double-Clicking a File Opens the Wrong Application - http://support.apple.com/kb/TS2291
    -= Changing the application used to open all files of a certain kind (written with reference to OSX 10.4 but may not have changed) =-
    1) In a Finder window highlight a file of the kind you want to change the application to open that kind of file.
    2) While that file is highlighted, select File > Get Info or press command (apple or propeller icon) + i to get a file information window.
    3) In the lower part of the info window there is an "open with" menu with a list of applications.
    4) If your application is already in the box then it is the default application for opening that kind of file and you don't need to do anything more.  Close the get info window.
    5) If the application showing in the menu is not the one with which you wish to open the file then select a new application. If your application does not appear there then select the "other..." and track down the application (usually in the Applications folder at the main level of the computer).
    6) If you wish to change all files of this type to open with this application in future, make sure the "change all" button is selected.
    7) Close the get info window.

  • In Pages 5, Maverick, How do I stop automatic conversation of URLs to hyperlinks and seeing them underlined

    There used to be a preference setting in Pages.  Now it seems gone in Pages 5.   So how do I stop automatic conversation of URLs to hyperlinks and seeing them underlined in text.  Sometimes I want it, but not always.

    The preference setting to turn off links is gone. When you enter content that triggers link detection, a link character style gets applied. Right-click on the link, choose Edit Link from the menu, and then Remove.
    To prevent Pages from automatically detecting links, visit Edit > Substitutions > and deselect Smart Links.

  • How can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,-

    how can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,…"

    It sounds like if you open Preferences in Word there will be a place where you can specify where to store autorecover files. Right now it sounds like it's pointing to somewhere that doesn't exist.

Maybe you are looking for

  • Adobe Media Encoder in CS4

    Hello. My name is Justin. I am currently going through the  ADOBE FLASH CS4 REVEALED  book by Jim Shuman, as a program at a local community college. I have the Adobe Creative Suite 4 Design Premium. I am running this program on Microsoft Windows 7 x6

  • Motorola K1m/L7c  iSync Problems  Can not find device  USB & Bluetooth

    USB Bus recognizes our new Verizon cell phone. We selected phone based on Apple's Compatibility chart listing this phone as compatible with iSync. We have had NO luck in getting iSync to recognize the existance of this phone using USB. When setting u

  • Purcahsed Harry Potter audio books missing

    The first three Harry Potter audio books that I purchase over a year ago are missing and I cannot find them on my purchases list. I know they are no longer available to buy from itunes but surely the ones I've bought I can still access? They are not

  • Exchange 2007 server problems

    Hello everyone, I am having some trouble with our Exchange 2007. Since some days ago I am having extrange troubles with out Exchange 2007 server. Users are been asked to write their user and password very oftenly, and I don't know the reason. Additio

  • Update Termination in VA02

    Dear all, We want to Close the Service Order linked with the Sales Order Item, while SAVing the changes done in that Line Item through 'VA02'. I am doing this before saving the Document (Sales Order), using BDC. But, after my coding, control goes to