The problem is at this statement:
spl.layoutContainer(this);
According to java doc of class JScrollPaneLayout:
Type: Posts; User: ha.minh.nam
The problem is at this statement:
spl.layoutContainer(this);
According to java doc of class JScrollPaneLayout:
Please post the runtime exception here.
One solution is to have a JPanel added to a JScrollPane which is added to JFrame. This will work definitely.
immutable objects