Esempio n. 1
0
 @Override
 public void actionPerformed(ActionEvent arg0) {
   String cmd = arg0.getActionCommand();
   if (cmd.equals("connect")) {
     doHoleTermine();
     // doDBFEinlesen();
     return;
   }
   if (cmd.equals("plus")) {
     doPlus(((JButton) arg0.getSource()).getLocationOnScreen());
     tagelab.setText(Integer.toString(combobox1.getItemCount()));
     return;
   }
   if (cmd.equals("minus")) {
     doMinus();
     tagelab.setText(Integer.toString(combobox1.getItemCount()));
     return;
   }
   if (cmd.equals("sortieren")) {
     doSortieren();
     return;
   }
   if (cmd.equals("zeilig")) {
     doZeilig(combobox2.getSelectedIndex());
     return;
   }
   if (cmd.equals("drucken")) {
     doPDFStarten();
     return;
   }
   if (cmd.equals("schliessen")) {
     System.exit(0);
     return;
   }
 }
Esempio n. 2
0
 private void doMinus() {
   if (combobox1.getItemCount() > 0) {
     int position = combobox1.getSelectedIndex();
     Vector vec = combobox1.getDataVector();
     vec.remove(position);
     combobox1.setDataVector(vec);
   }
 }
Esempio n. 3
0
 private void doHoleTermine() {
   String termine = holeRezFeld("termine", "rez_nr='" + "RH" + tf1[0].getText().trim() + "'");
   Vector<String> vec = new Vector<String>();
   if (termine.length() > 0) {
     String[] terms = termine.split("\n");
     for (int i = 0; i < terms.length; i++) {
       String[] tag = terms[i].split("@");
       vec.add(tag[0].toString());
     }
     combobox1.setDataVector((Vector<String>) vec.clone());
     combobox1.setMaximumRowCount(25);
     tagelab.setText(Integer.toString(combobox1.getItemCount()));
     combobox1.validate();
   }
 }