I am a little confused in why the tab Horizontal tab escape sequence works in the command line but not in MessageDialog.
System.out.println( "Name" + "\tAddress" );
outputs the following in the command line
JOptionPane.showMessageDialog( null, "Name" + "\tAddress" );
displays the following in a message dialog
anyone know why this happens and or how i can get around this?
new line "\n" works in both cases so just wondering why tab doesn't.
You just can't use tabs in JOptionPane messages. (It doesn't really make sense to use them there).
Ok thanks at least i know that now.
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center