b.getStyle().setStyleProperty(TextStyleKeys.FONT, "SansSerif");
b.getStyle().setStyleProperty(TextStyleKeys.FONTSIZE, new Integer(12));
LabelElementFactory labelFactory = new LabelElementFactory();
labelFactory.setAbsolutePosition(new Point2D.Float(0, 0));
labelFactory.setMinimumSize(new FloatDimension(200, 15));
labelFactory.setText("Preferred Lunch Meals");
b.addElement(labelFactory.createElement());
labelFactory = new LabelElementFactory();
labelFactory.setAbsolutePosition(new Point2D.Float(200, 0));
labelFactory.setMinimumSize(new FloatDimension(-100, 15));
labelFactory.setText("Rating");
b.addElement(labelFactory.createElement());
b.addElement(HorizontalLineElementFactory.createHorizontalLine
(15, null, new BasicStroke(1)));