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.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL