
Untitled
By: a guest on
Jun 26th, 2012 | syntax:
None | size: 0.58 KB | hits: 12 | expires: Never
Correctly displaying buttons in jOptionPane when text size of the message displayed grows
public void jOptionPane1(agent, text) {
if (GetParameter("MessagesCheck")) {
String[] choices = ["Yes", "No", "Default"]
JTextArea textArea = new JTextArea(text);
textArea.setColumns(125);
textArea.setLineWrap(true); textArea.setWrapStyleWord(true);
int response = JOptionPane.showOptionDialog(null,textArea,"choices",0,JOptionPane.INFORMATION_MESSAGE,null,choices,choices[2]);
}
}