Hi guys, i have 2 questions from below code.
1) the blue rect can stop at Jpanel border(x<0) but when i moved it to the other border why is it exceed the border at (x>500/ meaning more than 500).
note : i have to maximize the panel, to see the blue rect stop, otherwise i will not see it.
2) Related to questions 1, i try x-coordinated the red rect , so that the one side will place at coordinate 450 and the other side will place at 500.
When i compile the program, why the red rect does not properly coordinated(only half seen) .