Swing 上类似瓷砖的窗口 [英] Tile-like windows on Swing

查看:36
本文介绍了Swing 上类似瓷砖的窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Swing 编写应用程序的经验为零,但我有一个可以开始试验的应用程序.

I have zero experience writing applications with Swing, but I have one application with which to start experimenting.

对于此应用程序,我希望我的窗口具有可变数量的类似平铺"的小结构,这些结构可以像用户在主框架内的窗口一样移动/关闭/最小化,并且将显示每个一张小桌子.

For this application, I want my window to have a variable number of small "tile"-like structures, which can be moved/closed/minimized just like windows by the user inside my main frame, and which will display, each a small table.

我想知道我应该使用什么样的结构来实现这一点.任何针对 Scala Swing 的答案都会加分.

I'd like to know what kind of structures should I use to accomplish this. Bonus points for any answers oriented towards Scala Swing.

推荐答案

听起来您想要像 JDesktopPane/JInternalFrame 那样实现的东西.这就是通常所说的 MDI.查看 Sun 的如何使用内部框架"页面.

It sounds like you want something like what's implemented as JDesktopPane/JInternalFrame. This is what's commonly known as MDI. Check out Sun's "How to Use Internal Frames" page.

这篇关于Swing 上类似瓷砖的窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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