Sorry techb, I have to disagree. I would say to start with c++ rather than java, especially if your end goal is to create a text editor. It was the first language I learned, and I still love the fact that I learned c++ first as it is an EXTREMELY powerful language imo. Also, i feel like c++ syntax, as in the words used, tie in much better with other languages compared to java. I find it easy to read vb, c, c++, python, and html/css (though i did technically learn html way before c++) and the only one i actually KNOW is c++ . Whereas i find Java and PHP a little more confusing.
Also I read an article somewhere about how there was a college that taught all computer science majors a language ( i want to say it was java, though i might have the wrong language) for their first programming language. and all the electrical engineers were learning c++ first, over the course of several years those EE majors ended up becoming better programmers than the CS majors, so the school had to change its policy and have the CS majors also learn c++ first.
As for python, idk how you can get much more useful lol. You can develop full on 3d games in python as long as you have a graphics library, it's one of the most powerful and useful languages out there. However, it's still better to learn c++ (or java) first.