//Set up menu (JList)
menu = new JList();
menu.setFont(font);
menu.setBackground(BACKGROUND);
menu.setLayoutOrientation(JList.VERTICAL);
CTracklessScrollPane menuPane = new CTracklessScrollPane(menu,
7, new Color(75, 50, 0), BACKGROUND) {
@Override
public Insets getInsets() {
return new Insets(MARGIN, 0, 0, 0);
}
};
menuPane.setBackground(BACKGROUND);
menu.setCellRenderer(new QueryCellRenderer());
//Set up this
this.setOpaque(false);
this.setSize(preferredWidth, preferredHeight);