示例#1
0
文件: MoveATub.java 项目: wwake/dpij
 private JList<String> machineList() {
   if (machineList == null) {
     machineList = ui.createList(boxes().toArray(new String[0]));
     machineList.addListSelectionListener(this);
   }
   return machineList;
 }
示例#2
0
文件: MoveATub.java 项目: wwake/dpij
 private JList<String> tubList() {
   if (tubList == null) {
     tubList = ui.createList(new String[] {});
     tubList.addListSelectionListener(this);
   }
   return tubList;
 }
示例#3
0
文件: MoveATub.java 项目: wwake/dpij
 private JList<String> boxList() {
   if (boxList == null) {
     boxList = ui.createList(boxes().toArray(new String[0]));
     boxList.addListSelectionListener(this);
   }
   return boxList;
 }
示例#4
0
文件: MoveATub.java 项目: wwake/dpij
  public MoveATub() {
    super(new GridLayout(1, 4));
    setFont(ui.getFont());

    this.add(labeledPanel("From Machine...", boxList()));
    this.add(labeledPanel("Move Tub...", tubList()));
    this.add(labeledPanel("To Machine...", machineList()));
    this.add(buttonPanel(assignButton()));
  }