Command c = new Command("FAVORITES");
Label l = new Label("FAVORITES") {
public void paint(Graphics g) {
super.paint(g);
g.drawLine(getX(), getY() + getHeight() - 1, getX() + getWidth(), getY() + getHeight() - 1);
}
};
l.setUIID("Separator");
c.putClientProperty("SideComponent", l);