Java swing GUI tutorial #14: JTextArea

preview_player
Показать описание
If you have any question, leave it in comment section below.
Рекомендации по теме
Комментарии
Автор

I typed this in exactly and get nothing... then I follow the recommendations to add "static" to all kinds of things and it works.

example:      JFrame frame = new JFrame("JTextArea demo");
change to:    static JFrame frame = new JFrame("JTextArea demo");

also:            public TextArea() {
changed to : public static TextArea() {

Did I miss something, or are these just details about different versions of java?

Trackerchef
visit shbcf.ru