textArea.setLineWrap(true); textArea.setWrapStyleWord(true);
    private void makePanel() {        setLayout(new BorderLayout());        // let's add actionListener        textArea.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));        textArea.setLineWrap(true);        textArea.setWrapStyleWord(true);        textField.addActionListener(this);        textArea.setEditable(false);        titleArea.setEditable(false);        JScrollPane sp1 = new JScrollPane(textArea);        sp1.setVerticalScrollBarPolicy(JScrollPane.                                       VERTICAL_SCROLLBAR_ALWAYS);        add(sp1, BorderLayout.CENTER);        add(textField, BorderLayout.SOUTH);        add(makeNorth(), BorderLayout.NORTH);    }