private static void test7(){
		JTextArea ta = new JTextArea();
		ta.setLineWrap(true);
		ta.setWrapStyleWord(true);
		ta.setText("one two three four six seven eigh nine ten");
		System.out.println("000" + ta.getPreferredSize());
		System.out.println("000" + ta.getSize());
		ta.setSize(100, 1);
		System.out.println("100" + ta.getPreferredSize());
		ta.setSize(ta.getPreferredSize());
	}