Package javax.swing

Examples of javax.swing.JSeparator


        // add(new AddNewViewButton("Add Saved View..."));
        add(new AddNewViewButton(i18n.get(this,
                "addSavedView",
                "Add Saved View...")));
        add(dataBoundsMenu);
        add(new JSeparator());
    }
View Full Code Here


        dataBoundsMenu.setVisible(addDataViews);

        if (addDefaults) {
            addDefaultLocations();
            add(new JSeparator());
        }

        String locationList = props.getProperty(prefix + ViewListProperty);

        if (locationList != null) {
View Full Code Here

            }

            for (int i = 0; i < nMenuItems; i++) {
                String itemPrefix = (String) menuItems.elementAt(i);
                if (itemPrefix.equals(SeparatorProperty)) {
                    add(new JSeparator());
                    continue;
                }

                String classProperty = itemPrefix + ".class";
                String className = props.getProperty(classProperty);
View Full Code Here

                "Color"));
        colorMenu.add(lineColorItem);
        colorMenu.add(fillColorItem);
        colorMenu.add(selectColorItem);
        colorMenu.add(mattingColorItem);
        colorMenu.add(new JSeparator());
        colorMenu.add(mattedEnabledItem);
       
        fillColorItem.setEnabled(enableFillPaintChoice);
        return colorMenu;
    }
View Full Code Here

                }
            }
        });
        _fileMenu.add(_openFileChooser);
        _fileMenu.add(_saveFileChooser);
        _fileMenu.add(new JSeparator());
        _fileMenu.add(_showTable);
        _fileMenu.add(new JSeparator());
        _fileMenu.add(_httpExample);
        _fileMenu.add(new JSeparator());
        _fileMenu.add(_setModel);
        _addShape.setEnabled(false); //Disable ability for user to
                                     // add a shape until they
                                     // initialize the DbfTableModel
        _fileMenu.add(_addShape);
        _fileMenu.add(new JSeparator());
        _fileMenu.add(_exit);

        _defaultHelpMenu = new DefaultHelpMenu();

        _menuBar.add(_fileMenu);
View Full Code Here

    view.add(tool_bar_visibility);
    view.add(status_bar_visibility);
   
    tools.add( ui_chooser );
    tools.add( config_wizard );
    tools.add( new JSeparator() );
    tools.add( options );
   
    help.add( open_support );
        help.add( bug_tracker );
        help.add( project_forums );
View Full Code Here

        }

        _menu.add(_miNext = _resources.getItem("next", this));
        _menu.add(_miPrevious = _resources.getItem("previous", this));

        _menu.add(new JSeparator());

        _menu.add(_miMaximize = _resources.getItem("maximize", this));
        if (_currentMode == CARD_MODE) {
            _miMaximize.setEnabled(false);
        }

        _menu.add(_miCascade = _resources.getItem("cascade", this));
        if (_currentMode == DESKTOP_MODE) {
            _miCascade.setEnabled(false);
        }

        _menu.add(_miExternal = _resources.getItem("external", this));
        if (_currentMode == EXTERNAL_MODE) {
            _miCascade.setEnabled(false);
        }

        _menu.add(new JSeparator());

        if (enableCloseAll) {
            _menu.add(_miCloseAll = _resources.getItem("closeAll", this));
            _menu.add(new JSeparator());
        }

        _bgComponents = new ButtonGroup();
        setComponentsMenuItems();
View Full Code Here

                    recentOpenedFiles.add(new File(listOfRecentFiles[i]));
                }
            }
        }
        setRecentFilesMenu();
        jmFile.add(new JSeparator());
        jmFile.add(miClose = resources.getItem("close", this));
        miClose.setIcon(resources.getIcon("closeImage"));
        jmFile.add(miCloseAll = resources.getItem("closeAll", this));
        miCloseAll.setIcon(resources.getIcon("closeAllImage"));
        jmFile.add(new JSeparator());
        jmFile.add(miSave = resources.getItem("save", this));
        miSave.setIcon(resources.getIcon("saveImage"));
        jmFile.add(miSaveAs = resources.getItem("saveAs", this));
        miSaveAs.setIcon(resources.getIcon("emptyImage"));
        jmFile.add(miSaveAll = resources.getItem("saveAll", this));
        miSaveAll.setIcon(resources.getIcon("emptyImage"));
        jmFile.add(new JSeparator());


        jmFile.add(miExport = resources.getItem("export", this));
        miExport.setIcon(resources.getIcon("exportImage"));
        jmFile.add(new JSeparator());

        jmFile.add(miRefreshAllSheets = resources.getItem("refresh", this));
        miRefreshAllSheets.setIcon(resources.getIcon("refreshImage"));
        jmFile.add(new JSeparator());

        jmFile.add(miSheetDisplay = resources.getItem("sheetDisplay", this));
        miSheetDisplay.setIcon(resources.getIcon("emptyImage"));

        jmFile.add(miPrint = resources.getItem("print", this));
        miPrint.setIcon(resources.getIcon("printImage"));

        jmFile.add(miPrintImage = resources.getItem("printToImg", this));
        miPrintImage.setIcon(resources.getIcon("printToImgImage"));
        jmFile.add(miSnapShot = resources.getItem("displayImg", this));
        miSnapShot.setIcon(resources.getIcon("snapShotImage"));
        jmFile.add(new JSeparator());
        jmFile.add(miSheetInformation = resources.getItem("sheetInformation", this));
        miSheetInformation.setIcon(resources.getIcon("emptyImage"));
        jmFile.add(new JSeparator());
        jmFile.add(miExit = resources.getItem("exit", this));
        miExit.setIcon(resources.getIcon("emptyImage"));
        if (mb instanceof JMenuBar) {
            ((JMenuBar) mb).add(jmFile);
        } else if (mb instanceof JMenu) {
View Full Code Here

            return;
        }
        JPopupMenu popup = new JPopupMenu();
        for (Object c : actions) {
            if (c == null) {
                popup.add(new JSeparator());
            } else if (c instanceof String) {
                popup.add(createSubMenu(n, (String) c, x ,y));
            } else if (c instanceof Class) {
                AbstractNodeAction aa = AbstractNodeAction.createAction(
                        (Class<?>) c, n);
View Full Code Here

        Object[] actions = AbstractNodeAction.getActions(n.getGraphObject(),
                name);
        if (actions != null) {
            for (Object c : actions) {
                if (c == null) {
                    subMenu.add(new JSeparator());
                } else if (c instanceof String) {
                    subMenu.add(createSubMenu(n, (String) c, x, y));
                } else if (c instanceof Class) {
                    AbstractNodeAction aa = AbstractNodeAction.createAction(
                            (Class<?>) c, n);
View Full Code Here

TOP

Related Classes of javax.swing.JSeparator

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.