You're adding area and area2 to the JScrollPanes, but then you add area and area2 directly into the JSplitPane, completely ignoring the JScrollPanes. It shouldn't surprise you that you're having this behavior.