> How to make bigger tab spaces in Java?

How to make bigger tab spaces in Java?

Posted at: 2014-12-18 
Tab settings change with the output window or device, so they are generally only used as a "quick-'n-dirty" way to get things to line up on a throwaway programs.

For a nice display on a console/terminal display, in a program that you want to be able to use in different places, uses blanks instead of tabs. The PrintStream.printf and String.format methods have plenty of options to help you keep things lined up.

Most of this becomes unimportant in a GUI app or on the web, since fonts tend to be proportionally-spaced and character counts don't measure string widths on screen.

I know that the "\t" escape sequence creates tabs, but these tabs are only apparently 4 spaces (I say apparently because they appear to be actually 6 spaces when I run the program).

Is there a way to change the size of these tabs? I'm trying to print some strings in neat lines but if one of the strings is too long then everything gets tabbed out of place and it looks discombobulated.