Hello everyone. Do you have any idea how to retrieve row data from a table in JAVA SWT. I am using TableItem current= (TableItem)e.item; however I think I can only use this once. If i try to retrieve the item again, i keep getting the "Widget is Disposed Error." Please help me in this matter. Thank you very much.
Error:
Exception in thread "main" org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.widgets.Widget.error(Unknown Source)
at org.eclipse.swt.widgets.Widget.checkWidget(Unknown Source)
at org.eclipse.swt.widgets.TableItem.getChecked(Unkno wn Source)
at com.eis.ui.InventorySystemUI$1$5$1.widgetSelected( InventorySystemUI.java:1486)
at org.eclipse.swt.widgets.TypedListener.handleEvent( Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unkno wn Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents( Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Un known Source)
at com.eis.ui.InventorySystemUI$1.widgetSelected(Inve ntorySystemUI.java:2385)
at org.eclipse.swt.widgets.TypedListener.handleEvent( Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unkno wn Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents( Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Un known Source)
at com.eis.ui.InventorySystemUI.main(InventorySystemU I.java:2629)