Hello friends,
i can't post my code but i can only give idea what i tried
i need to take values from a database field and show in choice object to choose any one of them
i have
method in
applet
project having some model
java file to set commands and set related variables and objects
i added a command to get details from database and added database functioning method in model file
on applet file,in
method i made a choice object
i call method to set command to getDetails
i code to remove all existing items from choice
i checking in for loop for the no. of records in database existing and in loop i trying to add as choice items by casting the vector object i am storing the database value to
String
then i wrote code to select 1st record to select by default and the i coded to show the choice object
and after that i am adding in Panel to show on screen
i am getting
: stating null-pointer exception at the code line where i call method to set command for model class
i am stuck now... any helps will be helpful
please help me
thank you all in advance