Package slash.navigation.converter.gui.helpers

Examples of slash.navigation.converter.gui.helpers.AbstractDocumentListener


        formatAndRoutesModel.addListDataListener(new AbstractListDataListener() {
            public void process(ListDataEvent e) {
                handleRoutesUpdate();
            }
        });
        urlModel.addDocumentListener(new AbstractDocumentListener() {
            public void process(DocumentEvent e) {
                String url = urlModel.getShortUrl();
                String title = (url != null ? url + " - " : "") + RouteConverter.getTitle();
                RouteConverter.getInstance().getFrame().setTitle(title);
            }
View Full Code Here


        setContentPane(contentPane);
        setModal(true);
        getRootPane().setDefaultButton(buttonRename);

        final Color defaultBackground = textFieldName.getBackground();
        textFieldName.getDocument().addDocumentListener(new AbstractDocumentListener() {
            public void process(DocumentEvent e) {
                boolean routeNameTooLong = textFieldName.getDocument().getLength() > format.getMaximumRouteNameLength();
                textFieldName.setBackground(routeNameTooLong ? RED : defaultBackground);
                if (routeNameTooLong) {
                    labelResult.setText(MessageFormat.format(RouteConverter.getBundle().getString("rename-position-list-name-too-long"),
View Full Code Here

TOP

Related Classes of slash.navigation.converter.gui.helpers.AbstractDocumentListener

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.