简体   繁体   中英

Swing UI Frame was found stuck and shows grey screen in java

I am having problem like in some time when i run my application it shows grey screen instead showing proper UI and application keep on throws below exception. could you please any one give me the solution to fix this problem.

  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
     at javax.swing.plaf.basic.BasicButtonUI.getMinimumSize(Unknown Source)
     at javax.swing.JComponent.getMinimumSize(Unknown Source)
     at java.awt.BorderLayout.minimumLayoutSize(Unknown Source)
     at java.awt.Container.minimumSize(Unknown Source)
     at java.awt.Container.getMinimumSize(Unknown Source)
     at javax.swing.JComponent.getMinimumSize(Unknown Source)
     at java.awt.FlowLayout.minimumLayoutSize(Unknown Source)
     at java.awt.Container.minimumSize(Unknown Source)
     at java.awt.Container.getMinimumSize(Unknown Source)
     at javax.swing.JComponent.getMinimumSize(Unknown Source)
     at java.awt.GridBagLayout.GetLayoutInfo(Unknown Source)
     at java.awt.GridBagLayout.getLayoutInfo(Unknown Source)
     at java.awt.GridBagLayout.ArrangeGrid(Unknown Source)
     at java.awt.GridBagLayout.arrangeGrid(Unknown Source)
     at java.awt.GridBagLayout.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.RepaintManager$ProcessingRunnable.run(Unknown Source)
     at java.awt.event.InvocationEvent.dispatch(Unknown Source)
     at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
     at java.awt.EventQueue.access$000(Unknown Source)
     at java.awt.EventQueue$3.run(Unknown Source)
     at java.awt.EventQueue$3.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.security.ProtectionDomain$1.doIntersectionPrivilege(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)

Remove the components in your screen one by one till the problem goes. With the information in your qn nothing more can be said.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM