right.add(BorderLayout.CENTER, new JLabel(UIManager.getString("ColorChooser.swatchesRecentText")));
right.add(BorderLayout.SOUTH, recentPanel);
swatchPanel = new SwatchPanel(MAIN_SWATCH_COLORS, recentPanel, swatchSize);
MouseInputAdapter swatchMouseAdapter = new MouseInputAdapter() {
public void mouseClicked(MouseEvent e) {
getColorSelectionModel().setSelectedColor(swatchPanel.getColorAtLocation(e.getX(), e.getY(), true));
}
public void mouseMoved(MouseEvent e) {
Color color = swatchPanel.getColorAtLocation(e.getX(), e.getY(), false);