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");