x.createHorizontalStrut (3)) ;. add (jtfOR);
vBoxIn=Box.createVerticalBox () ;. add (hBoxIn1) ;. add (hBoxIn2) ;. add (Box.createVerticalStrut (15)) ;. add (hBoxOr1);
. add (vBoxIn, BorderLayout.CENTER) ;. addTab («Covariance», panel);
/* Кнопки для всіх груп */
/* OK */jbOk=new JButton («Ok!», okI);
. addActionListener (new ActionListener () {void actionPerformed (ActionEvent e) {
Q=jtp.getSelectedIndex ();
et_Covariance EnteredElements=new S4et_Covariance () ;. GetCovariation ();
[EnteredElements.Q] .setValueAt («Covariation:», 1, 1); [EnteredElements.Q] .setValueAt ((double) (EnteredElements. GetCovariation ()), 1, 3);
}
});
/* Cancel */jbCancl=new JButton («Cancel», cancelI);
. addActionListener (new ActionListener () {void actionPerformed (ActionEvent e) {(false);
}
});
/* Help */jbHelp=new JButton («Help», helpI);
. addActionListener (new ActionListener () {void actionPerformed (ActionEvent e) {
}
});
hBoxButtons=Box.createHorizontalBox () ;. add (jbHelp) ;. add (Box.createGlue ());
. add (jbCancl) ;. add (Box.createHorizontalStrut (1)) ;. add (jbOk) ;. add (Box.createHorizontalStrut (15));
vBoxButtons=Box.createVerticalBox () ;. add (jtpCD) ??;. add (hBoxButtons);
(vBoxButtons);
}
void Input_Output_Range () {Q=jtp.getSelectedIndex ();
(- 1 == jtab [Q] .getSelectedColumn ()) {.setText («Sheet» + (jtp.getSelectedIndex () + 1) + »!» + «A1») ;. setText («Sheet» + (jtp.getSelectedIndex () + 1) + »!» + «A1») ;. setText («Sheet» + (jtp.getSelectedIndex () + 1) + »!» + «A1») ;
} {et_Covariance EnteredElements=new S4et_Covariance () ;. GetCovariation ();
. setText («Sheet» + (jtp.getSelectedIndex () + 1) + »!» + jtab [Q] .getColumnName (jtab [Q] .getSelectedColumn ()) + (jtab [Q ] .getSelectedRow () + 1)) ;. setText («Sheet» + (jtp.getSelectedIndex () + 1) + »!» + jtab [Q] .getColumnName (jtab [Q] .getSelectedColumn ()) + (jtab [Q] .getSelectedRow () + 1)) ;. setText («Sheet» + (jtp.getSelectedIndex () + 1) + »!» + jtab [Q] .getColumnName (jtab [Q] .getSelectedColumn ()) + (jtab [Q] .getSelectedRow () + 1));
}
}
}
/* Action */void actionPerformed (final ActionEvent ae) {
Q=jtp.getSelectedIndex (); int row; int col;
/* Covariance dialog */(ae.getSource ()!=null amp; amp; ae.getSource (). equals (Covariance)) {(dialog == null) {= new CovarianceDialog ( Gnumeric.this) ;. Input_Output_Range () ;. setVisible (true);
} else {dialog.setVisible (true);}
}
/* Menu
* File
* New */(ae.getSource ()!=null amp; amp; (ae.getSource (). equals (jbNew) || ae.getSource (). equals (newAction))) {.out.print («New»);
}
//Open (ae.getSource ()!=null amp; amp; (ae.getSource (). equals (jbOpen) || ae.getSource (). equals (openAction))) {.setFileFilter (filter); returnVal=chooser.showOpenDialog (chooser); (returnVal == JFileChooser.APPROVE_OPTION) {
}
}
//Save As (ae.getSource ()!=null amp; amp; (ae.getSource (). equals (jbSaveAs) || ae.getSource (). equals (saveAsAction))) {.setFileFilter (filter); returnVal=chooser.showSaveDialog (chooser); (returnVal == JFileChooser.APPROVE_OPTION) {
}
}
//Save (ae.getSource ()!=null amp; amp; (ae.getSource (). equals (jbSave) || ae.getSource (). equals (saveAction))) {
}
//Print (ae.getSource ()!=null amp; amp; (ae.getSource (). equals (printAction) || ae.getSource (). equals (jbPrint))) { (printerJob.printDialog ()) {
}
}
//Exit (ae.getSource ()!=null amp; amp; (ae.getSource (). equals (exitAction))) {.exit (0);
}
/* Edit */
//undo (ae.getSource ()!=null amp; amp; (ae.getSource (). equals (undoAction) || ae.getS...