getting error in 1.5 but works fine in 1.4... help!!!

I am getting following exception when using jre 1.5 but works fine in 1.4... I am getting following error when minimizing the internal frame from max. Thanks in advance for any help.

Exception in thread "AWT-EventQueue-2" java.lang.IllegalArgumentException: illegal component position

at java.awt.Container.addImpl(Unknown Source)

at javax.swing.JLayeredPane.addImpl(Unknown Source)

at javax.swing.JDesktopPane.addImpl(Unknown Source)

at java.awt.Container.add(Unknown Source)

at dgin.ol.cs.guilib.util.scrollabledesktop.BaseDesktopManager.iconifyFrame(BaseDesktopManager.java:122)

at javax.swing.plaf.basic.BasicInternalFrameUI.iconifyFrame(Unknown Source)

at javax.swing.plaf.basic.BasicInternalFrameUI$Handler.propertyChange(Unknown Source)

at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)

at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)

at java.awt.Component.firePropertyChange(Unknown Source)

at javax.swing.JInternalFrame.setIcon(Unknown Source)

at javax.swing.plaf.basic.BasicInternalFrameTitlePane$IconifyAction.actionPerformed(Unknown Source)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at javax.swing.JComponent.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(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)

[2860 byte] By [joeAnyOnea] at [2007-11-27 3:45:20]
# 1
Post, executable Sample Code.
it_senthilkumara at 2007-7-12 8:49:02 > top of Java-index,Desktop,Core GUI APIs...