java - Customizing the appearance of a JMenuBar -


how can change default of jmenubar, jmenuitem, etc.? example, how change more photoshop's menu bar?

this code file menu class:

package com.digitaloutlet.gui;  import javax.swing.jmenu; import javax.swing.jmenubar; import javax.swing.jmenuitem;  public class filemenu {   public static void filemenu() {     jmenubar menubar;     jmenu file;     jmenuitem menuitem, open;      menubar = new jmenubar();      file = new jmenu("file");      menuitem = new jmenuitem("new");     open = new jmenuitem("open");       menubar.add(file);     file.add(menuitem);     file.add(open);      window.frame.setjmenubar(menubar);   } } 

if need more info, please let me know.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -