Jan: TextValuePair cannot resolved

Beitrag lesen

Tag zusammen
Folgendes Problem. Eine App mit ComboBoxen die ich mit jbuilder erstellt hab und da auch sauber läuft, will ich nun mit einem andern tool compilieren, erhalte bei den ComboBoxen, bei denen ich werte als newTextvaluepair einfüge im titel gennannte Meldung, und der Dialog wird dann unvollständig dargestellt..

hier der Code (gekürzt auf ComboBoxen und TextValePair Klasse):
package pendenz;

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.border.*;

public class dlgSuche extends JDialog {
  DB DB = new DB();

JComboBox jComboBoxTyp = new JComboBox();
  JComboBox jComboBoxPrioritat = new JComboBox();
  JComboBox jComboBoxKunde = new JComboBox();
  JComboBox jComboBoxStatus = new JComboBox();

public dlgSuche(Frame frame, String title, boolean modal) {
    super(frame, title, modal);
    try {
      jbInit();
      pack();
    }
    catch(Exception ex) {
      ex.printStackTrace();
    }
  }

public dlgSuche() {
    this(null, "", false);
  }

private void jbInit() throws Exception {

panel1.setLayout(null);
    panel1.setMinimumSize(new Dimension(600, 415));
    panel1.setPreferredSize(new Dimension(600, 415));

getContentPane().add(panel1);
    panel1.add(jComboBoxTyp);
    jComboBoxTyp.setBounds(145, 85, 120, -1);

panel1.add(jComboBoxPrioritat);
    jComboBoxPrioritat.setBounds(145, 300, 120, -1);

panel1.add(jComboBoxKunde);
    jComboBoxKunde.setBounds(385, 205, 120, -1);

panel1.add(jComboBoxStatus);
    jComboBoxStatus.setBounds(385, 300, 120, -1);

}

public void setBox()
  {
    jComboBoxTyp.removeAllItems();
    jComboBoxPrioritat.removeAllItems();
    jComboBoxStatus.removeAllItems();
    jComboBoxKunde.removeAllItems();

try
    {
      Object[][] Typ = DB.GetData(1, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
      Object[][] Prioritat = DB.GetData(2, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
      Object[][] Status = DB.GetData(3, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
      Object[][] Kunde = DB.GetData(4, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");

jComboBoxTyp.addItem(new TextValuePair("", ""));
      for(int r = 0; r < Typ.length; r++)
      {
        jComboBoxTyp.addItem(new TextValuePair(Typ[r][1].toString(), Typ[r][0].toString()));
      }

jComboBoxPrioritat.addItem(new TextValuePair("", ""));
      for(int r = 0; r < Prioritat.length; r++)
      {
        jComboBoxPrioritat.addItem(new TextValuePair(Prioritat[r][1].toString(), Prioritat[r][0].toString()));
      }

jComboBoxStatus.addItem(new TextValuePair("", ""));
      for(int r = 0; r < Status.length; r++)
      {
        jComboBoxStatus.addItem(new TextValuePair(Status[r][1].toString(), Status[r][0].toString()));
      }

jComboBoxKunde.addItem(new TextValuePair("", ""));
      for(int r = 0; r < Kunde.length; r++)
      {
        jComboBoxKunde.addItem(new TextValuePair(Kunde[r][1].toString(), Kunde[r][0].toString()));
      }
    }
    catch(Exception ex) {
      ex.printStackTrace();
    }
  }

void jButtonSuche_actionPerformed(ActionEvent e)
  {
    dlgSuchergebnisse.tblSuchergebnisse.removeAllRows();
   dlgSuchergebnisse.setTable(jTextFieldBezeichnung.getText(), jTextAreaBeschreibung.getText(), jTextFieldStartAm.getText(), jTextFieldEndeAm.getText(), ((TextValuePair)jComboBoxPrioritat.getSelectedItem()).value, ((TextValuePair)jComboBoxTyp.getSelectedItem()).value, ((TextValuePair)jComboBoxStatus.getSelectedItem()).value,  ((TextValuePair)jComboBoxKunde.getSelectedItem()).value);
   dlgSuchergebnisse.show();
  }

void jButtonAbbrechen_actionPerformed(ActionEvent e) {
    this.hide();
  }
}

final class TextValuePair {
  final String text;
  final String value;

TextValuePair(String text, String value) {
    this.text = text;
    this.value = value;
  }
  public String toString() {
    return this.text;
  }
}