I have two screens plugged into my computer and was wondering if there was a way in JFrame or Toolkit of detecting which screen the window is on?
I have this code:
java.awt.Toolkit.getDefaultToolkit().getScreenSize();
Which gets my screen size of my main screen, but how can I get the size of my second screen, or detect which screen the window is on?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…