Java – how to add a text area on joptionpane
•
Java
At present, I have a joptionpane When I click the button, I am executing the following line
JOptionPane.showInputDialog(this,"Enter your message","Messages",2);
It opens a pop - up window with a text box This text box accepts approximately 40 / 50 characters In fact, my request is to cancel the long message (up to 300 characters) in this text box So we want to find a text area in this input dialog box? What's possible? Is there a better solution? Thank you in advance
Solution
Official tutorial contains an example and another example is here
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码