Package org.jdesktop.swingx.auth

Examples of org.jdesktop.swingx.auth.DefaultUserNameStore


     * Sets the user name store for this panel.
     * @param store
     */
    public void setUserNameStore(UserNameStore store) {
        UserNameStore oldStore = getUserNameStore();
        UserNameStore newStore = store == null ? new DefaultUserNameStore() : store;

        //newStore is guaranteed to be nonnull
        if (!newStore.equals(oldStore)) {
            userNameStore = newStore;

View Full Code Here


        } catch (Exception e) {}
        //login
        try {
            final JDBCLoginService loginService = new JDBCLoginService(
                    "sun.jdbc.odbc.JdbcOdbcDriver", "jdbc:odbc:northwind");
            DefaultUserNameStore userNames = new DefaultUserNameStore();
            Preferences appPrefs = Preferences.userNodeForPackage(Test.class);
            userNames.setPreferences(appPrefs.node("login"));
            final JXLoginPanel.JXLoginFrame frame = JXLoginPanel.showLoginFrame(
                    loginService, null, userNames);
            frame.getPanel().setBannerText("Welcome to Postila");
                    frame.addWindowListener(new WindowAdapter() {
                public void windowClosed(java.awt.event.WindowEvent e) {
View Full Code Here

TOP

Related Classes of org.jdesktop.swingx.auth.DefaultUserNameStore

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.