My projects library #4! Gallery Megathread

#41 - Quasi console V0
image

Code
import javax.swing.JOptionPane;
String pLines = "Welcome to quasi console!\n ";
void setup() {
  surface.setLocation(-width*2,-height*2);
  surface.setVisible(false);
  String strInp = JOptionPane.showInputDialog(null,pLines );
  pLines+="\n"+strInp;
}
void draw() {
  String strInp = JOptionPane.showInputDialog(null,pLines );
  pLines+="\n"+strInp;
  if(strInp.equals("stopConsole")) exit();
}
2 Likes