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...
Type: Posts; User: JamesdTurnham
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...
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...
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...
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...
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...
I believe you are referring to JTextField distance and fuelprice?
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...
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...
I've gotten to the text fields are there but no button or anything else.
/* Chapter 7
*
*
*/
import java.awt.*;
import java.awt.event.*;
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...