@Override
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
        Component cell = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
        try {
            field = new JFormattedTextField(new MaskFormatter("0xHHHHHHHH"));
        } catch (ParseException ex) {
            Logger.getLogger(HexRenderer.class.getName()).log(Level.SEVERE, null, ex);
        }
        
        if(value instanceof String) {            
           StringBuilder builder = new StringBuilder((String)value);
           if(builder.length() < 8) {
               int diff = 8 - builder.length();
               for(int i=0; i<diff; i++) {
                   builder.insert(0, "0");
               }
           }
           setValue("0x"+builder.toString());
           field.setText("0x"+builder.toString());
        }
        
        return field;
    }