For text, you could use the same component as in the above example (JEditorPane) and learn to read text from a file using BufferedReader. Something like this would be useful - you could append each line of text to a GUI component (in this case, JEditorPane).
i am using the deitel and deitel "how to program" java book...the context is decent, but the examples presented in the text do not work! i always get errors when i try to run the examples.how can i learn from examples that dont work!
are these "head first" books something you reccomend? who makes them? [ March 20, 2005: Message edited by: m brown ]
Ah, I've also got a copy of that Deitel book (albeit an old 3rd edition), its got too much tedious content and I hate the way almost every example uses a GUI to explain something (it may have changed in the later editions).
Head First - I've heard lots of good things about them, read more about them here. [ March 20, 2005: Message edited by: Kashif Riaz ]
with no lack of respect for Kathy and Bert, i actually don't like Head First Java. that might be because i need a very structured text for my personal learning style, and HFJ is nothing if not chaotic. even its graphics-heavy presentation rubs me the wrong way. i have trouble focusing on its pages, because they're so burdened by glitzy pictures and a hyperactive, short-attention-span format of jumping from one topic to the next that keep distracting my attention from the task of learning Java.
HFJ is the textbook used in the 300-level Java programming class that brought me to the Java Ranch website, and i'm actually learning Java far more through this bulletin board and Sun's API documentation website than i am through the book. my copy will be in mint condition when i resell it to my academic bookstore.
that said, it might be a good choice for self-study learners with less need for structure and focus than my own brain demands. personally, i prefer a more stodgy approach to learning; perhaps i'm just growing old.
snakes are really good at eating slugs. And you wouldn't think it, but so are tiny ads: