// No-op
}
public void paint(Graphics2D graphics) {
MenuBar.Item menuBarItem = (MenuBar.Item)getComponent();
MenuBar menuBar = menuBarItem.getMenuBar();
int width = getWidth();
int height = getHeight();
boolean highlight = menuPopup.isOpen();
// Paint highlight state
if (highlight) {
Color highlightBackgroundColor = (Color)menuBar.getStyles().get("highlightBackgroundColor");
graphics.setColor(highlightBackgroundColor);
graphics.fillRect(0, 0, width, height);
}
// Paint the content