import javax.swing.*; //used to access the JFrame,JScrollPane, and JTextArea import javax.swing.event.*; //used to access CaretEvent and CaretListener
} });
frame.setSize(300, 200); frame.setVisible(true);
import javax.swing.*; //used to access the JFrame,JScrollPane, and JTextArea import javax.swing.event.*; //used to access CaretEvent and CaretListener public class caretListener { } }); frame.setSize(300, 200); frame.setVisible(true); } }