make a generic JComponent for visualizing sorts