I can’t understand why the JScrollpane won’t be added to JTextArea, is this because of some sort of layout problem? This is a text editor made by my friend, he initially made it with only AWT but I then replaced AWT TextArea with swing’s JTextArea to wrap text. Output: Edit: Thanks everyone who invested their time for me. I figured
Tag: text-editor
How to replace text symbol in Java or Text Editor
I want to replace the symbol after the second comma. I know how to group until the second comma. I tried below. But I don’t know how to replace from “/” to “?” after the second comma I expected below. GROUP/COMPANY,USER/PASSWORD,BIRTHDAY:”2010/01/01″,ADDRESS:”US/ALASKA” ↓ GROUP/COMPANY,USER/PASSWORD,BIRTHDAY:”2010?01?01″,ADDRESS:”US?ALASKA” Answer In Java Note that the logic of below code is “after finding the first numeric value”,