Get an exception, really dont know why?

I get this exception in my application and I cant figur out why:
java.lang.ArrayIndexOutOfBoundsException: 2
at javax.swing.plaf.basic.BasicTabbedPaneUI.paintTabArea(BasicTabbedPaneUI.java:535)
at javax.swing.plaf.basic.BasicTabbedPaneUI.paint(BasicTabbedPaneUI.java:497)
at javax.swing.plaf.metal.MetalTabbedPaneUI.paint(MetalTabbedPaneUI.java:666)
at javax.swing.plaf.metal.MetalTabbedPaneUI.update(MetalTabbedPaneUI.java:561)
at javax.swing.JComponent.paintComponent(JComponent.java:541)
at javax.swing.JComponent.paint(JComponent.java:808)
at javax.swing.JComponent.paintChildren(JComponent.java:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4787)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4740)
at javax.swing.JComponent._paintImmediately(JComponent.java:4685)
at javax.swing.JComponent.paintImmediately(JComponent.java:4488)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Another guess:
you say this happens during startup.
As DrClap mentioned, this is not happening in your code, this is happening in Suns code, but nevertheless it can be your fault:
my guess is you are doing lots of stuff during startup, but you are not doing this inside the AWT-Event-Thread, but in the Main Thread. you are already displaying your Panel/Dialog/Frame (see the Stacktrace) and while it is painting, you are adding stuff to your dialog. This is dangerous, since Swing is not threadsafe and funny things can happen (like yours)
make sure to display your stuff at the end of all initialization.
regards, sebastian

Similar Messages

  • I need help!!! keep getting Kernel Panics, i dont know why.

    Heres My console log from todays Kernel Panic. Can someone please help me
    Thu Nov 22 21:59:47 2012
    panic(cpu 0 caller 0xffffff800f4b7bd5): Kernel trap at 0xffffff800f42da10, type 13=general protection, registers:
    CR0: 0x000000008001003b, CR2: 0xffffff8049dc5000, CR3: 0x0000000012146000, CR4: 0x0000000000000660
    RAX: 0x0000000000000001, RBX: 0xffffff80164b4aa0, RCX: 0x0000000009000000, RDX: 0xffffff8043d53078
    RSP: 0xffffff804eab3e50, RBP: 0xffffff804eab3e80, RSI: 0xffffff8043d53068, RDI: 0x0000000000000000
    R8:  0xffffff800fabec60, R9:  0xffffffffffffffff, R10: 0x00000000ffffffff, R11: 0x00000000ffffff80
    R12: 0xffffff800fabebe8, R13: 0xffffff80164b4030, R14: 0x01ffff80164b4000, R15: 0x0000000000000000
    RFL: 0x0000000000010002, RIP: 0xffffff800f42da10, CS:  0x0000000000000008, SS:  0x0000000000000000
    Fault CR2: 0xffffff8049dc5000, Error code: 0x0000000000000000, Fault CPU: 0x0
    Backtrace (CPU 0), Frame : Return Address
    0xffffff804eab3af0 : 0xffffff800f41d626
    0xffffff804eab3b60 : 0xffffff800f4b7bd5
    0xffffff804eab3d30 : 0xffffff800f4ce4ed
    0xffffff804eab3d50 : 0xffffff800f42da10
    0xffffff804eab3e80 : 0xffffff800f82e1e9
    0xffffff804eab3ec0 : 0xffffff800f82ca47
    0xffffff804eab3f30 : 0xffffff800f82d3a2
    0xffffff804eab3f70 : 0xffffff800f831e99
    0xffffff804eab3fb0 : 0xffffff800f4b26b7
    BSD process name corresponding to current thread: kernel_task
    Mac OS version:
    Not yet set
    Kernel version:
    Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64
    Kernel UUID: 69A5853F-375A-3EF4-9247-478FD0247333
    Kernel slide:     0x000000000f200000
    Kernel text base: 0xffffff800f400000
    System model name: MacBook6,1 (Mac-F22C8AC8)
    System uptime in nanoseconds: 914601533
    last loaded kext at 233352744: com.apple.driver.AppleIntelCPUPowerManagementClient          196.0.0 (addr 0xffffff7f9136b000, size 20480)
    loaded kexts:
    com.apple.driver.AppleIntelCPUPowerManagementClient          196.0.0
    com.apple.driver.AirPort.Brcm4331          602.15.22
    com.apple.driver.AppleAHCIPort          2.4.1
    com.apple.driver.AppleUSBEHCI          5.4.0
    com.apple.driver.AppleEFINVRAM          1.6.1
    com.apple.nvenet          2.0.19
    com.apple.driver.AppleUSBOHCI          5.2.5
    com.apple.driver.AppleSmartBatteryManager          161.0.0
    com.apple.driver.AppleRTC          1.5
    com.apple.driver.AppleHPET          1.7
    com.apple.driver.AppleACPIButtons          1.6
    com.apple.driver.AppleSMBIOS          1.9
    com.apple.driver.AppleACPIEC          1.6
    com.apple.driver.AppleAPIC          1.6
    com.apple.nke.applicationfirewall          4.0.39
    com.apple.security.quarantine          2
    com.apple.driver.AppleIntelCPUPowerManagement          196.0.0
    com.apple.iokit.IO80211Family          500.15
    com.apple.iokit.IOAHCIFamily          2.2.1
    com.apple.iokit.IONetworkingFamily          3.0
    com.apple.driver.NVSMU          2.2.9
    com.apple.iokit.IOUSBFamily          5.4.0
    com.apple.driver.AppleEFIRuntime          1.6.1
    com.apple.iokit.IOHIDFamily          1.8.0
    com.apple.iokit.IOSMBusFamily          1.1
    com.apple.security.sandbox          220
    com.apple.kext.AppleMatch          1.0.0d1
    com.apple.security.TMSafetyNet          7
    com.apple.driver.DiskImages          344
    com.apple.iokit.IOStorageFamily          1.8
    com.apple.driver.AppleKeyStore          28.21
    com.apple.driver.AppleACPIPlatform          1.6
    com.apple.iokit.IOPCIFamily          2.7.2
    com.apple.iokit.IOACPIFamily          1.4
    com.apple.kec.corecrypto          1.0

    Give this a try:
    Resetting your Mac's PRAM and NVRAM
    Intel-based Macs: Resetting the System Management Controller (SMC)
    Repair the Hard Drive and Permissions - Lion/Mountain Lion
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Open Users & Groups preference panel and create a new user account with admin status. Set this account as the primary startup account, then reboot the computer into this new account. See if the panics cease.

  • I've lost a load of notes, but dont know why or how to get them back. I cant find the folder that is in my Yahoo account that people have suggested might be the location for the messages.  I recently signed into iCloud for the first time.

    I've lost a load of notes, but dont know why or how to get them back. I cant find the folder that is in my Yahoo account that people have suggested might be the location for the messages.  I recently signed into iCloud for the first time.  Any idea how to get the notes back?   I really dont want to lose them.

    It should keep asking for the password, because it's trying to check for purchases... As soon as you login, it will see you have pending downloads and create the downloads section on the left below Purchases under the Store section. Then it will start the music downloads there, as they will be listed one below the other.
    You could just try to check your account balance or view your account and that will trigger a password request too. You can just click on that and say that now iTunes keeps asking for the password and ask him to help you with that. Trick would be to interrupt him so that he carries on with another task after, so he doesn't notice the download. Or you carry on with email or browsing which you were "busy" with when iTunes interrupted you for the password (stupid iTunes)

  • I dont know why the battery life of my iphone 4 is so low ! i really want to know how many hours i'll have if it's on standby. And how many hours if i use it normally for music and facebook (sometimes a little bit games)

    i dont know why the battery life of my iphone 4 is so low ! i really want to know how many hours i'll have if it's on standby. And how many hours if i use it normally for music and facebook (sometimes a little bit games) !!!

    to enhance your battery life, keep screen display to minimum, set screen lock automatically after 1 min, select internet notifications to off.

  • My library has went from thousands of songs to 60 and i dont know why, any suggestions how to get these back?

    My library has went from thousands of songs to 60 and i dont know why, any suggestions how to get these back?

    See Empty/corrupt iTunes library after upgrade/crash.
    tt2

  • How can i edit my contacts?and i dont really used my phone and its automatically add a contacts and email adds.. I dont know why that happen..i just turn my phone off and this is happen..

      How can i edit my contacts?and i dont really used my phone and its automatically add a contacts and email adds.. I dont know why that happen..i just turn my phone off and this is happen..

    Contacts are synced with a compatible programme in the computer; in the iCloud or with Yahoo and Google Mail. You can directly "edit" a contact on the phone and/or within the programme that you are syncing your contacts with.
    Have you configured/setup mails on your iPhone? If yes, check the contents of the mail account(s) individually. (including iCloud)  from SETTINGS - MAILS, CONTACTS, CALENDARS
    "Contacts" if chosen from the mail account (s) would add email addresses to your contacts.
    http://support.apple.com/kb/HT1296

  • I have 21 tones on my account but for some reason i get 13 songs evrytime i try to sync them, dont know why ?

    i have 21 tones on my account but for some reason i get 13 songs evrytime i try to sync them, dont know why ?

    Recover media from iPod
    See this post from forum regular Zevoneer for options on moving your iPod data back to your computer.
    tt2

  • HT4097 Help! Everytime I try to update my iPad 2 on 4.3.3 it get is error message "The iPad "iPad" cannot be restored at this time because the iPad software update server could not be contacted or is temporarily unavailable." I dont know why please help

    Help! Everytime I try to update my iPad 2 on 4.3.3 it get is error message "The iPad "iPad" cannot be restored at this time because the iPad software update server could not be contacted or is temporarily unavailable." I dont know why please help.
    I'm running 4.3.3 on a ipad 2 im computer is connected via wire to internet

    See
    iOS 5: Updating your device to iOS 5
    http://support.apple.com/kb/HT4972
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect to your computer & click on the "Update your device using iTunes".
    Tip - You may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. After you update to iOS 5.x, the next update can be installed via wifi (i.e., not connected to your computer).
     Cheers, Tom

  • I am trying to updat to 5.0 i have the latest version of itunes but it bring up the error 3194 and i have tried everything that it suggested includeing removing itues and reinstalling it i did get an error when it updated but dont know why and what for

    i am trying to updat to 5.0 i have the latest version of itunes but it bring up the error 3194 and i have tried everything that it suggested includeing removing itues and reinstalling it i did get an error when it updated but dont know why and what for

    sorry i was typing fast and didnt check spelling and stuff

  • My ipad was not letting me download any sort of app or song unless i posted my credit card. when i posted my credit card information the next day my credit card information said itunes was charging me $22, and i dont know why. could someone please help me

    a couple of days ago i purchased an itunes card, but for a couple of months i was unable to download any sort of app or song, because it wanted me to post my credit card on my billing address. i had not purchased anything, yet the next day on my credit card it said i had purchased $22 worth. i dont know why if i had not purchased anything.

    You will need to contact iTunes support and ask them why you are getting the message and how to resolve it, which you can do via this page (these are user-to-user forums) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • I tried downloading Final Cut ProX but my computer said that "this computer cant download Final Cut ProX" and i dont know why?

    i tried downloading Final Cut ProX but my computer said that "this computer cant download Final Cut ProX" and i dont know why?

    Is your iMac still really on OS X 10.2 Jaguar?
    Could you supply more accurate info about your Mac.
    What Mac do you have?
    To find out info about your system,
    Click on the Apple symbol in the upper left of the OS X main menu bar. A drop down menu appears.
    Click About this Mac. A smaller popup window appears. This gives you basic info like what version of OS X your iMac is running, the speed of your iMac's CPU and how much RAM is installed.
    Click on the button that says More Info.
    A larger window appears giving you a complete overview of your iMac's hardware specs.
    Highlight all of this info and copy/paste all of this into another reply to this post, editing out your iMac's serial number before actually posting the reply.
    This will tell us everything about your iMac so we may begin to help with your iMac issues.
    Final Cut Pro X System Requirements.
    OS X v10.9.2 or later
    4GB of RAM (8GB recommended for 4K)
    OpenCL-capable graphics cardor Intel HD Graphics 3000 or later
    256MB of VRAM (1GB recommended for 4K)
    3.5GB of disk space

  • The sound on my ipad 3 suddenly stopped working i dont know why i tried the last two days to fix it and also restored it and the sound never came back, please help.....

    the sound on my ipad 3 suddenly stopped working i dont know why i tried the last two days to fix it and also restored it and the sound never came back, please help.....

    Do you get sound on any apps e.g. Music and Videos but not others ? If you do then have you got notifications muted ? Only notifications (including games) get muted, so the Music and Videos apps, and headphones, still get sound.
    Depending on what you've got Settings > General > Use Side Switch To set to (mute or rotation lock), then you can mute notifications by the switch on the right hand side of the iPad, or via the taskbar : double-click the home button; slide from the left; and it's the icon far left; press home again to exit the taskbar. The function that isn't on the side switch is set via the taskbar instead : http://support.apple.com/kb/HT4085

  • Hey guys, iv recently changed over from the 4 to the 5 and i have lost my 5. Luckily a few days ago i downloaded find my iPhone but when i log in it tracks my old phone and not the new one. I have logged in so i dont know why it wont connect. help???

    hey guys, iv recently changed over from the 4 to the 5 and i have lost my 5. Luckily a few days ago i downloaded find my iPhone but when i log in it tracks my old phone and not the new one. I have logged in so i dont know why it wont connect. I'm really upset about lossing it, if anyone one knows how to fix the problem or another way of tracking my phone that would be great.

    The iphone 5 can only be located if connected to a data or mobile network. If in Airplane mode or switched off, it can't be found.
    Check this article for more info:
    iCloud: Troubleshooting the Find My iPhone app

  • I bought a ipod touch 4g. it worked realy well on the first two weeks, but them it stoped to turn sideways, and i dont know why! i have checked if the portrait orientation was locked, i tried to turn of and on,shuting down and restoring.but nothing works!

    i bought a ipod touch 4g. it worked realy well on the first two weeks, but them it stoped to turn sideways, and i dont know why! i have checked if the portrait orientation was locked, i tried to turn of and on,shuting down and restoring.but nothing works! Can someone help me i dont know more what to do!!!!.
    And this doesn't let whatch to youtube, videos, typing sideways, playns games tha need the acelerometer.......

    What happens when you try to restore the iPod? Error message?
    If this program will not get the iPod out of recovery mode your data should be safe.
    RecBoot: Easy Way to Put iPhone into Recovery Mode

  • Hi i dont know why i couldnt able to purchase any apps from apple store or in itunes store using my debit card with which i used to buy before ?

    Hi i dont know why i couldnt able to purchase any apps from apple store or in itunes store using my debit card with which i used to buy before ?

    I don't know why but I suspect you are located in the Indian sub continent.   Debit cards appear to be a problem here and while many are accepted in other countries, India seems to be an exception.   Go to ...
    Apple - Support - iTunes - Contact Us   ... and ask for help.

Maybe you are looking for

  • 220V power adapter for 110v iMacs, Time Machine, etc

    we are moving to hong kong next month and I have 3 iMacs in our house, a 1 terabyte Time Machine backup/802.11n device and an airport. Does anyone know what i need to do to support 220v power in Hong Kong? Does Apple make/sell devicees that convert t

  • Problem with Comparing Dates in MS Access

    Hai Friends I am using MS ACCESS 2000 Database I am using the following sqlString in AWT Frame class to fetch the date from MS ACcess Database I heard that while comparing with >= or <= we need to include # symbol between the date. I was tried by usi

  • Ship to address in SC

    Hi, can any one say if it's possible to enter the ship to address other than maintained in system. we are on SRM 5.0. when any other adreess details are entered in the name field and any other fields in the ship-to details, system message Partner SHI

  • Error message in BUPA_DEL transaction

    Hi, I have a problem with the transaction BUPA DEL. I would like to delete a BP but i have a error msg => "Business partner 1500357 still used in business transactions" It's strange because all the relationship are deleted. Who can help me ? Thanks D

  • Iphone 4 with tmobile cannot receive mms

    I have a factory unlocked iphone 4 on tmobile, i was unable to recieve mms, but then I input this: APN: epc.tmobile.com mmsc:hhtp://mms.msg.eng.t-mobile.com/mms/wapenc mms proxy: 216.155.165.50:8080 mms max message size: 1048576 mms ua prof URL: http