Package Messages

Examples of Messages.OKMessage


                }
                fleImage.delete();
            }
            if(!fleImage.createNewFile())
            {
                OKMessage okm=new OKMessage(mwcMain, "Unable to save the file!");
                okm.setVisible(true);
                okm=null;
            }
            //BufferedImage biImg=(BufferedImage)img;//new BufferedImage(cmpSource.getWidth(), cmpSource.getHeight(), BufferedImage.TYPE_INT_RGB);
            ImageIO.write(biImg, "png", fleImage);
            //ImageIO.write(biImg, "gif", fleImage);//there is no gif Image writer in java v.1.5
            //ImageIO.createImageOutputStream(this);
            fdSave=null;
          //  biImg=null;
            strDirrectory=null;
        }
        catch(IOException ex)
        {
            OKMessage okm=new OKMessage(mwcMain, "Unable to save the file!");
            okm.setVisible(true);
            okm=null;
        }
    }
View Full Code Here


        {
            IniHolder.WriteValue("DataWorkDir", fdOpen.getSelectedFile().getAbsolutePath().substring(0, fdOpen.getSelectedFile().getAbsolutePath().lastIndexOf((int)File.separatorChar)));
            File fleOpened=fdOpen.getSelectedFile();
            if(!fleOpened.exists())
            {
                OKMessage okm=new OKMessage(mwcMain, "File "+fleOpened.getName()+" was not found!");
                okm.setVisible(true);
                okm=null;
                return;
            }
            Password pcPass=new Password(mwcMain);
            pcPass.setVisible(true);
            if(pcPass.getPassword()!=null)
            {
                mwcMain.CloseDatabase();
                Profile prfMain=(new FileReader(fleOpened)).read(pcPass.getPassword());
                if(prfMain!=null)
                {
                    prfMain.resetModifyed();
                    mwcMain.setProfile(prfMain);
                    mwcMain.setOpenedFile(fleOpened);
                    mwcMain.setPassword(pcPass.getPassword());
                }
                else
                {
                    OKMessage okm=new OKMessage(mwcMain, "Incorrect password or broken file!");
                    okm.setVisible(true);
                    okm=null;
                }
            }
            pcPass.erasePass();
            pcPass=null;
View Full Code Here

            txtInitBal.setText("");
            lblBalance.setText(mwcHost.getSelectedTab().getFormat().format(crdChange.getBalance()));
        }
        catch(NumberFormatException ex)
        {
            OKMessage okm=new OKMessage(mwcHost, "<html>Initial Balance field should contain a numeric value in ###.## format!</html>");
            okm.setVisible(true);
            okm=null;
        }
    }
View Full Code Here

        if(ynmcQuestion.getResult()==YesNoCancelMessage.YES)
        {
            Eraser er=new Eraser(mwcHost.getOpenedFile());
            if(!er.Erase())
            {
                OKMessage okm=new OKMessage(mwcHost, "Unavble to delete file!");
                okm.setVisible(true);
                okm=null;
            }
            else
            {
                mwcHost.getProfile().resetModifyed();
View Full Code Here

TOP

Related Classes of Messages.OKMessage

Copyright © 2018 www.massapicom. 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.