Search:

Type: Posts; User: JamesdTurnham

Search: Search took 0.09 seconds.

  1. Re: Trying to get two textBoxes and two JComboButtons to work with three dropdown boxes.

    the listeners are in the code, but that's the part I don't know is what or how to get the listener to "hear" what is being selected. I presume I add the code to this part "public void...
  2. Re: Trying to get two textBoxes and two JComboButtons to work with three dropdown boxes.

    I've got this part figured out from a previous assignment. What I haven't figured out is when I select say Bemidji to Darlington the coding to indicate that Bemidji was selected as the start and...
  3. Re: Trying to get two textBoxes and two JComboButtons to work with three dropdown boxes.

    It's supposed to calculate the total miles traveled by cost per gallon either manually input into the text field or using the dropdown for vehicle type. In essence user selects drop down for vehicle...
  4. Re: Trying to get two textBoxes and two JComboButtons to work with three dropdown boxes.

    Now if your wiling I need to code this so that when I select the various drop downs it will display my total costs. First I have to get the distance for all 6 drop down options and do all the...
  5. Re: Trying to get two textBoxes and two JComboButtons to work with three dropdown boxes.

    JLabel Miles = new JLabel("Miles planning to travel");
    JTextField distance = new JTextField(10);
    JLabel Fuelcost = new JLabel("What is the price per gallon/litre?");
    JTextField...
  6. Re: Trying to get two textBoxes and two JComboButtons to work with three dropdown boxes.

    I believe you are referring to JTextField distance and fuelprice?
  7. Re: Trying to get two textBoxes and two JComboButtons to work with three dropdown boxes.

    If i'm understanding your question correctly i've added them to the center.Panel and south.Panel and then added those panels to the layout in the container.

    --- Update ---



    For the text...
  8. Re: Trying to get two textBoxes and two JComboButtons to work with three dropdown boxes.

    I am trying to create an applet that will show drop down boxes that display fuel types (have that working) along with 6 cities to start from and destinations (got those also working). I am to have 2...
  9. Re: Trying to get two textBoxes and two JComboButtons to work with three dropdown boxes.

    I've gotten to the text fields are there but no button or anything else.


    /* Chapter 7
    *
    *
    */

    import java.awt.*;
    import java.awt.event.*;
  10. Trying to get two textBoxes and two JComboButtons to work with three dropdown boxes.

    I am not getting any compiling errors except warnings but the layout is working like it should. Using my text book I can create a JFrame with the panel and text boxes and I can create the JFrame...
Results 1 to 10 of 10