ArrayIndexOutOfBoundsException in JTabbedPane
'm building a sort of a editor that has the windows explorer (as JTree )in one side of splitpane and open the file he clicks on the explorer in the other side of the splitpane as JTabbedPane.Everytime a file is opened a tab is inserted in the JTabbedPane.
but i get exception every other time i open a file,the exception is
Exception occurred during event dispatching:
at java.lang.System.arraycopy(Native Method)
what might be the reason for this exception.
Or is there any other way to view all the files that are opened in the editor.