Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Re: NEed Help, Aqi calculator change javascript to JAva Gui.?

    Instead of matching against the full String from the combobox, could you just just the index value?
    A problem when matching full Strings is they can be mistyped and not be the same String.
  2. Re: NEed Help, Aqi calculator change javascript to JAva Gui.?

    Print out what is returned by these methods:
    cmbPol.getSelectedIndex()
    cmbPol.getItemAt(index)
  3. Re: NEed Help, Aqi calculator change javascript to JAva Gui.?

    Add some println statements that print out the values that are returned by the methods so you can see what the computer sees when it executes the if statement.
  4. Re: NEed Help, Aqi calculator change javascript to JAva Gui.?

    I see you have add the listener method now. It was not in post#9

    Now you can start adding the code you were talking about.
  5. Re: NEed Help, Aqi calculator change javascript to JAva Gui.?

    The posted code still has compiler errors that need to be fixed.
  6. Re: NEed Help, Aqi calculator change javascript to JAva Gui.?

    First get the code you posted to compile without errors and execute and show a GUI window.
    When that is done, THEN worry about adding more code. Don't add any more code until the current code...
  7. Re: NEed Help, Aqi calculator change javascript to JAva Gui.?

    if (cmbPol.getItemAt(index) == "3");
    You should use the equals() method for comparing Strings, not the == operator

    Can you explain your problem with the getSelectedIndex() method?


    The posted...
  8. Re: NEed Help, Aqi calculator change javascript to JAva Gui.?

    What have you tried? Please post your current code with questions about where you are having problems.
Results 1 to 8 of 8