Is there any significance to the thread "AWT-EventQueue-0"

I just got an exception "java.lang.ArrayIndexOutOfBoundsException: 3" but It didn't give me any lines of code that it said the error was thrown. Its a long program, and I have no Idea where it is so I'll just post the exception:
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 3
     at javax.swing.plaf.basic.BasicListUI.updateLayoutState(Unknown Source)
     at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(Unknown Source)
     at javax.swing.plaf.basic.BasicListUI.getPreferredSize(Unknown Source)
     at javax.swing.JComponent.getPreferredSize(Unknown Source)
     at java.awt.FlowLayout.layoutContainer(Unknown Source)
     at java.awt.Container.layout(Unknown Source)
     at java.awt.Container.doLayout(Unknown Source)
     at java.awt.Container.validateTree(Unknown Source)
     at java.awt.Container.validateTree(Unknown Source)
     at java.awt.Container.validateTree(Unknown Source)
     at java.awt.Container.validateTree(Unknown Source)
     at java.awt.Container.validateTree(Unknown Source)
     at java.awt.Container.validate(Unknown Source)
     at javax.swing.RepaintManager.validateInvalidComponents(Unknown Source)
     at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
     at java.awt.event.InvocationEvent.dispatch(Unknown Source)
     at java.awt.EventQueue.dispatchEvent(Unknown Source)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.run(Unknown Source)

It seems you have added an swing object to your gui but you have not instantiated it before adding it.
Make sure you use something like JButton jBtn = new JButton("click"); I mean using the keyword new before adding to the gui.
There is also a chance that you use array of object and you missed to instantiate some of them before use
JButton jBtnArray[] = new JButton[10];
for (int i=0; i<10; i++){
    jBtnArray[i] = new JButton(String.valueOf(i));
}You can also check if your actionlistener is added correctly.

Similar Messages

  • Is there any significant difference between the headphone jack for 120gb or 160gb

    hi all,
    Is there any significant difference between the headphone jack for all ipod classic models.
    please advise?
    really appreciate.
    thanks

    Other than possibly the part number, probably not.
    B-rock

  • Is there any restriction on the length of all Primary keys in a table

    Hi all,
    Is there any restriction on the length of all Primary keys in a data base table?
    i have some 10 fields as primary key in a DB table and length exceeds 120 and getting a warning.
    Please let me know will there be any problems in future with respect to the same?
    With regards,
    Sumanth

    Well actually there are constraints like
    Total of internal lengths of all primary key columns        1024 Bytes
    Number of primary key columns per table                     512
    For other information about SAP database please refer to http://sapdb.org/sap_db_features.htm  
    Thanks & Regards,
    Vivek Gaur
    Alwayz in high spirits

  • Is there any difference of the Downloading speed of Folio if i'm in Enterprise or Professional Editi

    Hi Adobe,
    I have compared the downloading time between Adobe Multi-Viewer and Zinio App(also hosting digital magazine), I found out that it is so much faster in Zinio.
    Are there any difference of the downloading speed if let's say the I'm in Enterprise or in Professional edition?
    Thank you for the response!

    There is no speed throttling that I’m aware of.
    Bob

  • JPA and CAF BO - are there any editors of the JPA data (like CAF)?

    Hello!
    As you know SAP invented some layer above JPA and called it CAF. There is a very convenient way to edit data in CAF.
    But now I have to create a complex database scheme, also with CAF doesn't allow us to work with objects. So we can't use someObject.getChildren().
    So my question is are there any editors of the JPA data (like it is done in CAF)?

    Hi Kirill,
    at the beginning of our project at the end of 2009, we did a deep analysis of CAF since our architect vehemently suggested to use this framework.
    First about the history and purpose of CAF: Initially, CAF was never meant to be a layer above CAF since CAF was invented in the time before EJB 3.0 and JPA standard where writing persistence with EJB 2.x CMP forced the developer to write pages of boiler plate code. This background was approved by SAP.
    With upcoming of JPA, CAF ist mostly useless (except for very simply structured data) and prevents you from writing good software.
    It is easy just to write @Entity, @Id and @OneToMany (for complex database schemes) and CAF forces you to use an ugly, imperformant database scheme (e.g. CAF uses mapping tables even for 1:n relationships, a clear antipattern!)
    The CRUD-services generated with CAF are a pain, too. Usage of pessimistic locking is not up to date for web applications.
    With your complex database schemes, you exceed the limit of CAF.
    (We decided not to use CAF and did never regret this.)
    Concerning your question: There is an "JPA Details" view in NWDS that might help you. It needs JPA Persistence facet on your project to work. Developed by SAP. For JPA beginners, it is a good cheat sheet for JPA annotations and their attributes.
    You do not need more since a JPA POJO is easy to code.
    Regards,
    Rolf

  • Is there any limitations to the maximum number of dimensions in MP?

    hi all
    Is there any limitations to the maximum number of dimensions can be created in Multi provider. If so how what is the maximum number of dimensions that can be created in a multi provider?
    regds
    haritha

    Hi,
    Maximum number of dimensions 16. Out of 16, 3 are system defined
    1.Datapacket
    2.Time
    3.Unit
    It is restricted to 16 because the maximum no of dimensions in any database is 16.
    Reward points if helpful
    Cheers
    Raj

  • Is there any truth to the rumor that there is a virus attacking iphones in the form of an iOS update?

    Is there any truth to the rumor that there is a virus attacking iphones in the form of an IOS update?

    Absolutely not.
    There was a new piece of iOS malware discovered recently, but it, like all other known iOS malware, requires that the device be jailbroken. If your iOS device isn't jailbroken, there's no known malware capable of infecting it.

  • Is there any documentation regarding the fuego.fdi.* libraries

    Is there any documentation regarding the fuego.fdi.* libraries
    thanks

    Hey lloyd,
    It looks like there is!
    Within Studio, click on the 'Documentation' flap on the bottom of the screen.
    Then, open the project flap, and navigate to Catalog -> Fuego -> Fdi
    Double click on any of the individual components, and its documentation will appear within the documentation flap on the lower portion of the screen.
    If you don't see any documentation, check the tabs at the top of the documentation flap - the tabs allow you to switch between the documentation for the current method you're working on, and the component you've selected.
    -Noel

  • Is there any way that the magic mouse might work on the iPad?

    I just got the iPad 3 and is there any way that the magic mouse can work alone or with the keyboard on it? If not, can the mouse work with a PC?

    tonefox wrote:
    The magic mouse can't be used with an iPad simply because Apple has chosen not to include support for it.
    Which is fair enough. Where are you going to put this mouse in order to use it with an iPad... you need a handy flat surface... oh, I know - the iPad screen. Much easier than moving your fingertip around it.
    You would put it the same place you put the wireless keyboard.
    In fact the existing keyboard support is one of the big reasons many of us would like to see mouse support added. You see the problem is that when you use a keyboard you have to reach up and over to tap the iPad screen. By Steve Jobs own admission* the arm tires quickly when you have to do this repeatedly. In this particular situation a mouse would be more ergonomically sound.
    There is also the issue of access for the disabled. Although iOS does have many accessibility option, at present none of them help those with severe spinal damage or certain amputees. Including mouse support means you could also use devices like the "suck and puff"... A mouth controlled joystick designed for people with these disabilities.
    * He was talking about touchscreens on notebook computers, but it's the same concept.

  • Hello. I have two version of Office for Mac. 2008 and 2001. I want to delete the 2008 version. If I use the removal tool within the Offie 2008 folder, is there any danger of the 2001 version being removed too.  Thanks Dave UK

    Hello. I have two version of Office for Mac. 2008 and 2001. I want to delete the 2008 version. If I use the removal tool within the Offie 2008 folder, is there any danger of the 2001 version being removed too.  Thanks Dave UK

    Do you mean Office 2008 and 2011 or do you really want Office 2001? I think you mean 2011 since Office 2001 wouldn't make much sense.
    The Office uninstaller should be able to identify there are two versions and allow you to delete either one or both.

  • Is there any solution to the colon translation bug?

    Mac OS X has reserved characters that cannot be used in file or folder names. One of them is the colon: It is used by the operating system in paths to designated separate directories and files, exactly as Microsoft uses the backslash character for the same purposed.
    However, Mac OS X is 'supposed' to translate colons to another character when saving files from within an application or the Mac OS X Save dialog. The typical translation is to forward slash or dash. For example, "Bug: Colon Translation" becomes "Bug- Colon Translation". Of if I am saving a web page to a PDF, the source name of an article with this title would change to "Bug/ Colon Translation".
    The bug: The above colon translation process does NOT work reliably in the Mac OS X Save Dialog with reliability. I guestimate that 95% of the time the translation of colons in source titles does NOT work. Using the example of translating a web article title to a PDF saved file, the results are typically the following: "Untitled.pdf". This forces the user to copy then paste in the actual title of the article. THEN, 100% of the time, the colon translation actually works. For example, if I have a web article titled "Bug: Colon Translation", it is extremely rare for that title to be anything but BLOCKED, resulting in 'Untitled.PDF' as the resulting title in the dialog box. When I then copy and paste the source title into the title area, replacing 'Untitled', I get: "Bug- Colon Translation".
    What will happen perhaps 5% of the time: The colon translation of the source title will actually work. When this occurs, using my example above, the OS provides the following translation: "Bug/ Colon Translation". Note that when it works in this situation I get a forward slash, not a dash.
    I research, read and save web articles all day long. A lot of articles use colons. I have to contend with this bug all day long every day. This bug is many years old. I can't recall when it started. But it certainly has been consistent in Mac OS X 10.5 Leopard, 10.6 Snow Leopard and now 10.7 Lion. Three versions of Lion are enough for me to realize that Apple is either oblivious to this bug or they don't care.
    Clearly, the colon translation CAN work. It is MEANT to work. No one can dispute that. The user is NOT supposed to be messed over with 'Untitled.PDF' files. They are MEANT to have actual PDF file titles, as seen in our example above.
    Therefore the question:
    Is there any solution to the colon translation bug?
    It is incredibly annoying.

    My guess is they don't care. Most likely they're illiterate and don't know what a colon is for. They probably think it's a little-used character. Remember: these are the people who don't know the difference between "deprecate" and "depreciate".
    I have the same colon problem as you do. But it's not the biggest problem I have encountered in Lion. If it was only that I'd be Mr. Delighted with Lion. There's worse than having a colon - uh -  that won't cooperate. A lot worse, in Lion.

  • HT6058 Is there any change in the MODERN FIRMWARE??

    Is there any change in the MODERN FIRMWARE with the new ios update of 7.0.4?

    The entire point of an update is to make changes in the current firmware.
    So, yes there are changes.  That is what an update is.

  • Is there any app for the ipadmini similar to the Assus Supernote Lite?

    Is there any app for the Ipadmini similar to the Assus Supernote lite?

    Hello,
    There aren't any that I know off. I would drop UMT a line and see if they are planning to release something similar for Project Online in the near future...
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Is there any difference between the 2 different USB cords when syncing???

    I know this may be a paranoid question to ask but I just wanted to make sure.
    Is there any difference between the newer USB cords with the shorter plug (the end that goes into the iPhone) and the older ones with the bigger, square-shaped plugs that you can pinch on the sides to retract?
    Is there a difference in transfer speed, syncing speed, or reliability, or build quality?
    Just asking cuz the newer USB cord that came with my iPhone 3GS is getting frayed and so I'm using the older one instead.
    Thanks to whoever helps.

    No difference except, as you noted, you have to squeeze the older one to remove it. It's important that you do that so you don't damage it or the iPod.

  • Is there any security on the ipad mini?

    Is there any security on the ipad mini?

    If Kappy's response doesn't cover your issue, please post back and explain what "security" you're referring to.
    Regards.

Maybe you are looking for