Package org.apache.batik.apps.svgbrowser.NodePickerPanel

Examples of org.apache.batik.apps.svgbrowser.NodePickerPanel.NameEditorDialog


         */
        protected class TreeNodeAdder implements ActionListener {

            public void actionPerformed(ActionEvent e) {
                // Prompt for the node name
                NameEditorDialog nameEditorDialog = new NameEditorDialog(
                        DOMViewer.this);
                nameEditorDialog.setLocationRelativeTo(DOMViewer.this);
                int results = nameEditorDialog.showDialog();
                if (results == NameEditorDialog.OK_OPTION) {
                    Element elementToAdd = document.createElementNS(
                            SVGConstants.SVG_NAMESPACE_URI, nameEditorDialog
                                    .getResults());
                    if (rightPanel.getComponentCount() != 0) {
                        rightPanel.remove(0);
                    }
                    rightPanel.add(elementPanel);
View Full Code Here

TOP

Related Classes of org.apache.batik.apps.svgbrowser.NodePickerPanel.NameEditorDialog

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.