How to add a JScrollPane onto a JTabbedPane using a null layout?
问题 I want to implement a Scrollbar onto my Tab. However nothing is showing and there are no exceptions. I think I need a: scrollPane.setViewportView(scrollPanel); But it didn't work as well. I am wondering when adding a Jscrollpane onto a JTab how do you set it visible without using an explicit frame. If I use a frame and add it on the frame it creates a new window. However how I got this program the Frame looks built I assume and this complicates everything. import java.awt.*; import javax