Hi all,
I am doing one project called PERSONAL EXPENSES DATABASE,it has a more than 10 modules.some of that MAINLOGIN,DATAMANIPULATORVIEW,UPDATERVIEW,STOREDAT A,UPDATER,UPDATERVIEW and so on.
DATAMANIPULATORVIEW is used to store data in the database as well as displaying the existing data in database,so that i have created a interface called DATADISPLAYER and it also implemented by DATAMANIPULATORVIEW.
DATADISPLAYER has two method declaration called retrieveData(),displayData().
i write structure of two classes on which i got the problem,
1.
public class DataManipulatorView,implements ActionListener,Runnable,DataDisplayer{
//some text field's,lable's and button's
public DataManipulatorView(){
}
public void run(){
}
public void addComponent(){
}
public void actionPerformed(){
}
public void retrieveData(){
//retrieve data from database and store it on local variables
}
public void displayData(){
all text field's are filled with local variables using setText()//here i got null pointer exception
}
public static void main(){
}
}
2.
public class UpdaterView{
//instance variable declaration
public UpdaterView(){
}
public void run(){
}
public actionPerformed(ActionEvent e){
if(e.getSource()==update){
DataManipulaterView dm=new DataManipulaterView();
dm.retrieveData();
dm.displayData();//when calling i got null pointer exception
}
public static main(){
}
}
I bold some parts on above program in which i am facing an error
kindly help me
thank you