How to create an interface which shows the objects in left side and detail for each object in the right side?
-
02-07-2021 - |
質問
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 JList to the left side
put JTextArea, better JTextPane to the right area
put both (
JList
andJTextArea/JTextPane
) JComponents to the JScrollPane
他のヒント
The core content (the part in the middle) is using currently using a JSplitPane
You can get similar look using a BorderLayout
(on something like) a JPanel
. You'd place the index in a JScrollPane
down the WEST
side of the container and the Details
pane in the CENTER
You might also find a CardLayout
useful you need to switch panes from the content area
所属していません StackOverflow