lundi 27 janvier 2020

How to remove background color of a checkbox in java

when I run this code it runs error.

        Checkbox term3 = new Checkbox("SENG 12213 - Data Structures and Algorithms");
        term3.setFont(new Font("Arial",Font.PLAIN,13));
        term3.setSize(300,20);
        term3.setLocation(50,310);
        term3.setOpaque(false);

when I run this code, the error is 'cannot resolve the method'setOpaque(Boolen)'

how can I remove this background color?enter image description here




Aucun commentaire:

Enregistrer un commentaire