linux - Java BeautyEye look and feel empty JMenuBar items -
i using beautyeye , feel in java desktop program found out jmenubar shows empy jmenuitems shown in screenshot below.
as can see area of menu there same colour jframe contentpane , no menu text visible.
a sample program test (download beautyeye library here) is:
import java.awt.*; import javax.swing.*; import org.jb2011.lnf.beautyeye.beautyeyelnfhelper; public class javamenubarexample implements runnable { private jframe frame; private jmenubar menubar; private jmenu filemenu; private jmenuitem openmenuitem; public static void main(string[] args) { try { beautyeyelnfhelper.frameborderstyle = beautyeyelnfhelper.frameborderstyle.oslookandfeeldecorated; org.jb2011.lnf.beautyeye.beautyeyelnfhelper.launchbeautyeyelnf(); uimanager.put("rootpane.setupbuttonvisible", boolean.false); } catch (exception ex) { ex.printstacktrace(); } // proper way show jframe (invokelater) swingutilities.invokelater(new javamenubarexample()); } @override public void run() { frame = new jframe("java menubar example"); menubar = new jmenubar(); filemenu = new jmenu("file"); openmenuitem = new jmenuitem("open"); filemenu.add(openmenuitem); // add menus menubar menubar.add(filemenu); // put menubar on frame frame.setjmenubar(menubar); frame.setdefaultcloseoperation(jframe.exit_on_close); frame.setpreferredsize(new dimension(400, 300)); frame.pack(); frame.setvisible(true); } }
i have been debug use jdk 1.8_u45, normal @ windows platform. guess may bug linux platform java1.8_u45.
Comments
Post a Comment