All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bidib.wizard.dcca.client.view.DecoderAddressRenderer Maven / Gradle / Ivy

There is a newer version: 2.0.29
Show newest version
package org.bidib.wizard.dcca.client.view;

import javax.swing.SwingConstants;
import javax.swing.table.DefaultTableCellRenderer;

public class DecoderAddressRenderer extends DefaultTableCellRenderer {

    private static final long serialVersionUID = 1L;

    public DecoderAddressRenderer() {
        this.setHorizontalAlignment(SwingConstants.RIGHT);
    }

    @Override
    protected void setValue(Object value) {

        if (value instanceof Integer) {
            setText(value.toString());
        }
        else {
            setText(null);
        }

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy