ritu mahendru

Greenhorn
+ Follow
since Nov 22, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by ritu mahendru

hi
problem in disposing the SAVE FileDialog
i am popping up the SAVE file dialog if user opts for YES_OPTION of the Dialog box given below
int rt=JOptionPane.showConfirmDialog(this,"Do you want to save changes in the file","Warning ",JOptionPane.YES_NO_OPTION);
if (rt==JOptionPane.YES_OPTION)
{
fileDialog();
}
if (rt==JOptionPane.NO_OPTION)
{
frames[f-1].setVisible(false);
}
the file dialog method contains the followin code
void fileDialog()
{
FileDialog file = new FileDialog (this,"Save File As Text File",FileDialog.SAVE);
file.setFile("*.txt");
file.setDirectory(".");
file.show();
}
the problem is when user clicks on the cancel button of this SAVE file dialog box the dialog box along with the internal frame is dispose
whereas we want that when user clicks on the cancel button only the save dialog box should go
not the internal frame as it usually happens in most of the softwares.
please consider it seriously because it is creating lot of other problem
reply soon
23 years ago
hi
i have a problem that the written below is not executed sequentially:
if (rt==JOptionPane.YES_OPTION)
{
System.out.println("Inside yes of message");
new SaveDialog(this,frmloc);
print();
saveflg = 0;
}
the function print() is executed before SaveDialog is executed
please reply soon its urgent
ritu
23 years ago
hi
i want that when user clicks on the close button of the JInternal frame,
and if there are changes that are to be saved
a Save File dialog box should be poped up
till this point everything is working fine
but if instead of clicking on the save button
user clicks on the cancel button then the Internal frame is also getting disposed
whereas only the File dialog should get disposed
please respond to the problem soon
bye
ritu
the
23 years ago