在FlowPane中添加固定定位的Combobox [英] Add fixed positioned Combobox inside FlowPane

查看:248
本文介绍了在FlowPane中添加固定定位的Combobox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 FlowPane ,它将包含许多基于 BorderPane 的面板。

I have a FlowPane which will hold many panels which are based on BorderPane.

我想创建 ComboBox ,它将用于按类型过滤面板。当面板超出可见区域时,面板将被 ScrollPane 滚动。

I want to create ComboBox which will be used to filter the Panels by type. And the panels will be scrolled by ScrollPanewhen they exceed the visible area.

我希望组合框滚动以及ScrollPane中的FlowPane。我想得到显示在图片中的结果。你能告诉我如何才能得到理想的结果吗?我可以非常轻松地创建BorderPanes并将它们插入到 FlowPane 中,挑战是如何定位组合框并始终保持在此位置。

I want the combo box to scroll along with the FlowPane inside the ScrollPane. I want to get the result which is displayed into the picture. Can you tell me how I can get the desired result. I can very easy create BorderPanes and insert them into the FlowPane and the challenge is how to position the Combo Box and keep it always at this position.

推荐答案

为什么不简单地使用另一个边框窗格?

Why don't you simply use another border pane?


  1. 将组合框添加到顶部(或在
    上添加组合框的其他流动窗格)

  2. 将Flowpane添加到中心

  3. 然后使用滚动窗格滚动整个边框窗格?

什么可以更简单?

这篇关于在FlowPane中添加固定定位的Combobox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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