JFormDesigner Exception

I tried to create a new JPanel with a GridBagLayout:



java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at java.awt.GridBagLayout.GetLayoutInfo(GridBagLayout.java:1353)
at java.awt.GridBagLayout.getLayoutInfo(GridBagLayout.java:944)
at java.awt.GridBagLayout.ArrangeGrid(GridBagLayout.java:2020)
at java.awt.GridBagLayout.arrangeGrid(GridBagLayout.java:1980)
at java.awt.GridBagLayout.layoutContainer(GridBagLayout.java:840)
at com.jformdesigner.gd.layoutContainer(SourceFile:1333)
at java.awt.Container.layout(Container.java:1401)
at java.awt.Container.doLayout(Container.java:1390)
at java.awt.Container.validateTree(Container.java:1473)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at com.jformdesigner.ol.validateTree(SourceFile:1484)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validateTree(Container.java:1480)
at java.awt.Container.validate(Container.java:1448)
at
javax.swing.plaf.basic.BasicTabbedPaneUI.ensureCurrentLayout(BasicTabbedPaneUI.java:1420)
at
javax.swing.plaf.basic.BasicTabbedPaneUI.getTabBounds(BasicTabbedPaneUI.java:1440)
at
com.intellij.ui.TabbedPaneWrapper$TabbedPane.scrollTabToVisible(TabbedPaneWrapper.java:49)
at
com.intellij.ui.TabbedPaneWrapper$TabbedPane.setSelectedIndex(TabbedPaneWrapper.java:6)
at
com.intellij.openapi.fileEditor.impl.EditorTabbedContainer$MyTabbedPane.access$401(EditorTabbedContainer.java:46)
at
com.intellij.openapi.fileEditor.impl.EditorTabbedContainer$MyTabbedPane$1.run(EditorTabbedContainer.java:5)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:70)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:28)
at
com.intellij.openapi.fileEditor.impl.EditorTabbedContainer$MyTabbedPane.setSelectedIndex(EditorTabbedContainer.java:14)
at
com.intellij.ui.TabbedPaneWrapper.setSelectedIndex(TabbedPaneWrapper.java:96)
at
com.intellij.openapi.fileEditor.impl.EditorWindow.setSelectedEditor(EditorWindow.java:342)
at
com.intellij.openapi.fileEditor.impl.EditorWindow.setEditor(EditorWindow.java:281)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl3(FileEditorManagerImpl.java:18)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$4.run(FileEditorManagerImpl.java:1)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:25)
at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:28)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl2(FileEditorManagerImpl.java:109)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl(FileEditorManagerImpl.java:38)
at
com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:230)
at
com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java:2)
at com.jformdesigner.aW.actionPerformed(SourceFile:146)
at
com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:9)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1957)
at
com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:16)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:265)
at
com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:201)
at
com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:1)
at java.awt.Component.processMouseEvent(Component.java:5957)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3284)
at java.awt.Component.processEvent(Component.java:5722)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:4365)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:4195)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4228)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:2299)
at java.awt.Component.dispatchEvent(Component.java:4195)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at
com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:11)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:14)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:167)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

2 comments

Hi Johannes,

thanks for reporting.

This is a Java 6 related problem. Sun tried to reduce the memory
needed for GridBagLayoutInfo and introduced an incompatibility :(

I'll file a bug report and try to find a workaround.

In the meantime, please use Java 5 or try an older Java 6 build.
I've tested it with b76. Don't know in which build GridBagLayout
has changed...


Best regards,
Karl Tauber
FormDev Software
www.jformdesigner.com

0

FYI Sun has confirmed that this is a regression bug in Java 6 and has fixed it in b81.

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6404410

--
Karl Tauber
FormDev Software
www.jformdesigner.com

0

Please sign in to leave a comment.