Scroll bar en JInternalFrame?

蹲街弑〆低调 提交于 2019-12-14 03:29:09

问题


I have a question.

I have a JInternalFrame, with input-texts, combo-boxes, panels, almost finalized... but, it is bigger than the JFrame...

I don't want to do all back.. So, Can I add a scroll bar without add a scroll panel? How I to do?

Sorry for my English.


回答1:


Can I add a scroll bar without add a scroll panel? How I to do?

Why not use a JScrollPane?

Simply add your main JPanel or contentPane to a JScrollPane, add it to your JInternalFrame, and you're done. This is really you're only solution, either that or re-think your GUI structure so that you display information in a more efficient manner.



来源:https://stackoverflow.com/questions/22698509/scroll-bar-en-jinternalframe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!