Nifty button problem

I have a nifty button that is not working. I know it should be though because I have other buttons working. If I call the button function from another button function it works fine. I have no idea why it isnt working. any ideas? or would you like to see some code?

I am getting problems when I try adding breakpoints in my code. The debug console says this



Not able to submit breakpoint MethodBreakpoint [Empowerment.HUDScreenController].goSolve ‘()Lvoid;’, reason: Method ‘goSolve’ with signature ‘()Lvoid;’ does not exist in class Empowerment.HUDScreenController.

Not able to submit breakpoint LineBreakpoint HUDScreenController.java : 39, reason: No executable location available at line 39 in class Empowerment.HUDScreenController.



Here is my code



hud.xml code

[xml]<panel id=“panel_right4” width=“100%” height =“3%” childLayout=“center”>

<control name=“button” label=“Solve” id=“SolveButton” align=“center” valign=“center” visibleToMouse=“true”>

<interact onClick=“goSolve()”/>

</control>

</panel>[/xml]



Hud controller code

[java] public void goSolve(){

app.solve();

}

[/java]



code in main file that goSolve calls



[java]public void solve(){

System.out.println(“Solving . . .”);

EGridPhysicsV2 solver = new EGridPhysicsV2();



for (int i = 0; i < gen.size(); i++){

solver.genlist = new CyganskiGenerator(gen.get(i).getMinPower(), gen.get(i).getMaxPower(), gen.get(i).getInstPower(), gen.get(i).getFuelUnits(), gen.get(i).getNode());

solver.numgens++;

}



for (int i = 0; i < con.size(); i++){

solver.conslist = new CyganskiConsumer(con.get(i).getMinPowerConsumed(), con.get(i).getMaxPowerConsumed(), con.get(i).getAvgPowerConsumed(), con.get(i).getNode());

solver.numcons++;

}



for(int i = 0; i < lines.size(); i++){

solver.linelist = new CyganskiLine(lines.get(i).getMaxCapacity(), lines.get(i).getAvgCapacity(), lines.get(i).getLength(), lines.get(i).getFromNode(), lines.get(i).getToNode());

solver.numlines++;

}



solver.SolveGrid();



System.out.println(“Solved”);

}[/java]

I posted another thing in another place and he said the jars werent up to date and to try clean and build the project. and it worked.

For everyone’s reference, that “other place” is this thread :slight_smile: