com.alee.laf.menu.WebMenuBar Java Examples
The following examples show how to use
com.alee.laf.menu.WebMenuBar.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Menu.java From Spade with GNU General Public License v3.0 | 6 votes |
public static WebMenuBar createMenuBar() { // M.E.I. MenuBar WebMenuBar menuBar = new WebMenuBar(); //menuBar.setMenuBarStyle(MenuBarStyle.standalone); // Main Menus menuBar.add(createFileMenu()); menuBar.add(createEditMenu()); menuBar.add(createViewMenu()); // Editing Menus menuBar.add((Spade.main.effects.operations = new WebMenu("Image"))); menuBar.add((Spade.main.tools.toolsMenu = new WebMenu("Tools"))); menuBar.add((Spade.main.effects.effects = new WebMenu("Effects"))); menuBar.add((Spade.main.effects.generators = new WebMenu("Generators"))); // Info Menus menuBar.add(createWindowMenu()); menuBar.add(createHelpMenu()); return menuBar; }
Example #2
Source File: InfoMenuBar.java From Spade with GNU General Public License v3.0 | 5 votes |
public WebMenuBar createInfoMenuBar() { WebMenuBar menuBar = new WebMenuBar(); menuBar.setMenuBarStyle(MenuBarStyle.standalone); WebMenuBar left = new WebMenuBar(); left.setUndecorated(true); left.setLayout(new GridLayout(1, 0)); left.setBackground(PaintCanvas.TRANSPARENT); scale = new WebMenu(""); saved = new WebMenu(""); size = new WebMenu(""); coords = new WebMenu(""); left.add(new WebMenu()); left.add(coords); left.add(size); left.add(scale); left.add(saved); menuBar.setLayout(new BorderLayout()); menuBar.add(left, BorderLayout.CENTER); // Check if the MemoryWatcher should be activated. if(System.getProperty("DmemoryWatcherFlag") != null) { memoryWatcher = new MemoryWatcher(); menuBar.add(memoryWatcher, BorderLayout.EAST); } return menuBar; }
Example #3
Source File: MenuBarGenerator.java From weblaf with GNU General Public License v3.0 | 4 votes |
/** * Constructs new {@link MenuBarGenerator} using default {@link WebMenuBar}. */ public MenuBarGenerator () { this ( new WebMenuBar () ); }
Example #4
Source File: MenuBarGenerator.java From weblaf with GNU General Public License v3.0 | 2 votes |
/** * Constructs new {@link MenuBarGenerator} using {@link WebMenuBar} with the specified {@link StyleId}. * * @param id {@link WebMenuBar} {@link StyleId} */ public MenuBarGenerator ( final StyleId id ) { this ( new WebMenuBar ( id ) ); }
Example #5
Source File: MenuBarGenerator.java From weblaf with GNU General Public License v3.0 | 2 votes |
/** * Constructs new {@link MenuBarGenerator} using specified {@link WebMenuBar}. * * @param menu {@link WebMenuBar} */ public MenuBarGenerator ( final WebMenuBar menu ) { super ( menu ); }