1. is there a free open source text area type component for java which supports any number of regular expressions which will be highlighted in the text stackoverflow.comI am looking for an existing free component that can support any number of regular expressions that will be highlighted in the text in any colour. The regular expressions should ... |
2. Formatted Text and JTextArea coderanch.com |
3. JTextArea Formatting coderanch.com |
4. Format text in JTextArea coderanch.com |
5. Formatting text in JTextArea coderanch.com |
6. Formatting JTextArea coderanch.comWould anyone know what is the best way to format a TreeSet into a JTextArea or if it is possible? I would like to display the rsults of Iteration over my film titles by category. public TreeSet getFilmTitles(String category) { Set set = container.keySet(); Iterator it1 = set.iterator(); Collection values = container.values(); Iterator it2 = values.iterator(); while((it2.hasNext()) && (it1.hasNext())) { String ... |
7. Preserve format of JTextArea in Text file coderanch.comI am using this simple code to write the text within a JTextArea to a text file. try { file.createNewFile(); StringBuffer sb = new StringBuffer(); sb.append(textPad.getText()); PrintWriter pw = new PrintWriter(new FileWriter(file)); pw.write(sb.toString()); pw.flush(); pw.close(); } catch(IOException e) {} I notice that there are special characters (squares...to be precise) which are being stored in the text file wherever I have a ... |
8. Formatting numbers in a JTextArea coderanch.com |
9. Text format in JTextArea java-forums.orgI have the following two strings and I would like to display them just as what I typed here in JTextArea. " a| b| c|" " aa| bb| ccc|" However, I noticed that JTextArea cannot line them up nicely becuase it treats the empty space different from regular characters. If I use Notepad or any other text editor, I can get ... |