Say I have a JFrame class object as a frame
I was wondering what is the difference between
JOptionPane.showMessageDialog(null,message)
and
JOptionPane.showMessageDialog(frame,message)
to print something. Both give the same result, and they appear in the same place. So I was wondering what is the difference between the two? What is actually happening in the background?
nbdip source share