dcsimg
To prevent the user to close JOPTIONPANE USING the X button IN IT
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   VINOD_JOSEPH
Posted On:   Thursday, August 11, 2011 06:10 PM

optionsConfirm[0] = new String(EJbundle.getString("YES")); optionsConfirm[1] = new String(EJbundle.getString("NO")); int answer = JOptionPane.showOptionDialog(getEJSummTablePanel(), ejRes.getString("161"), ejRes .getString("WARNING_MESSAGE"), JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE, null, optionsConfirm, optionsConfirm[0]) if (answer== JOptionPane.YES_OPTION) { int selectedRow = EJEPanTable.getSelectedRow(); setSelRow(selectedRow); EJNumberHolder ejNumberHolder = getEjNumHolderList().get(getSelRow()); correctSelectedTableRow(correctRequest(ejNumberHolder)); } if (answer == JOptionPane.CLOSED_OPTION) { I   More>>

optionsConfirm[0] = new String(EJbundle.getString("YES"));
optionsConfirm[1] = new String(EJbundle.getString("NO"));
int answer = JOptionPane.showOptionDialog(getEJSummTablePanel(), ejRes.getString("161"), ejRes
.getString("WARNING_MESSAGE"), JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE, null,
optionsConfirm, optionsConfirm[0])

if (answer== JOptionPane.YES_OPTION) {
int selectedRow = EJEPanTable.getSelectedRow();
setSelRow(selectedRow);
EJNumberHolder ejNumberHolder = getEjNumHolderList().get(getSelRow());
correctSelectedTableRow(correctRequest(ejNumberHolder));
}

if (answer == JOptionPane.CLOSED_OPTION) {
If the user click the X button of the JOPTIONPANE it should not close. setdefaultclose operation is in JDialog. I dont know how to implement in JOptionPane

}

   <<Less
About | Sitemap | Contact