卡屏java,Swing UI Frame被發現卡住並在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.

我遇到問題就像在某些時候我運行我的應用程序它顯示灰色屏幕而不是顯示正確的UI和應用程序繼續拋出異常。你能不能請任何人給我解決方案來解決這個問題。

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)

1 个解决方案

#1

0

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

逐個刪除屏幕中的組件,直到出現問題。隨着你的信息在你的qn中沒有更多的可以說。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值