private void doPlus(Point p) { JRtaTextField datum = new JRtaTextField("DATUM", true); datum.setText(DatFunk.sHeute()); plusdatum pldat = new plusdatum(this); pldat.pack(); pldat.setLocation(p.x, p.y + 20); pldat.setModal(true); pldat.setVisible(true); // System.out.println(abbruch); if (!abbruch && (returnString != null)) { String retDatum = returnString; // System.out.println("In Elternklasse "+retDatum); Vector vec = combobox1.getDataVector(); vec.add(returnString); Comparator<String> comparator = new Comparator<String>() { @Override public int compare(String o1, String o2) { // TODO Auto-generated method stub String s1 = DatFunk.sDatInSQL((String) o1); String s2 = DatFunk.sDatInSQL((String) o2); return s1.compareTo(s2); } }; Collections.sort(vec, comparator); combobox1.setDataVector((Vector) vec.clone()); combobox1.setSelectedItem(returnString); } }
private void doMinus() { if (combobox1.getItemCount() > 0) { int position = combobox1.getSelectedIndex(); Vector vec = combobox1.getDataVector(); vec.remove(position); combobox1.setDataVector(vec); } }
private void doPDFStarten() { String[] werte = { tf1[1].getText().trim().replace(",", "."), tf1[2].getText().trim().replace(",", "."), tf1[3].getText().trim().replace(",", "."), tf1[4].getText().trim().replace(",", "."), tf1[5].getText().trim().replace(",", ".") }; new PDFDummy(combobox1.getDataVector(), werte); }