开发者

How to set vertical scrollbar in jdialog?

i have a jdialog with a jpanel inside it.I have jlabels(pictures) on the jpanel.How can i get a vertical scrollbar in jdialog without using te开发者_Python百科xtarea?


May be you should try adding your jpanel in JScrollPane so when panel goes beyond limit scroll will be shown.


I agree with Harry. You should use JScrollPane and work your way with the different ScrollBar Policies. See this tutorial on JScrollPane and how to use it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜