Skip to content
Advertisement

When using JOption Pane, During Cancelled JOption Pane, NullPointerException occurs

I have data in jTable1. I attempted to send them to jTable2 , after calculating by value entered to JOption Pane. But when I clicked on cancelled button on JOption Pane program making error. Line 80 in my code is

JavaScript

I need help to solve this problem. Thanks in advance.

Code is shown below

JavaScript

Stack Trace shown below

JavaScript

Advertisement

Answer

I changed my code according to the given opinions. It works well now. Thnaks all who helped me. @QBrute,@Pshemo, @ControlAltDel

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement