Weird Behaviour of JScrollPane.getPreferredSize() when using SCROLLBAR_AS_NEEDED

Printable View