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
Post a Comment