I use Java and SWT. I added a menu (right click) to the system tray. I want to change the color of the text in the menu items. Is it possible? I could not find a solution to this.
TrayItem item = new TrayItem(tray, SWT.NONE); item.addListener(SWT.MenuDetect, new Listener() { public void handleEvent(org.eclipse.swt.widgets.Event event) { Menu menu = new Menu(shell, SWT.POP_UP); MenuItem item1 = new MenuItem(menu, SWT.NONE); item1.setText("Settings");
source share