Can somebody help me...............
I actually dont know how to explain this but here it goes........
I created a program which is a shipment calculator. There is part there were I have a Combobox which you can choose what type of Service you want to have.
Now the thing that I need help on is how do you this:
when you select a certain item in a combobox I the delivery time and price will appear on one of my textfields.
example: I selected express service after selecting it 24hrs willl apear in my textbox and if I slect Critical 5 hrs will appear in my text box.
I dont know which method to use I tried getItemAt but it wont work on a If statement.
here is my code for that portion
servi.setBounds(10,340,199,20); add(servi); servi.addItemListener(new ItemListener(){ public void itemStateChanged(ItemEvent event){ if(event.getStateChange()==ItemEvent.SELECTED){ } } } );