简体   繁体   English

如何创建一个界面,显示左侧的对象和右侧每个对象的详细信息?

[英]How to create an interface which shows the objects in left side and detail for each object in the right side?

I'm not sure which container or component can help to create the following menu bar. 我不确定哪个容器或组件可以帮助创建以下菜单栏。 I already created the menu bar and status bar at the bottom. 我已经在底部创建了菜单栏和状态栏。 But I have no idea which interface is the best. 但我不知道哪个界面最好。

在此输入图像描述

I apprecite any help, 我很感激任何帮助,

The core content (the part in the middle) is using currently using a JSplitPane 核心内容(中间部分)正在使用当前使用的JSplitPane

You can get similar look using a BorderLayout (on something like) a JPanel . 您可以使用BorderLayout (类似于) JPanel获得类似的外观。 You'd place the index in a JScrollPane down the WEST side of the container and the Details pane in the CENTER 您将索引放在容器的WEST侧的JScrollPaneCENTERDetails窗格中

You might also find a CardLayout useful you need to switch panes from the content area 您可能还会发现从内容区域切换窗格所需的CardLayout非常有用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么每个的左侧尺寸不等于右侧? - Why the left side size in for each is not equal to the right side? 如何创建在右侧包含用于在左侧显示的选项卡的SplitPane? - How can I create SplitPane that right side contains tabs for displaying on left side? 创建页面的左右垂直线 - Android Java iTextPdf - Create right and left side vertical line of the page - Android Java iTextPdf 如何在 java 中创建从右到左的数字模式? - How can i create a numeric pattern that starts from right to left side in java? 创建对象时左侧类指示的是什么,右侧类指示什么? - While creating an object what does left side class indicates and right side class indicates? 如何在Eclipse中将触摸屏左右分开? - How can separate the touchscreen to left and right side in Eclipse? 如何区分显示屏右侧/左侧的水龙头? - How to distinct between a tap on the right/ left side of the display? 如何判断一个点是在线段的左侧还是右侧? - How to tell if a point is on the left or right side of a line segment? 如何创建一个 java 程序使数字向右对齐? - How can I create a java program which makes numbers align-right side? JavaFX8如何从左侧而不是从右侧设置标签的省略号? - JavaFX8 How to set a label's ellipsis from the left-side not from the right-side?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM