I try to draw a rectangular in Java. I set the frame size (800,400) and resizable(false) rectangular\'s x = 50, y = 50 width = 700 height = 300. Why isn\'t it in the middle
Rectangle rect = new Rectangle(50,50,700,300);
That should work fine, are you creating a new instance of Rectangle before you access member variables?
Also 800 by 400 it kind of a weird resolution, 800 by 600 is more standard.