In the listener you get a reference to the component that caused the event from the object passed to the listener. Cast that object to the type of component it is: say a combobox and then you can...
Type: Posts; User: Norm
In the listener you get a reference to the component that caused the event from the object passed to the listener. Cast that object to the type of component it is: say a combobox and then you can...
What happens when you select each of those items? Are the listeners called so that they can save what was selected?
Or when do you determine what was selected?
The steps the program needs to take could be:
Gather the data needed
compute the results
display the results
Can you explain the steps the code takes or should take and what the problems are?
Where do you add those two JLabels to the GUI that is showing? Look at where you have added other components that are showing to see if you have added the missing labels in a way that they are added...
I was asking for the names of the variables for the labels that are not showing so I can find them in the source and see where you haven't added them to the GUI that is being shown.
What are the variable names for the labels that are not showing?
The posted code is an application not an applet. Applets execute in a browser.
Can you explain what the problem is when you execute the code? I see some labels when I compile and execute the...
Where do you add any buttons to a container?
Can you explain what your problem is?
Are you trying to build a GUI displaying multiple components like textboxes and comboboxes?
First you need to have a design of where they all go.
Then use...