/*
 * Copyright (C) 2013 Aaron Madlon-Kay <aaron@madlon-kay.com>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
package org.madlonkay.supertmxmerge.gui;

import javax.swing.border.Border;
import org.jdesktop.beansbinding.Converter;

/**
 *
 * @author Aaron Madlon-Kay <aaron@madlon-kay.com>
 */
public class BorderConverter extends Converter {
    
    private Border selectedBorder;
    private Border defaultBorder;

    public BorderConverter(Border selectedBorder, Border defaultBorder) {
        this.selectedBorder = selectedBorder;
        this.defaultBorder = defaultBorder;
    }
            
    @Override
    public Object convertForward(Object value) {
        return ((Boolean) value) ? selectedBorder : defaultBorder;
    }

    @Override
    public Object convertReverse(Object value) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    
}

@@ -1087,16 +1087,155 @@
 order;%0A%0A
+    /**%0A     * Empty constructor to make NetBeans' design view happy.%0A     * Do not use.%0A     */%0A    public BorderConverter() %7B%0A    %7D%0A    %0A
     publ
@@ -1621,135 +1621,39 @@
     
-throw new UnsupportedOperationException(%22Not supported yet.%22); //To change body of generated methods, choose Tools %7C Templates.
+return value == selectedBorder;
 %0A   

Fix BorderConverter for use with NetBeans' design view.