Package net.ftb.gui.dialogs

Examples of net.ftb.gui.dialogs.ProfileAdderDialog


        }
        _users.clear();
        if (!OSUtils.verifyUUID()) {
            Logger.logError(I18N.getLocaleString("CHANGEDUUID"));
            //TODO: GUI depencency here
            ProfileAdderDialog p = new ProfileAdderDialog(LaunchFrame.getInstance(), "CHANGEDUUID", true);
            p.setVisible(true);
            return;
        }
        try {
            FileInputStream fileInputStream;
View Full Code Here


        users.setBounds(550, 20, 150, 30);
        users.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed (ActionEvent e) {
                if (users.getSelectedIndex() == 1) {
                    ProfileAdderDialog p = new ProfileAdderDialog(getInstance(), true);
                    users.setSelectedIndex(0);
                    p.setVisible(true);
                }
                edit.setEnabled(users.getSelectedIndex() > 1);
            }
        });

        edit.setText(I18N.getLocaleString("EDIT_BUTTON"));
        edit.setBounds(480, 20, 60, 30);
        edit.setVisible(true);
        edit.setEnabled(users.getSelectedIndex() > 1);
        edit.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed (ActionEvent event) {
                if (users.getSelectedIndex() > 1) {
                    ProfileEditorDialog p = new ProfileEditorDialog(getInstance(), (String) users.getSelectedItem(), true);
                    users.setSelectedIndex(0);
                    p.setVisible(true);
                }
                edit.setEnabled(users.getSelectedIndex() > 1);
            }
        });
View Full Code Here

        }

        // check if user profile is selected
        if (users.getSelectedIndex() <= 1) {
            if (UserManager._users.size() == 0) {
                ProfileAdderDialog p = new ProfileAdderDialog(getInstance(), true);
                p.setVisible(true);
            } else {
                ErrorUtils.tossError("Please select a profile!");
                return;
            }
        }
View Full Code Here

TOP

Related Classes of net.ftb.gui.dialogs.ProfileAdderDialog

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.