在 javafx 中调整包装的 swing 组件的大小
我读到您可以调整(并且通常转换)包装的 swing 组件的大小,该组件可以通过 SwingComponent.wrap(myComponent) 获得。我不明白怎么做。我看到返回的类型确实继承了可调整大小,但是如何设置min/maxHeight、h/vfill等属性?
I read that you can resize (and transform in general) a wrapped swing component which can be obtained with SwingComponent.wrap(myComponent). I fail to see how. I see that the returned type does inherit Resizable, but how do I set min/maxHeight, h/vfill and other properties?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这不是最好的解决方案,但它有效。下面是示例代码:
This is not the best solution but it works. Below is sample code:
以下是如何设置所需属性的示例:
希望有所帮助。
Below is an example of how you could set the properties you require:
Hope that helps.