Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/main/java/com/chave/ui/MainUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class MainUI {
private JPanel leftPanel;
private JPanel rightPanel;
private JPanel rightTopPanel;
private JPanel rightBottomPanel;
private JSplitPane rightBottomPanel;
private JPanel turnOnPanel;
private JPanel domainOperatePanel;
private JPanel domainMainPanel;
Expand Down Expand Up @@ -152,7 +152,7 @@ private void init() {
leftPanel = new JPanel();
rightPanel = new JPanel();
rightTopPanel = new JPanel();
rightBottomPanel = new JPanel();
rightBottomPanel = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
turnOnPanel = new JPanel();
domainOperatePanel = new JPanel();
domainMainPanel = new JPanel();
Expand Down Expand Up @@ -540,10 +540,9 @@ public boolean isCellEditable(int row, int column) {
rightTopPanel.add(Box.createVerticalStrut(2));

// 创建request/response展示面板
BoxLayout rightBottomLayout = new BoxLayout(rightBottomPanel, BoxLayout.X_AXIS);
rightBottomPanel.setLayout(rightBottomLayout);
rightBottomPanel.add(requestEditor.uiComponent());
rightBottomPanel.add(responseEditor.uiComponent());
rightBottomPanel.setLeftComponent(requestEditor.uiComponent());
rightBottomPanel.setRightComponent(responseEditor.uiComponent());


// 创建右侧分隔面板 上下分隔
rightSplitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, rightTopPanel, rightBottomPanel);
Expand Down