Is there a way to position cursor at (or highlight) a specific line in a JTextArea (e.g., a line that contains certain string)? If so, how?
For example, I have a textArea embeded in a scrollPane. There is a 'find' button with a string entry. User can enter and search for a specific string in the textArea. When the string is found, the textArea should scroll automatically to show the found string.
Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.
Working with files is a moderately common task in Java. For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.
However, when your application has vi…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…