I've searched the internet and StackOverflow and found lots of ways to get the current screen size but
that screen size isn't the display size, is there a way to get the display size and not the screen size?
I'm currently using the following lines of code to get the screen size:
//size of the screen
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
frame.setUndecorated(true);
frame.setAlwaysOnTop(true);
frame.setVisible(true);
frame.add(panel);
//get screensize
int height = (int) screenSize.getSize().getHeight();
int width = (int) screenSize.getSize().getWidth();
System.out.println("Current system width & height: " + screenSize.width + ", " + screenSize.height);
frame.setSize(width, height);
Does anyone know a way to get the display size? Or is it not really possible?