CardLayout with JScrollPane: Make card changes show top of card

I'm sure that I'm not the first one to ask this, but I could not find the answer anywhere else on this forum.
I have a CardLayout that shows two cards.
Each card has a JScrollPane on it, so that you can scroll the contents.
In my program, I switch the views of each card back and forth, the problem is:
if I show Card A, then scroll to the bottom of Card A
then switch to Card B,
then switch back to Card A,
I see the bottom of Card A.
I want to Card A from the top. I am using jdk 1.3.1
Any ideas?

During the handler (lisener) calls that do the switching, make a call like the followingmyScrollPane.getViewport().
               setViewPosition(new Point(0,0))

Similar Messages

  • HT1918 I can't seem to update my apps or make any purchases on from my account. Nothing has changed with my credit card information and for some reason the iTunes Store tells me my information is incorrect. What do I do?

    I can't seem to update my apps or make any purchases on from my account. Nothing has changed with my credit card information and for some reason the iTunes Store tells me my information is incorrect. What do I do?

    Yes, it's frustrating.
    I don't have my iPod with me but, as I recall, the change is done in Settings/Store.  That change will apply to NEW purchases.  However, be aware that all purchases are permanently associated with the Apple ID that was originally used.  Generally, it's only a problem when you need to update an app.  IF you do your updating from iTunes and your logged in to the "wrong" ID, you'll need to log out and back in again.  It's easier from the iPod as you do not need to log out/in but you do need to know the password.
    Unfortunately, you can not merge IDs nor can you transfer purchases from one ID to another.  Go here to find out exactly what you have.  I have the same problem so I deliberately made both passwords identical to make things slightly easier for me.

  • HT5552 I want to make a purchase with my credit card but it keeps taking it out of my account on the gift card I put in there. How can i change that?

    I want to make a purchase with my charge card. But each time I buy a song it takes it immediately off of the credit I have in my account from a gift card. How can I change it to charge me for a purchase instead of taking it out of the credit I have in there?

    You don't change it.
    It will use any account balance first, once it is gone, then it will go to your credit card.

  • HT1918 Somehow the country associated with my account was changed to China.  I did not make this change and now the system will not let me update either my credit card information or the country back to the United States.  Help!!!

    Somehow the country associated with my account was changed to China.  I did not make this change.  My credit card information needs to be updated but the system will not let me update either my credit card information or the country back to the United States.  My updated credit card information is not accepted because the country is China.  It will not allow me to change the country until the credit card information is changed. Help!!!

    This exact thing has happened to me. Did you get it resolved? If so, how??

  • HT5622 I tried to make a purchase with a credit card to I have been using with I Tunes for 2 years.  Now it's saying my security code is wrong??????

    Tried to make a purchase thru Itunes with a credit card I have been using for years.  Now it wants my security code which I entered three times and it said it was wrong (I know the correct) number.  Then I changed to another credit card, and it is still denying by purchase.  I was prompted to go to this website so here I am.  Can you please help me out
    Thank yyou

    whenever you attempt to put a card on itunes it puts a temporary $1 authorization hold for 24 hours - 48 hours depending on your bank - since you attempted so many times that is why that $1 is showing up so often - are you using a debit card? because if you are then if even the authorization hold doesn't go through like it should it will show a "ghost" charge that will drop off soon - it isn't fraud though - make sure your billing address is correct - if that doesn't work contact itunes store at getsupport.apple.com - click itunes - itunes store and follow the prompts and you can chat or email them.

  • Will your credit card be charged if you make a purchase with a gift card

    will your credit card be charged if you make a purchase with a gift card?

    Sandy has it right, when possible gift cards are used before credit cards. For more information about gift crads can be found in iTunes Store: How to redeem an iTunes Gift Card.
    When you buy individual songs from the iTunes Store:
    Free song credits are redeemed first.
    If you have no free song credits, gift certificate, prepaid card, and allowance credits are used next.
    If your gift certificate, prepaid card, and/or allowance credit is less than the total cost of the purchase, your credit card is billed for the remaining balance.
    If you have no free song credits or gift certificates, prepaid cards, or allowance credits, your credit card is billed for the songs you buy.
    When you buy an album on the iTunes Store:
    Gift certificate, prepaid card, and allowance credits are used first.
    If your gift certificate, prepaid card, and/or allowance credit is less than the total cost of the purchase, your credit card is billed for the remaining balance. Note: Free song credits cannot be used for album purchases.
    If you have no gift certificates, prepaid cards, or allowance credits, your credit card is billed for the albums you buy.
    It's been a while sense I used a gift card; but from what I remember, when you have credits from a card. There was a little bar that displayed my current balance.  For instance, when I added the gift card, The balance showed as +20.00, i bough a song, the balanced changed to +19.01.
    PS question about itunes should be posted in the iTunes community.

  • How to make Dictionary results show up at the top in Spotlight?

    Hi, I used to use Dictionary a lot when writing papers. However, since upgrading from Leopard to Lion Spotlight has been showing results differently. Is there a way to change how Spotlights shows search results so that I can get my "Thesaurus-fix" from Dictionary first again.. For "chair" it shows Top hit, documents, pdf documents, music, and then ... "Look Up", which I want FIRST! :-)
    Any help appreciated! Thanks!

    I tried looking in preferences, but "Look Up" /Dictionary is not a selectable option. Thanks
    Basically this problem: http://apple.stackexchange.com/questions/71312/is-it-possible-to-make-look-up-ap pear-higher-in-spotlight

  • In iTunes under my device, under the apps tab, Why are all the options shaded out?  I cannot make any changes, select any apps or do anything with the apps.  I was able to load a few apps and sync but cannot sync anymore to my phone.

    In iTunes under my device, under the apps tab, Why are all the options shaded out?  I cannot make any changes, select any apps or do anything with the apps.  I was able to load a few apps and sync but cannot sync anymore to my phone.

    Hi,
    ( I search for iChat questions when I have finished in the iChat Forum)
    So the menu bar reads iChat, File,  Edit,  View, Buddies, Video, Window and Help
    There is no Buddy List open.
    There is no other window for iChat open.
    In the iChat Menu you only have access to Status.
    Is an item ticked in the list ?
    Is this a green (Available item) or  Red ( an Away one) ?
    Can you access the Accounts option ?  (Sitll in the iChat Menu)
    Is anything in here ticked ?
    In the Window menu any Logged in account should appear in the list  (Between the Next Chat and File Transfer items)
    It would be useful to know which version of iChat this is.
    If no account is ticked (iChat Menu > Accounts) or not showing in the Window Menu, plus you cannot determine the Status and you cannot access the Preferences then you need to access your Home Folder/Library/Preferences
    As the Library in the Home Holder is Invisible in Lion you will need the Finder's Go Menu > Go to Folder option  (you can use it in earlier OS versions if you want)
    Type in:-
    ~/Library/Preferences
    Find the file called com.apple.ichat.plist
    Drag it to the Trash and Restart iChat.
    This will lose all the settings in iChat that you have changed from Defaults but there is no way around this.
    9:23 PM      Saturday; August 27, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Hi, My Apple TV 1st generation is showing the apple logo and the amber light keeps blinking, after a while it shows a little Apple TV with a question mark blinking on top, any ideas?

    Well my question says it all.  I wasn´t using the apple tv, but noticed that the amber light started to blink, so I put it on the tv and there was the apple logo.  I did the recory with the "MENU" + "-" button, but came back the same.  After a while it showed a little Apple TV image with a "?" mark blinking on top.  I disconected it the whole night but today is doing the same. Is like it got stuck on the restart. Can anyone help me?

    Fixed it after trying everything listed here with no success.
    First you will need to make sure you have the ability to connect your ATV box directly to your router via a cable.  This issue is directly related to networking from my experience and once connected to wifi you will have a nightmare of a time to complete the fix.
    1.  Make sure you have NO network connection to the ATV box.
    2.  Hard reboot ATV using remote (aim remote at device and hold "menu" and "down/minus" until amber light blinks)
    3.  When ATV reboots to a diagnostic menu select "Factory Restore"
    4.  After Restore has completed select a language
    5.  You cannot skip the the wifi selection screen without setting up a connection, however: DO NOT SETUP WIFI!  Instead plug in the direct cable to your router, and hit the menu button on your remote.  You will see "connecting to network."
    6  Once you are past the start up splash video you will eventually arrive at the connect to itunes screen which will start looping the apple logo and a new code about every 2 seconds.  Disconnect the network cable.
    7.  After a few seconds the loop will stop.  Press the menu button to skip the itunes connection (you will be able to do it later.)
    8.  At the following menu go to Settings > Screen Saver > Set delay for "Never"
    9.  Go back to the main menu, then go to Settings > Network > Configure TCP/IP > Click on "Using DHCP"
    9.  Click "Done"
    10.  Connect cable to router, and then proceed with updating your ATV.
    After I was updated the problem did not return.
    I have completed this solution personally twice on the same unit.  After getting updated and stable, I recovered my ATV again, and had the same problems again.  Repeated these steps and good to go.
    Hope this helps someone, and good luck!

  • I just got iPhone 5s and after a day when I open the notifications from the top that make the phone shows the apple sign and back to unlock!!

    I just got iPhone 5s and after a day when I open the notifications from the top that make the phone shows the apple sign and back to unlock what can I do as I reset all settings and nothing changed ??

    So after looking a bit closer i have noticed that when i have the phone plugged into the computer it shows the songs but when i dont have it plugged in and i go so the song icon on the bottom of the music menu screen it says i have no songs!

  • Record about my phone (bought in Verizon store and connected to Verizon for 4 years) has been corrupted and now I can not make any changes to my data plan. Several sessions with the technical support and management have not resolved this issue. Each time

    Record about my phone (bought in Verizon store and connected to Verizon for 4 years) has been corrupted and now I can not make any changes to my data plan. Several sessions with the technical support and management have not resolved this issue. Each time technical people and top managers promised that this issue will be resolve tomorrow and they will cal me. Nothing happend!! I can not even cancel my service not just to upgrade it. Completely locked. 
    Any advice?
    Thanks.
    Alex.

    Cannot figure out what your talking about since it makes no sense.
    If you are the account owner you can go to the My Verizon web portal http://www.verizonwireless.com
    You must log in with your cell number and your my Verizon portal password. Not the account pin.
    Once there you can change your plan and services. However repeated incorrect login attempts will lock you out of the site. It a fraud prevention measure.
    1-800-922-0204 call support with your cell number and or account number and account pin and they can assist you.
    If you don't have the information then there is nothing they can do.
    If you can verify who you are they may be able to reset your account access. But only if you are the account owner.
    Good Luck

  • HT2534 Hello! I have a problem with a credit card. I bought one program, after that i wanted buy one more, but it wrote that with my card something wrong. After that i wanted change my card (VISA) on "NONE". But there no NONE! I can't download FREE apps!

    Hello! I have a problem with a credit card. I bought one program, after that i wanted buy one more, but it wrote that with my card something wrong. After that i wanted change my card (VISA) on "NONE". But there no NONE! I can't download FREE apps! Than I wanted make new account and select NONE, but there no NONE, there only cards. Help, please!

    Hey Shamannnig!
    Here is an article that can explain a little more about this situation:
    Why can’t I select None when I edit my payment information?
    http://support.apple.com/kb/ts5366
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • I'm unable to make payment for creative cloud monthly plan. It says there is some problem processing the payment. I tried with three different cards. Still not working

    I'm unable to make payment for creative cloud monthly plan. It says there is some problem processing the payment. I tried with three different cards. Still not working

    "Some problem" is really not much information
    Some links that may help
    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id. html
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    -ID support http://helpx.adobe.com/x-productkb/global/service-c1.html
    -wrong email https://forums.adobe.com/thread/1446019

  • When syncing Apps on my iPhone 5 through iTunes, they are all greyed over and I cannot make any changes. How can I fix this. It never happened with my iPhone 4

    When syncing Apps on my iPhone 5 through iTunes, they are all greyed over and I cannot make any changes. How can I fix this. It never happened with my iPhone 4

    Connect your device to iTunes and in the the window were all the apps are greyed out make sure the 'Sync Apps' checkbox (top left corner) is selected.

  • My itunes account shows I have a balance of 5.37 but when I go to pay for a song for 1.29 it will not let me access thia account. Instead it asks me to pay with a credit card.

    My itunes account shows I have a balance of 5.37 but when I go to pay for a song for 1.29 it will not let me access this account. Instead it asks me to pay with a credit card. Do these benefits age off. It's been awhile since I used it. Thanks

    It says   at the top      under Redeem after I touched that:
              $14.73
    Account: [email protected]   (my account name)
    Enter your Gift Card or Download Coad

Maybe you are looking for

  • List view in calendar

    how do you make it so that past events don't show up in the list view without going back and deleting those events? also is it possible to not have it show the current date in the list view? otherwise, i think this is the best looking calendar in a p

  • Changing Printer in the PO master form

    Hi All,      we are SRM 5.5 ECS. we addded a new printer and would like to change default to the new printer. Please suggest where I could change the printer in SRM Master form/config. When users print PO, it should automatically default to new print

  • Exclamation Mark On Printer Icon

    Every time I print from my iMac to my HP Photosmart 5510 printer, an exclamation mark in a yellow triangle appears on the printer icon in my Dock, like this: What does this mean? The "Now Printing" window that pops up on my screen looks like this, ag

  • How to burn/convert files from Mac The Ripper??

    Ok, I just used MacTheRipper to rip a DVD with Video_Ts and Audio_TS folders. Now my question is, how can I convert these into a disk-image, or how can I now burn this to a DVD? Thanks in advance

  • My iphone wont download the bug fix ios 8.0.2

    my iphone wont allow me to download bug fix ios 8.0.2 update