滚动条en JInternalFrame? [英] Scroll bar en JInternalFrame?

查看:45
本文介绍了滚动条en JInternalFrame?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题.

我有一个 JInternalFrame,带有输入文本、组合框、面板,几乎已经完成……但是,它比 JFrame 大……

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?

对不起我的英语.

推荐答案

我可以在不添加滚动面板的情况下添加滚动条吗?我该怎么办?

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

为什么不使用 JScrollPane?

Why not use a JScrollPane?

只需将您的主 JPanel 或 contentPane 添加到 JScrollPane,将其添加到您的 JInternalFrame,就完成了.这确实是您唯一的解决方案,或者重新考虑您的 GUI 结构,以便您以更有效的方式显示信息.

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.

这篇关于滚动条en JInternalFrame?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆