[macosx] JTableHeader painting error with Java 8 on Mac
    Van Den Borre, Koen 
    Koen.VanDenBorre at esko.com
       
    Tue Jun 11 05:47:47 PDT 2013
    
    
  
Hi,
I noticed that on Java 8 on Mac, the JTableHeader looks clipped (the bottom line is not visible).
This was not an issue in Java 6.
Here is a simple test case:
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.SwingUtilities;
public class JTableHeaderTest
{
	public void run()
	{
		JTable table = new JTable(2, 5);
		
		JScrollPane scrollableTable = new JScrollPane(table);
		
		JFrame frame = new JFrame();
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.getContentPane().add(scrollableTable);
		frame.setSize(300, 300);
		frame.setLocationRelativeTo(null);
		frame.setVisible(true);
	}
	public static void main(String[] arguments)
	{
		SwingUtilities.invokeLater(new Runnable()
		{
			@Override
			public void run()
			{
				JTableHeaderTest test = new JTableHeaderTest();
				test.run();
			}
		});
	}
}
    
    
More information about the macosx-port-dev
mailing list