# Letting the User Set String (Save As... Dialog)

**URL:** <https://discourse.processing.org/t/letting-the-user-set-string-save-as-dialog/31321>\
**Category:** Coding Questions\
**Created:** [July 18, 2021, 5:43pm UTC](https://discourse.processing.org/t/letting-the-user-set-string-save-as-dialog/31321 "2021-07-18T17:43:08Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![CodeMasterX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/codemasterx/32/2942_2.png) [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Post date:** [July 20, 2021, 9:04am UTC](https://discourse.processing.org/t/letting-the-user-set-string-save-as-dialog/31321/6 "2021-07-20T09:04:52Z")

</div>

use this as reference [My projects library #4! Gallery Megathread - #2 by CodeMasterX](https://discourse.processing.org/t/my-projects-library-4-gallery-megathread/31103/2)

I’ll post the actual program a bit later

Here:

```auto
import javax.swing.JOptionPane;
String pLines = "Welcome to quasi console!\n ";
void setup() {
  String strInp = JOptionPane.showInputDialog(null,"Please name the file! (FILETYPE: .png" );
  println(strInp+".png");
}
void draw() {
}

```

---

_[View the full topic](https://discourse.processing.org/t/letting-the-user-set-string-save-as-dialog/31321)._
