Java Code Examples for javax.swing.JMenu#setForeground()
The following examples show how to use
javax.swing.JMenu#setForeground() .
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: VideoDownloadWindow.java From xdm with GNU General Public License v2.0 | 6 votes |
private void createPopup() { pop = new JPopupMenu(); pop.setBackground(ColorResource.getDarkerBgColor()); JMenu dl = new JMenu(StringResource.get("ND_DOWNLOAD_LATER")); dl.setForeground(Color.WHITE); dl.setBorder(new EmptyBorder(getScaledInt(5), getScaledInt(5), getScaledInt(5), getScaledInt(5))); dl.addActionListener(this); dl.setBackground(ColorResource.getDarkerBgColor()); dl.setBorderPainted(false); // dl.setBackground(C); pop.add(dl); createQueueItems(dl); JMenuItem ig = new JMenuItem(StringResource.get("ND_IGNORE_URL")); ig.setName("IGNORE_URL"); ig.setForeground(Color.WHITE); ig.addActionListener(this); pop.add(ig); pop.setInvoker(btnMore); }
Example 2
Source File: NewDownloadWindow.java From xdm with GNU General Public License v2.0 | 6 votes |
private void createPopup() { pop = new JPopupMenu(); pop.setBackground(ColorResource.getDarkerBgColor()); JMenu dl = new JMenu(StringResource.get("ND_DOWNLOAD_LATER")); dl.setForeground(Color.WHITE); dl.setBorder(new EmptyBorder(getScaledInt(5), getScaledInt(5), getScaledInt(5), getScaledInt(5))); dl.addActionListener(this); dl.setBackground(ColorResource.getDarkerBgColor()); dl.setBorderPainted(false); // dl.setBackground(C); pop.add(dl); createQueueItems(dl); JMenuItem ig = new JMenuItem(StringResource.get("ND_IGNORE_URL")); ig.setName("IGNORE_URL"); ig.setForeground(Color.WHITE); ig.addActionListener(this); pop.add(ig); pop.setInvoker(btnMore); }
Example 3
Source File: MenuFactory.java From WorldGrower with GNU General Public License v3.0 | 5 votes |
public static JMenu createJMenu(String description, ImageInfoReader imageInfoReader, SoundIdReader soundIdReader) { JMenu menu = new TiledImageJMenu(description, imageInfoReader); menu.setBackground(ColorPalette.DARK_BACKGROUND_COLOR); menu.setForeground(ColorPalette.FOREGROUND_COLOR); menu.setFont(Fonts.FONT); menu.setCursor(Cursors.CURSOR); addRollOverSoundEffect(menu, soundIdReader); return menu; }
Example 4
Source File: UI.java From arcgis-runtime-demo-java with Apache License 2.0 | 4 votes |
public static JMenu createMenu(String label) { JMenu subMenu = new JMenu(label); subMenu.setForeground(UI.FOREGROUND); subMenu.setFont(UI.FONT); return subMenu; }
Example 5
Source File: UI.java From arcgis-runtime-demo-java with Apache License 2.0 | 4 votes |
public static JMenu createMenu(String label) { JMenu subMenu = new JMenu(label); subMenu.setForeground(UI.FOREGROUND); subMenu.setFont(UI.FONT); return subMenu; }