Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Forums
Register
Login
Java
»
Swing / AWT / SWT
using tab spacing in JOptionPane.showInputDialog
Senaca Boyd
,
Greenhorn
Feb 21, 2007 16:30:00
(0 cow)
(0 skulls)
+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?
Michael Dunn
,
Ranch Hand
Feb 21, 2007 18:30:00
(0 cow)
(0 skulls)
+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");
Post by:
autobot
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
.