title: Is RadioButton with cross instead of bullet possible? - iText 7.1.0 for Java
body: <p>Does anybody know, if it's possible to have a cross (checkbox like) instead of the usual bullet? Did'nt find anything. Thanks a lot! Dirk</p>
  
  <p><a href="https://i.stack.imgur.com/qGPZQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qGPZQ.png" alt="Radio Buttons"></a>
  To produce this result, I adopted an iText sample</p>
  
  <pre><code>package jumpstart;
  
  import com.itextpdf.forms.PdfAcroForm;
  import com.itextpdf.forms.fields.PdfButtonFormField;
  import com.itextpdf.forms.fields.PdfFormField;
  import com.itextpdf.layout.Document;
  import com.itextpdf.layout.element.Paragraph;
  import com.itextpdf.io.font.PdfEncodings;
  import com.itextpdf.kernel.font.PdfFont;
  import com.itextpdf.kernel.font.PdfFontFactory;
  import com.itextpdf.kernel.geom.Rectangle;
  import com.itextpdf.kernel.pdf.PdfDocument;
  import com.itextpdf.kernel.pdf.PdfWriter;
  import com.itextpdf.layout.property.TextAlignment;
  
  import java.awt.Desktop;
  import java.io.File;
  
  public class Problem8 {
      public static void main(String[] args) throws Exception {
          PdfWriter writer = new PdfWriter("problem8.pdf");
          PdfDocument pdf = new PdfDocument(writer);
          Document doc = new Document(pdf);
          PdfFont font = PdfFontFactory.createFont("src/main/resources/fonts/arialuni.ttf", PdfEncodings.IDENTITY_H, true);
          PdfAcroForm form = PdfAcroForm.getAcroForm(pdf, true);
          String[] languages = { "Dutch", "English", "French" };
          Rectangle rect;
          Paragraph para;
          PdfButtonFormField radioGroup = PdfFormField.createRadioGroup(pdf, "Language", "");
          pdf.addNewPage();
          for (int i = 1; i &lt;= languages.length; i++) {
              rect = new Rectangle(40, 800 - i * 30, 20, 20);
              para = new Paragraph(languages[i - 1]);
              para.setFont(font);
              para.setFontSize(18);
              PdfFormField.createRadioButton(pdf, rect, radioGroup, languages[i - 1]);
              doc.showTextAligned(para, 70, 800 - i * 30, TextAlignment.LEFT);
          }
          form.addField(radioGroup);
          doc.close();
          Desktop.getDesktop().open(new File("problem8.pdf"));
      }
  }
  </code></pre>