Forums Register Login

using tab spacing in JOptionPane.showInputDialog

+Pie Number of slices to send: Send
\t does not appear to be working with showInputDialog. How can I create tab spacing in JOptionPane.showInputDialog?
+Pie Number of slices to send: Send
you can do this, but you may have to add some font tags
JOptionPane.showInputDialog(null,"<html><pre>word\tword</pre></html>");

but it might be easier to add a pad of the number of spaces you want
String pad = " ";//8 spaces
JOptionPane.showInputDialog(null,"word"+pad+"word");
So I left, I came home, and I ate some pie. And then I read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 7126 times.
Similar Threads
good editor
Indenting - use fixed width font
Disable tab event in JTextArea
Jdialog issue
Inserting Code?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:17:02.