示例#1
0
  public void display() throws SVNException {

    JPanel pnlMain = new JPanel(new FormLayout("r:p,2dlu,p:g", "p,2dlu:g,p,2dlu,p"));
    CellConstraints cc = new CellConstraints();
    frame = GuiHelper.createFrame(pnlMain, "Create Repository", null);

    Label lblWorkingCopy = new Label("Path:");
    Label sfWorkingCopy = new Label(createRepo.getPath());
    JButton btnClose = new JButton(new CloseAction(frame));
    lblStatus = new Label(" ");

    pnlMain.add(lblWorkingCopy, cc.xy(1, 1));
    pnlMain.add(sfWorkingCopy, cc.xy(3, 1));
    pnlMain.add(btnClose, cc.xywh(1, 3, 3, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
    pnlMain.add(lblStatus, cc.xywh(1, 5, 3, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

    frame.execute();
  }
示例#2
0
 public void close() {
   frame.setVisible(false);
   frame.dispose();
 }