Witam, czy da się zrobić JFrame większy od ekranu?
Tworzenie okna mam napisane w ten sposób:
public static Toolkit temp = Toolkit.getDefaultToolkit();
public static Dimension wymiary = temp.getScreenSize();
public static int wys = wymiary.height;
public static int szer = wymiary.width;
public static Dimension realSize;
public static Dimension size = new Dimension(szer, wys);
public static Dimension pixel = new Dimension(size.width / pixelSize, size.height / pixelSize);
frame = new JFrame();
frame.add(component);
frame.pack();
value.realSize = new Dimension(frame.getWidth(), frame.getHeight());
frame.setTitle(value.name);
frame.setResizable(true);
frame.setLocation(0, 0);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
setPreferredSize(value.size);
kiedy próbuję zwiększyć okno do np. 2000 pikseli wysokości, to JFrame osiąga swóją maksymalną wartość, która wynosi np. 1000.