xiaoxia 8 years ago
parent
commit
760aff6304
  1. 10
      designer_form/src/com/fr/design/mainframe/widget/UITreeComboBox.java

10
designer_form/src/com/fr/design/mainframe/widget/UITreeComboBox.java

@ -31,11 +31,11 @@ public class UITreeComboBox extends JComboBox{
public UITreeComboBox(ComponentTree componentTree){ public UITreeComboBox(ComponentTree componentTree){
this.setTree(componentTree); this.setTree(componentTree);
tree.getDesigner().addDesignerEditListener(new TreeComboBoxDesignerEditAdapter()); tree.getDesigner().addDesignerEditListener(new TreeComboBoxDesignerEditAdapter());
for(int i=0; i<tree.getRowCount(); i++) // for(int i=0; i<tree.getRowCount(); i++)
{ // {
tree.expandRow(i); // tree.expandRow(i);
} // }
setPreferredSize(new Dimension(30, 20)); setPreferredSize(new Dimension(200, 20));
} }
/** /**

Loading…
Cancel
Save