I hava a java program with a JFrame
I am using absolute positioning
here is my main function
public static void main(String[] args) {
ape
I fixed it like this :
frame.setBounds(0, 0, 1480, 910);
frame.setMinimumSize(new Dimension(1200, 799));
frame.setMaximumSize(new Dimension(1480, 910));
frame.setPreferredSize(new Dimension(1480, 910));
frame.setLocationRelativeTo(null);
frame.addComponentListener(new ComponentAdapter() {
@Override
public void componentResized(ComponentEvent e) {
double w = frame.getSize().getWidth();
double h = frame.getSize().getHeight();
if(w > 1480.0 && h > 910.0){
frame.setSize(new Dimension(1480, 910));
frame.repaint();
frame.revalidate();
}
super.componentResized(e);
}
});