My Swing application requires me to display a calendar in a JDialog box. The challenge I'm facing here is that the position of the JDialog box is not the same across screens of different sizes or resolutions.
I tried using the d.setLocation(x, y)
of JDialog for positioning.
And I know can get monitor sizes this way. But it didn't help me to place the dialog box appear at a same place across different screens.
Please help me resolve this issue.