Hi ,
I have a question regarding JDialog classes.
I have 2 classes that extend JDialog class.
I am creating a empty randomaccessfile when I use Dialog1 class.I close the dialog1 class . Next I need to call the randomaccessfile from dialog2 class.
for this I wrote a getFile() method in dialog1 class.
when I call that method from dialog2 class, I am getting null instead of randomaccessfile.
dialog1 class
{
public RandomAccessFile getFile()
{
return file;
}
}
---------------------------------
dialog2 class
{
Dialog1 d1 = new Dialog1();
RandomAccessFile file = d1.getFile();
//here I need to get the file since I need to write data in the file. but I am getting null here. what should I do?
}
Canot I get any info once I closed the dialog.
I appreciate your help.
thanks,
I have a question regarding JDialog classes.
I have 2 classes that extend JDialog class.
I am creating a empty randomaccessfile when I use Dialog1 class.I close the dialog1 class . Next I need to call the randomaccessfile from dialog2 class.
for this I wrote a getFile() method in dialog1 class.
when I call that method from dialog2 class, I am getting null instead of randomaccessfile.
dialog1 class
{
public RandomAccessFile getFile()
{
return file;
}
}
---------------------------------
dialog2 class
{
Dialog1 d1 = new Dialog1();
RandomAccessFile file = d1.getFile();
//here I need to get the file since I need to write data in the file. but I am getting null here. what should I do?
}
Canot I get any info once I closed the dialog.
I appreciate your help.
thanks,