Joptionpane showinputdialog textarea

Posted: Sonymash Date of post: 07.06.2017

I need to grab multiple lines of input from a popup JOptionPane or some other popup, but most of my searches direct me there, which is where I get stuck.. I am stuck at using. I figure there must be some way to do this, but the other types of dialog only seem to return an int It doesn't have to be a JOptionPane, as long as it is a separate popup from my main GUI that can read a string back in to be read.

[Java] import uqyhadet.web.fc2.comner; import uqyhadet.web.fc2.comea; import uqyhadet.web.fc2.com*; - uqyhadet.web.fc2.com

Keep a reference to the JTextArea before passing to the JOptionPane , the JOptionPane will tell you what the user did how they closed the dialog and depending on the result, you might want to do different things. See How to Make Dialogs for more details. By posting your answer, you agree to the privacy policy and terms of service. Stack Overflow Questions Developer Jobs Documentation beta Tags Users.

Sign up or log in to customize your list. Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us.

A Java JOptionPane showMessageDialog with scrolling text | uqyhadet.web.fc2.com

Log In Sign Up. Join the Stack Overflow Community. Stack Overflow is a community of 7. Join them; it only takes a minute: JOptionPane with a JTextArea instead of a text field? I am stuck at using JOptionPane.

java - Input from JOptionPane, output in JTextArea in JFrame? - Stack Overflow

DangerZone 1, 2 10 MadProgrammer k 15 To my eye, a text area added to a GUI without a scroll pane in between just.. Only thing I see is I'm getting a "Type mismatch: Sorry, try the update That looks pretty good, just a matter of making it actually do work now. GUIs are definitely not my thing.

Sign up or log in StackExchange. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.

Swing: JOptionPane Can Hold More Than Text

Stack Overflow works best with JavaScript enabled. MathOverflow Mathematics Cross Validated stats Theoretical Computer Science Physics Chemistry Biology Computer Science Philosophy more 3. Meta Stack Exchange Stack Apps Area 51 Stack Overflow Talent.

Rating 4,1 stars - 595 reviews
inserted by FC2 system