static RenderingHints rh;
static void preDraw(MenuItem item)
{
Menu menu = item.menu;
StyleSet style = menu.style;
PGraphicsJava2D buff = item.menu.buff;
rh = menu.buff.g2.getRenderingHints();
buff.g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
buff.g2.setPaint(style.strokeColor);
buff.g2.setStroke(style.stroke);