It doesn't tabulate this: (\t) in the JOptionPane.showInputDialog, I don´t know why, I'm working with win32, it's very strange
thanks
Printable View
It doesn't tabulate this: (\t) in the JOptionPane.showInputDialog, I don´t know why, I'm working with win32, it's very strange
thanks
Check this link
How to Use HTML in Swing Components (The Java™ Tutorials > Creating a GUI with JFC/Swing > Using Swing Components)
and I write an quickly example:
Code:
import javax.swing.*;
public class Test {
public static void main(String args[]) {
String message =
"<html><table>" +
"<tr>" +
"<td>uno</td>" +
"<td>123</td>" +
"</tr>" +
"<tr>" +
"<td>dos</td>" +
"<td>456</td>" +
"</tr>" +
"</table></html>";
Object[] options = { "OK", "CANCEL" };
JOptionPane.showOptionDialog(null, message, "Warning",
JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, null,
options, options[0]);
}
}
Did you try this? JOptionPane.showInputDialog("Beginning \t text tabulate\n text in a new line");