java图形界面错误,错误如下,NullPointerException,但是Text里面输入了内容,就是获取不了
java.lang.NullPointerExceptionatManage.ManageView.getMark(ManageView.java:86)atManage...
java.lang.NullPointerException
at Manage.ManageView.getMark(ManageView.java:86)
at Manage.Calculate.<init>(Calculate.java:7)
at Manage.ManageView$1.widgetSelected(ManageView.java:206)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
at Manage.ManageView.open(ManageView.java:71)
at Manage.ManageView.main(ManageView.java:55)
错误发生在这里:
错误代码:text_2.getText(),类型是org.eclipse.swt.widgets.Text; 展开
at Manage.ManageView.getMark(ManageView.java:86)
at Manage.Calculate.<init>(Calculate.java:7)
at Manage.ManageView$1.widgetSelected(ManageView.java:206)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
at Manage.ManageView.open(ManageView.java:71)
at Manage.ManageView.main(ManageView.java:55)
错误发生在这里:
错误代码:text_2.getText(),类型是org.eclipse.swt.widgets.Text; 展开
若以下回答无法解决问题,邀请你更新回答
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询