Examples of YesNoCancelMessage


Examples of Messages.YesNoCancelMessage

        jtpCards=cards;
    }
    public void actionPerformed(ActionEvent e)
    {
        String strCardName=((CardPaneController)jtpCards.getSelectedComponent()).getCard().getName();
        YesNoCancelMessage ynmcQuestion=new YesNoCancelMessage(mwcMain, "Virtual cache", "Are you sure that you want to delete card "+strCardName+"?", false);
        ynmcQuestion.setVisible(true);
        if(ynmcQuestion.getResult()==YesNoCancelMessage.YES)
            mwcMain.DeleteCard(strCardName);
        ynmcQuestion=null;
        strCardName=null;
    }
View Full Code Here

Examples of Messages.YesNoCancelMessage

    {
        mwcHost=host;
    }
    public void actionPerformed(ActionEvent e)
    {
        YesNoCancelMessage ynmcQuestion=new YesNoCancelMessage(mwcHost, "Virtual cache", "<html>Are you sure that you want to delete database "+mwcHost.getProfile().getName()+"?<br>The data will be securely deleted without restoration possibility!</html>", false);
        ynmcQuestion.setVisible(true);
        if(ynmcQuestion.getResult()==YesNoCancelMessage.YES)
        {
            Eraser er=new Eraser(mwcHost.getOpenedFile());
            if(!er.Erase())
            {
                OKMessage okm=new OKMessage(mwcHost, "Unavble to delete file!");
View Full Code Here

Examples of Messages.YesNoCancelMessage

                fleOutput=new File(jfcExport.getSelectedFile().getAbsolutePath()+".csv");
        }
        else
        {
           
            YesNoCancelMessage ynmDelete=new YesNoCancelMessage(mwcMain, mwcMain.getTitle(), "The file already exists would you like to replace it?", false);
            ynmDelete.setVisible(true);
            if(ynmDelete.getResult()==YesNoCancelMessage.NO)
            {
                ynmDelete=null;
                jfcExport=null;
                return;
            }
View Full Code Here

Examples of Messages.YesNoCancelMessage

    {
        if((prfMain==null)||(!prfMain.isModifyed()))
            return true;
        else
        {
            YesNoCancelMessage ynmcMessage=new YesNoCancelMessage(this, virtualcache.Main.ApplicationName, "<html>The file was modifyed. Would you like to save changes before exit?</html>", true);
            ynmcMessage.setVisible(true);
            if(ynmcMessage.getResult()==YesNoCancelMessage.CANCEL)
                return false;
            else if(ynmcMessage.getResult()==YesNoCancelMessage.YES)
            {
                slSave.actionPerformed(new ActionEvent(miSave, 1, "", 1));
            }
            return true;
        }
View Full Code Here

Examples of Messages.YesNoCancelMessage

                    else
                        fwDBWriter=new FileWriter(fdCreate.getSelectedFile(), prfMain);
                }
                else
                {
                    YesNoCancelMessage ynmDelete=new YesNoCancelMessage(mwcMain, mwcMain.getTitle(), "The file already exists would you like to replace it?", false);
                    ynmDelete.setVisible(true);
                    if(ynmDelete.getResult()==YesNoCancelMessage.NO)
                    {
                        ynmDelete=null;
                        fdCreate=null;
                        return;
                    }
View Full Code Here

Examples of Messages.YesNoCancelMessage

                fleOutput=new File(jfcExport.getSelectedFile().getAbsolutePath()+".csv");
        }
        else
        {
           
            YesNoCancelMessage ynmDelete=new YesNoCancelMessage(mwcMain, mwcMain.getTitle(), "The file already exists would you like to replace it?", false);
            ynmDelete.setVisible(true);
            if(ynmDelete.getResult()==YesNoCancelMessage.NO)
            {
                ynmDelete=null;
                jfcExport=null;
                return;
            }
View Full Code Here

Examples of Messages.YesNoCancelMessage

    {
        if((prfMain==null)||(!prfMain.isModifyed()))
            return true;
        else
        {
            YesNoCancelMessage ynmcMessage=new YesNoCancelMessage(this, virtualcache.Main.ApplicationName, "<html>The file was modifyed. Would you like to save changes before exit?</html>", true);
            ynmcMessage.setVisible(true);
            if(ynmcMessage.getResult()==YesNoCancelMessage.CANCEL)
                return false;
            else if(ynmcMessage.getResult()==YesNoCancelMessage.YES)
            {
                slSave.actionPerformed(new ActionEvent(miSave, 1, "", 1));
            }
            return true;
        }
View Full Code Here

Examples of Messages.YesNoCancelMessage

                    else
                        fwDBWriter=new FileWriter(fdCreate.getSelectedFile(), prfMain);
                }
                else
                {
                    YesNoCancelMessage ynmDelete=new YesNoCancelMessage(mwcMain, mwcMain.getTitle(), "The file already exists would you like to replace it?", false);
                    ynmDelete.setVisible(true);
                    if(ynmDelete.getResult()==YesNoCancelMessage.NO)
                    {
                        ynmDelete=null;
                        fdCreate=null;
                        return;
                    }
View Full Code Here

Examples of Messages.YesNoCancelMessage

        jtpCards=cards;
    }
    public void actionPerformed(ActionEvent e)
    {
        String strCardName=((CardPaneController)jtpCards.getSelectedComponent()).getCard().getName();
        YesNoCancelMessage ynmcQuestion=new YesNoCancelMessage(mwcMain, "Virtual cache", "Are you sure that you want to delete card "+strCardName+"?", false);
        ynmcQuestion.setVisible(true);
        if(ynmcQuestion.getResult()==YesNoCancelMessage.YES)
            mwcMain.DeleteCard(strCardName);
        ynmcQuestion=null;
        strCardName=null;
    }
View Full Code Here

Examples of Messages.YesNoCancelMessage

                fleImage=new File(strName+".png");
                strName=null;
            }
            if(fleImage.exists())
            {
                YesNoCancelMessage ynMessage=new YesNoCancelMessage(rvcHost, mwcMain.getTitle(), "The file already exists would you like to replace it?", false);
                ynMessage.setVisible(true);
                if(ynMessage.getResult()==YesNoCancelMessage.NO)
                {
                    ynMessage=null;
                    return;
                }
                fleImage.delete();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.