开发者

jscrollpane in a jpanel

I want to have a scrollpa开发者_运维百科ne inside a panel while the scrollpane covers the whole panel. How can I do that?


Ensure the JPanel has a BorderLayout, then add the JScrollPane to the BorderLayout.CENTER constraint. Of course, don't add anything else to the NORTH/E/W/S constraints.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜