/** ************************************************************************* * * Constructor */
 protected BTStashResultsDialog(
     BTState appState, String titleResource, Dimension size, int columns) {
   super(appState.getTopFrame(), appState.getRMan().getString(titleResource), true);
   haveResult_ = false;
   appState_ = appState;
   rMan_ = appState_.getRMan();
   setSize(size.width, size.height);
   cp_ = (JPanel) getContentPane();
   cp_.setBorder(new EmptyBorder(20, 20, 20, 20));
   cp_.setLayout(new GridBagLayout());
   gbc_ = new GridBagConstraints();
   rowNum_ = 0;
   ds_ = new DialogSupport(this, appState_, gbc_);
   columns_ = columns;
 }
Ejemplo n.º 2
0
 /** ************************************************************************* * * Command */
 public void doRemove() {
   if (appState_.getPathController().pathHasOnlyOneStop()) {
     ResourceManager rMan = appState_.getRMan();
     int ok =
         JOptionPane.showConfirmDialog(
             appState_.getTopFrame(),
             rMan.getString("treePathDeleteStop.oneStopWarningMessage"),
             rMan.getString("treePathDeleteStop.oneStopWarningMessageTitle"),
             JOptionPane.YES_NO_OPTION);
     if (ok != JOptionPane.YES_OPTION) {
       return;
     }
   }
   appState_.getPathController().deleteCurrentStop(dacx_);
   appState_.getPathControls().handlePathButtons();
   return;
 }
 /**
  * ************************************************************************* * * Finish building
  */
 protected void finishConstructionWithMultiExtraLeftButtons(List<JButton> xtraButtonList) {
   ds_.buildAndInstallButtonBoxWithMultiExtra(cp_, rowNum_, columns_, false, xtraButtonList, true);
   setLocationRelativeTo(appState_.getTopFrame());
   return;
 }
 /**
  * ************************************************************************* * * Finish building
  */
 protected void finishConstruction() {
   ds_.buildAndInstallButtonBox(cp_, rowNum_, columns_, false, true);
   setLocationRelativeTo(appState_.getTopFrame());
   return;
 }