org.bidib.wizard.dcca.client.view.DecoderAddressRenderer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bidibwizard-dcca-client Show documentation
Show all versions of bidibwizard-dcca-client Show documentation
jBiDiB BiDiB Wizard DCC-A client POM
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);
}
}
}