Examples of OKMessage


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

Examples of Messages.OKMessage

        {
            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

Examples of Messages.OKMessage

            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

Examples of Messages.OKMessage

        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

Examples of org.jdesktop.wonderland.common.messages.OKMessage

            CellServerState state = message.getCellServerState();
            CellMO cellMO = getCell();
            cellMO.setServerState(state);

            // Notify the sender that things went OK
            sender.send(clientID, new OKMessage(message.getMessageID()));

            // Fetch a new client-state and set it. Send a message on the
            // cell channel with the new state.
            CellClientState clientState = cellMO.getClientState(null, clientID, null);
            cellMO.sendCellMessage(clientID, new CellClientStateMessage(cellMO.getCellID(), clientState));
View Full Code Here

Examples of org.jdesktop.wonderland.common.messages.OKMessage

                    componentMO.setServerState(compState);
                }
            }

            // Notify the sender that things went OK
            sender.send(clientID, new OKMessage(message.getMessageID()));

            // Fetch a new client-state and set it. Send a message on the
            // cell channel with the new state.
            CellClientState clientState = cellMO.getClientState(null, clientID, null);
            CellClientStateMessage ccsm = new CellClientStateMessage(cellID, clientState);
View Full Code Here

Examples of org.jdesktop.wonderland.common.messages.OKMessage

                }

                // Remove the component and send a success message back to the
                // client
                cellMO.removeComponent(component);
                sender.send(clientID, new OKMessage(message.getMessageID()));

                // Send the same event message to all clients as an asynchronous
                // event
                cellMO.sendCellMessage(clientID, message);
               
View Full Code Here

Examples of org.jdesktop.wonderland.common.messages.OKMessage

                                             WonderlandClientID clientID,
                                             Message message)
    {
        // if we got here, the client has permission to take control.  Just
        // send back an OK message
        return new OKMessage(message.getMessageID());
    }
View Full Code Here

Examples of org.jdesktop.wonderland.common.messages.OKMessage

            // find the appropriate map
            SharedMapImpl map = getMap(message.getMapName(), true);

            if (map.put(clientID, message))
            {
                return new OKMessage(message.getMessageID());
            }

            return new ErrorMessage(message.getMessageID(), "Request vetoed");
        }
View Full Code Here

Examples of org.jdesktop.wonderland.common.messages.OKMessage

            // find the appropriate map
            SharedMapImpl map = getMap(message.getMapName(), false);

            // remove the key from the map if the map exists
            if (map == null || map.remove(clientID, message)) {
                return new OKMessage(message.getMessageID());
            }

            return new ErrorMessage(message.getMessageID(), "Request vetied");
        }
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.