xiaoxia 8 years ago
parent
commit
3163cccc98
  1. 18
      designer_form/src/com/fr/design/mainframe/FormHierarchyTreePane.java

18
designer_form/src/com/fr/design/mainframe/FormHierarchyTreePane.java

@ -49,7 +49,6 @@ public class FormHierarchyTreePane extends FormDockView implements HierarchyTree
private ComponentTree componentTree; private ComponentTree componentTree;
private UITreeComboBox treeComboBox; private UITreeComboBox treeComboBox;
private JPanel widgetPane = FRGUIPaneFactory.createBorderLayout_L_Pane();
// richer:搜寻树节点的的文本框 // richer:搜寻树节点的的文本框
// private UITextField searchTextField; // private UITextField searchTextField;
// private SearchResultPane searchResult; // private SearchResultPane searchResult;
@ -116,16 +115,15 @@ public class FormHierarchyTreePane extends FormDockView implements HierarchyTree
if(childCount == NODE_LENGTH){ if(childCount == NODE_LENGTH){
adjustPosition(treeModel, formDesigner); adjustPosition(treeModel, formDesigner);
} }
widgetPane.setBorder(BorderFactory.createEmptyBorder(3, 2, 3, 0)); JPanel widgetPane = new JPanel();
widgetPane.setBorder(BorderFactory.createEmptyBorder(3, 0, 3, 0));
widgetPane.setLayout(FRGUIPaneFactory.createBorderLayout());
add(widgetPane, BorderLayout.NORTH); add(widgetPane, BorderLayout.NORTH);
widgetPane.add(new UILabel(Inter.getLocText("FR-Designer-Selected_Widget") + " ",
if(treeComboBox == null) { SwingConstants.HORIZONTAL), BorderLayout.WEST);
widgetPane.add(new UILabel(Inter.getLocText("FR-Designer-Selected_Widget") + " ", treeComboBox = new UITreeComboBox(componentTree);
SwingConstants.HORIZONTAL), BorderLayout.WEST); widgetPane.add(treeComboBox, BorderLayout.CENTER);
treeComboBox = new UITreeComboBox(componentTree); add(widgetPane, BorderLayout.CENTER);
widgetPane.add(treeComboBox, BorderLayout.CENTER);
add(widgetPane, BorderLayout.CENTER);
}
// UIScrollPane scrollPane = new UIScrollPane(componentTree); // UIScrollPane scrollPane = new UIScrollPane(componentTree);

Loading…
Cancel
Save