JFrame 定制
如何在JFrame的标题栏中添加一些JtextField..?
或者如果我想在 Jframe 的标题栏中添加一些组件
就像 Firefox 中的选项卡一样
(虽然我知道firefox不是完全用java编写的)
How to add some JtextField in title bar of JFrame..?
Or if I want to add some components in Title bar of Jframe
Like there are tabs in Firefox
( although i know firefox is not made up in java competely )
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在
JFrame
上调用setUndecorated(true)
。然后您可以实现自己的标题栏,例如 Firefox 或 Chrome 中的选项卡栏。但是您需要注意用于关闭、移动、最小化窗口的小部件。You can call
setUndecorated(true)
onJFrame
s. Then you can implement your own titlebar which can be e.g. a tab bar like in Firefox or Chrome. But you need to take care for widgets for closing, moving, minimizing the window.当在“Test”处声明您的 JFrame 时,请输入您想要的 JFrame 标题。
When declaring your JFrame where I have "Test" put what you want the title of your JFrame to be.