Need serious help

Its on my eclipse GUI. i have a scroll pane with the vertical scroll policy set as needed. however whenever i parse in the new created thread. it will show but will starts being smaller and smaller, like squeezing into a box. the scroll bar does not work even it max out my scroll pane size.i tried for a long time but to no avail. where did i went wrong?