触摸屏应用布局
我必须为GUI部分开发一个基于swing的触摸屏应用程序。 该应用程序必须显示在不同的屏幕上,一个 15" 4/3 屏幕和一个 20" 屏幕。 我应该采用什么样的布局策略,以保持组件从一个屏幕到另一个屏幕的相同比例? 该应用程序的顶部有一个状态栏,显示来自服务器的一些信息,底部有一个菜单栏,应用程序的主要中心部分将显示图形,右侧的区域将显示相同的信息与图表一样,但采用数字格式。菜单栏上的按钮和显示/状态栏中的标签必须相当大,因为使用屏幕的用户可能会戴着手套...... 谢谢你的帮助。
I have to develop a touch screen application based on swing for the GUI part.
The application will have to be displayed on different screen, one 15" 4/3 screen and one 20".
What kind of layout stategy should i go for, to keep the same proportion in my components from one screen to another ?
The application will have a kind of status bar at the top displaying some information coming from a server, a menu bar at the bottom, the main central part of the application will display graphs, and on the right an area that will display the same information as the graphs, but in digital format. Buttons from the menu bar and labels in display/status bar have to be quite big as the users that will play with the screen may wear gloves...
Thanks you for help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
任何特定的布局管理器都无法解决这个问题......处理窗口大小不是问题,因为这是可以解决的(使用 ToolKit 来实现)。唯一的问题是你必须确保组件尺寸不是固定的,因为当屏幕尺寸改变时,组件尺寸也必须改变。这是一个特殊的问题,可能需要大量的试验和测试。
any specific layout manager is not gonna do the trick....Handling the window size is not a problem as that can be taken care of (use ToolKit for that). Only problem is that u gotta make sure that, the component sizes are not fixed, cos when screen size changes that gotta change as well. This is a peculiar problem, lot of trail and testing may be required.