Package cz.cuni.mff.inetpaint

Examples of cz.cuni.mff.inetpaint.ConnectionManager


     * Vytvoří nový objekt této třídy
     * @param JID Jabber ID kontaktu, se kterým se vede komunikace
     * @param fontSize Velikost písma
     */
    public MessagesPanel(String JID, int fontSize) {
        ConnectionManager manager = ConnectionManager.getInstance();
       
        this.nameFor = manager.getNameFor(JID);
        this.nameFrom = manager.getLocalName();
       
        String size = Integer.toString(fontSize);
       
        messagesTextPane = new JEditorPane("text/html", "<html>" +
                "<head>" +
View Full Code Here


        // podarilo se. ted jen zalozit lokalni profil a treba logout + login, a zavrit okno.
        addExistingAccount(username, server, password, savePasswordCB.isSelected());
       
        if(loginCB.isSelected()) {
            ConnectionManager man = ConnectionManager.getInstance();
            if(man.isLoggedIn()) {
                man.disconnect();
            }
           
            man.login(username, server, password, "", Mode.available);                  
        }
       
        processWindowEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));
    }
View Full Code Here

        addExistingAccount(username, server, password, savePasswordExistingCB.isSelected());
        processWindowEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));

        if(loginExistingCB.isSelected()) {
            ConnectionManager man = ConnectionManager.getInstance();
            if(man.isLoggedIn()) {
                man.disconnect();
            }
           
            man.login(username, server, password, "", Mode.available);                  
        }
       
    }
View Full Code Here

TOP

Related Classes of cz.cuni.mff.inetpaint.ConnectionManager

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.