0
votes

I have a form, that include 2 functions to call 2 canvases, when I am displaying second canvas it is throwing error NullPointerException.

1

1 Answers

1
votes

Please make your Display variable "mf" as static in the code snippet you originally posted.