- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {}
item.setBackground(bgColor); item.setForeground(fgColor);
viewLog.addActionListener(this); viewMenu.add(logCheckMenuItem); logCheckMenuItem.setBackground(WHITE); logCheckMenuItem.setSelected(true); viewMenu.addSeparator();
void customizeCheckBoxMenuItem( final JCheckBoxMenuItem item, final boolean is_selected ) { if ( item != null ) { item.setFont( MainFrame.menu_font ); if ( !getConfiguration().isUseNativeUI() ) { item.setBackground( getConfiguration().getGuiMenuBackgroundColor() ); item.setForeground( getConfiguration().getGuiMenuTextColor() ); } item.setSelected( is_selected ); item.addActionListener( this ); } }
void customizeCheckBoxMenuItem( final JCheckBoxMenuItem item, final boolean is_selected ) { if ( item != null ) { item.setFont( MainFrame.menu_font ); if ( !getConfiguration().isUseNativeUI() ) { item.setBackground( getConfiguration().getGuiMenuBackgroundColor() ); item.setForeground( getConfiguration().getGuiMenuTextColor() ); } item.setSelected( is_selected ); item.addActionListener( this ); } }