I have a JPanel subclass and overriding paintComponent(Graphics g) and calling g.drawRect(0, 0, 500, 75). Inside my main method I initialize it and call setBounds(50, 400, 500, 75) on it, but when it draws the rectangle it is only drawing something like this:
|________________
and missing the two other sides. Sorry I don't have the code, it's on a different computer. Any ideas?