Hi,
I try to do a password text with processing. I make one with awt and the method "setEchoChar()". Also It's possible do with swing->JPasswordField.
Code:
import java.awt.*;
import java.awt.event.*;
void setup(){
size(600, 600);
Label l1 = new Label("Introduce tu Nombre"),
l2 = new Label("Introduce tu Password");
TextField t1 = new TextField("tu nombre",45),
t2 = new TextField(20);
t2.setEchoChar('*');
add(l1);
add(t1);
add(l2);
add(t2);
}
But I would like use MyGUI library(
http://www.mkv25.net/MyGUI/) to do the textfield. I see in source code of the library that it uses the methods "text" for processing core.
I see in source code to dev.processing(PApplet.java) and the text method create the text using the Graphics2D library.
Code:
public void text(String str, float x, float y) {
if (recorder != null) recorder.text(str, x, y);
g.text(str, x, y);
}
I don't know what is the way to implement a text for password in text do it in Graphics2D.
Thanks,
Mar Canet