Reputation: 1003
I have a form, that include 2 functions to call 2 canvases, when I am displaying second canvas it is throwing error NullPointerException
.
Upvotes: 0
Views: 176
Reputation: 29632
Please make your Display variable "mf" as static
in the code snippet you originally posted.
Upvotes: 1