Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JOptionPane

 
Vaskar Dasgupta
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to have a new line of text in a JOptionPane. The message i am displaying is a looooooong one, thus the width of the JOptionPane becomes too long. I want the text too come to the net line.
JOptionPane optionPane = new JOptionPane("UserID/Password should be minimum 3/8 & maximum 8/12 characters. Blah Blah Blah................", JOptionPane.INFORMATION_MESSAGE);
JDialog info1 = optionPane.createDialog(parentFrame,"DES Login");
info.setResizable(false);
info.show();
Awaiting Reply
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic