コンボボックスから値を取り出し、メソッドに挿入したいと考えています。私の問題は、メソッドがNode型の変数を取る必要があることです。私は上記のコードをしようとするとJava netbeansフォーム - コンボボックスから値を取る
ShortestPath.computeRoutes(jComboBoxDepFrom.getSelectedItem().toString());
私は次のエラーを取得する:
method computeRoutes in class busplanner.ShortestPath cannot be applied to given types; required: busplanner.Node found: java.lang.String reason: actual argument java.lang.String cannot be converted to busplanner.Node by method invocation conversion
すぐに[SSCCE](http://sscce.org/)で質問を編集してください – mKorbel
Nodeクラスに文字列を取るコンストラクタまたはセッターはありませんか? – THelper