public void Diloagbox( Object my)
{
{
int re=JOptionPane.showInternalConfirmDialog(my,"Are You Want to Close","Choose yes or no",JOptionPane.YES_NO_OPTION);
if(re==JOptionPane.YES_OPTION)
{
my.dispose(); }
}
public void DiloagboxError(String my)
{
javax.swing.JPanel jp=new javax.swing.JPanel();
JOptionPane.showMessageDialog((Component)null,my,"Please Fill Correct Information",JOptionPane.ERROR_MESSAGE);
}
if(re==JOptionPane.YES_OPTION)
{
my.dispose(); }
}
public void DiloagboxError(String my)
{
javax.swing.JPanel jp=new javax.swing.JPanel();
JOptionPane.showMessageDialog((Component)null,my,"Please Fill Correct Information",JOptionPane.ERROR_MESSAGE);
}
public void MessageBox(String my)
{
JOptionPane.showMessageDialog(this,my);
}
No comments:
Post a Comment