public static void main(String[] args) {
        ColorTable ct = new ColorTable();
        
        try {
            ct.addColor(new BmpColor(0, 0, 0));
            ct.addColor(new BmpColor(3, 3, 3));
            ct.addColor(new BmpColor(3, 3, 3));
            ct.addColor(new BmpColor(6, 6, 6));
        } catch (AWTException e) {
            e.printStackTrace();
        }
        ct.swapColors(0, 1);
    }