Whats happening is your java box is larger than the tables dimensions, so the table is stretching, the right part of the header gets centered instead of lefted ...
So this should fix it. Making the right half of your header with 100% width will make sure the cell is not centered when the java box stretches your table.