简体   繁体   中英

how to stop gridpane items shrink with shrinking of window in java fx 2.0

Hello i have that grid pane and there is labels and textboxes in that they are shrinking with shrinking the window but table view is not shrinking. Like rather than shrinking they hide like normal.Is any method to stop that?

Thanks in advance

设置minWidth属性有效:)

Without knowing more about your UI, I can only give a general answer:

To influence the shrink/growth behaviour of components in JavaFX, you have to stack the various simple panes that come with JavaFX into each other, or use a more powerful pane, like MiG Layout for FX 2 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM