Package Messages

Examples of Messages.InputBox


        strSearch=null;
        intMatchCounter=0;
    }
    public void actionPerformed(ActionEvent e)
    {
        InputBox ibFind=new InputBox(mwcHost, "Search", "The Search string should not be empty!");
        if(strSearch!=null)
            ibFind.setDefaultString(strSearch);
        ibFind.setTitle(mwcHost.getTitle());
        ibFind.setCheckEmpty(true);
        ibFind.setVisible(true);
        if((ibFind.getResult()==null)||(ibFind.getResult().trim().length()==0))
            return;
        if((strSearch==null)||(!strSearch.equals(ibFind.getResult().trim().toLowerCase())))
        {
            intMatchCounter=0;
            strSearch=new String(ibFind.getResult().trim().toLowerCase());
        }
        JTable tblSource=mwcHost.getCurrentTransactionTable();
        if((!search((DefaultTableModel)tblSource.getModel(), tblSource))&&(intMatchCounter>0))
        {
            intMatchCounter=0;
View Full Code Here


    public void actionPerformed(ActionEvent e)
    {
        boolean blnGotResponse=false;
        while(!blnGotResponse)
        {
            InputBox ibNewBalance=new InputBox(mwcMain, "Enter the new balance for card "+((CardPaneController)mwcMain.getSelectedTab()).getCard().getName(), "The field balance is obligatory!");
            ibNewBalance.setTitle("New balance...");
            DecimalFormat nfDec=new DecimalFormat("##0.00");
            ibNewBalance.setDefaultString(nfDec.format(mwcMain.getSelectedTab().getCard().getInitialBalance()));
            ibNewBalance.setCheckEmpty(true);
            ibNewBalance.setVisible(true);
            if(ibNewBalance.getResult()!=null)
            {
                try
                {
                    double dblNewBalance=Double.parseDouble(ibNewBalance.getResult().replace(',', '.'));
                    mwcMain.getSelectedTab().getCard().setInitialBalance(dblNewBalance);
                    mwcMain.getSelectedTab().UpdateBalance();
                    blnGotResponse=true;
                }
                catch(NumberFormatException ex)
View Full Code Here

            Password pcPass=new Password(mwcMain);
            //pcPass.setCheckPasswordStrenght(true);
            pcPass.setVisible(true);
            if(pcPass.getPassword()!=null)
            {
                InputBox inProfile=new InputBox(mwcMain, "Enter the name of this profile:", "The profile name could not be empty!");
                inProfile.setCheckEmpty(true);
                inProfile.setVisible(true);
                if(inProfile.getResult()==null)
                    return;
                Profile prfMain=new Profile(inProfile.getResult());
                inProfile=null;
                FileWriter fwDBWriter;
                if(!fdCreate.getSelectedFile().exists())
                {
                    if((!fdCreate.getSelectedFile().getName().toLowerCase().endsWith(".vcd"))&&(!(new File(fdCreate.getSelectedFile().getName()+".vcd")).exists()))
View Full Code Here

            Password pcPass=new Password(mwcMain);
            //pcPass.setCheckPasswordStrenght(true);
            pcPass.setVisible(true);
            if(pcPass.getPassword()!=null)
            {
                InputBox inProfile=new InputBox(mwcMain, "Enter the name of this profile:", "The profile name could not be empty!");
                inProfile.setCheckEmpty(true);
                inProfile.setVisible(true);
                if(inProfile.getResult()==null)
                    return;
                Profile prfMain=new Profile(inProfile.getResult());
                inProfile=null;
                FileWriter fwDBWriter;
                if(!fdCreate.getSelectedFile().exists())
                {
                    if((!fdCreate.getSelectedFile().getName().toLowerCase().endsWith(".vcd"))&&(!(new File(fdCreate.getSelectedFile().getName()+".vcd")).exists()))
View Full Code Here

        strSearch=null;
        intMatchCounter=0;
    }
    public void actionPerformed(ActionEvent e)
    {
        InputBox ibFind=new InputBox(mwcHost, "Search", "The Search string should not be empty!");
        if(strSearch!=null)
            ibFind.setDefaultString(strSearch);
        ibFind.setTitle(mwcHost.getTitle());
        ibFind.setCheckEmpty(true);
        ibFind.setVisible(true);
        if((ibFind.getResult()==null)||(ibFind.getResult().trim().length()==0))
            return;
        if((strSearch==null)||(!strSearch.equals(ibFind.getResult().trim().toLowerCase())))
        {
            intMatchCounter=0;
            strSearch=new String(ibFind.getResult().trim().toLowerCase());
        }
        JTable tblSource=mwcHost.getCurrentTransactionTable();
        if((!search((DefaultTableModel)tblSource.getModel(), tblSource))&&(intMatchCounter>0))
        {
            intMatchCounter=0;
View Full Code Here

            OKMessage okm=new OKMessage((JFrame)rcHost.getOwner(), "You can not have more then seven groups!");
            okm.setVisible(true);
            okm=null;
            return;
        }
        InputBox ipGroup=new InputBox((JFrame)rcHost.getOwner(), "Enter the name of new group");
        ipGroup.setVisible(true);
        if((ipGroup.getResult()!=null)&&(ipGroup.getResult().trim().length()!=0))
        {
            rcHost.jcbGroups.addItem(ipGroup.getResult());
            rcHost.jcbGroups.setSelectedItem(ipGroup.getResult());
            rcHost.LoadReasons(ipGroup.getResult());
        }
        ipGroup=null;
    }
View Full Code Here

    public void actionPerformed(ActionEvent e)
    {
        boolean blnGotResponse=false;
        while(!blnGotResponse)
        {
            InputBox ibNewBalance=new InputBox(mwcMain, "Enter the new balance for card "+((CardPaneController)mwcMain.getSelectedTab()).getCard().getName(), "The field balance is obligatory!");
            ibNewBalance.setTitle("New balance...");
            DecimalFormat nfDec=new DecimalFormat("##0.00");
            ibNewBalance.setDefaultString(nfDec.format(mwcMain.getSelectedTab().getCard().getInitialBalance()));
            ibNewBalance.setCheckEmpty(true);
            ibNewBalance.setVisible(true);
            if(ibNewBalance.getResult()!=null)
            {
                try
                {
                    double dblNewBalance=Double.parseDouble(ibNewBalance.getResult().replace(',', '.'));
                    mwcMain.getSelectedTab().getCard().setInitialBalance(dblNewBalance);
                    mwcMain.getSelectedTab().UpdateBalance();
                    blnGotResponse=true;
                }
                catch(NumberFormatException ex)
View Full Code Here

            OKMessage okm=new OKMessage((JFrame)rcHost.getOwner(), "You can not have more then seven groups!");
            okm.setVisible(true);
            okm=null;
            return;
        }
        InputBox ipGroup=new InputBox((JFrame)rcHost.getOwner(), "Enter the name of new group");
        ipGroup.setVisible(true);
        if((ipGroup.getResult()!=null)&&(ipGroup.getResult().trim().length()!=0))
        {
            rcHost.jcbGroups.addItem(ipGroup.getResult());
            rcHost.jcbGroups.setSelectedItem(ipGroup.getResult());
            rcHost.LoadReasons(ipGroup.getResult());
        }
        ipGroup=null;
    }
View Full Code Here

TOP

Related Classes of Messages.InputBox

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.