I want to make JOptionPane.showMessageDialog
message appear
- Any place in the screen.
- Relative to JFrame. (not at the centre of the JFrame)
For example this will display the message at the centre of the JFrame provided as argument thisFrame
JOptionPane.showMessageDialog(thisFrame, "Your message.");
And this will display the message at the centre of the screen irrelative to any JFrame.
JOptionPane.showMessageDialog(null, "Your message.");
How?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…