Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Implementing a password field

$
0
0
import controlP5.*;

void setup(){
 size(480,640);
 ControlP5 id=new ControlP5(this);
 ControlP5 pw=new ControlP5(this);

 PFont font=createFont("arial", 20);

 //id input
 id.addTextfield("ID", 180,300,200,50)
   .setFont(font);

 pw.addTextfield("PASSWORD", 180,400,200,50);
 pw.setFont(font);
}

void draw(){
  background(0);
}

I made two textfields so that I can receive two inputs, one for ID and one for password. What I want to do is to cover password with '*'. How can I do it?

idpw

I want to cover password with *


Viewing all articles
Browse latest Browse all 2896

Trending Articles