[英]Java Swing How can I accomplish a navigator like in the example
For my current project I would like to have a navigator like this: 对于我当前的项目,我想要一个这样的导航器:
But I couldn't find a Swing component that works like that. 但是我找不到这样的Swing组件。 My question now is, does anyone know how to do this and could explain it to me or give me a tip?
我现在的问题是,有人知道该怎么做,可以向我解释一下还是给我小费?
Along the top is a tool bar ( JToolBar
). 顶部是工具栏(
JToolBar
)。 On the left is a tabbed pane ( JTabbedPane
) showing a tree ( JTree
) in the current tab. 左侧是一个选项卡式窗格(
JTabbedPane
),在当前选项卡中显示一棵树( JTree
)。 On the right is a tree table (I would say JTable
, but it is a pure table, not a tree table - you might need to look to 3rd party APIs for that part). 右边是一个树表(我会说
JTable
,但是它是一个纯表,而不是树表-您可能需要寻找该部分的第三方API)。
More generally, see: 更一般地,请参阅:
JTree
for the file-system on the left, & using the native/system Look and Feel (to make it look more like the image above). JTree
的文件浏览器GUI ,以及使用本机/系统外观的Feel(使它看起来更像上图)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.