Example #1
0
  @Override
  protected JComponent initEditor() {
    if (editor == null) {
      editor = FRGUIPaneFactory.createBorderLayout_S_Pane();
      JPanel choosePane = FRGUIPaneFactory.createBorderLayout_S_Pane();
      choosePane.add(new UITextField(10), BorderLayout.CENTER);
      UIButton btn = new UIButton("...");
      btn.setPreferredSize(new Dimension(24, 24));
      choosePane.add(btn, BorderLayout.EAST);
      editor.add(choosePane, BorderLayout.NORTH);
      JPanel opPane = FRGUIPaneFactory.createNColumnGridInnerContainer_S_Pane(1);
      editor.add(opPane, BorderLayout.CENTER);

      JPanel filePane1 = FRGUIPaneFactory.createBorderLayout_S_Pane();
      opPane.add(filePane1);
      UILabel label1 =
          new UILabel(
              BaseUtils.readIcon("com/fr/web/images/form/resources/files_up_delete_16.png"));
      filePane1.add(label1, BorderLayout.WEST);
      filePane1.add(new UILabel("file1.png"), BorderLayout.CENTER);

      JPanel filePane2 = FRGUIPaneFactory.createBorderLayout_S_Pane();
      opPane.add(filePane2);
      UILabel label2 =
          new UILabel(
              BaseUtils.readIcon("com/fr/web/images/form/resources/files_up_delete_16.png"));
      filePane2.add(label2, BorderLayout.WEST);
      filePane2.add(new UILabel("file2.xml"), BorderLayout.CENTER);
    }
    return editor;
  }