[英]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, 我很感激任何帮助,
put JTextArea, better JTextPane to the right area 将JTextArea,更好的JTextPane放到正确的区域
put both ( JList
and JTextArea/JTextPane
) JComponents to the JScrollPane 将两个( JList
和JTextArea/JTextPane
) JComponents放到JScrollPane中
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
侧的JScrollPane
和CENTER
的Details
窗格中
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.