import javax.swing.*; import java.awt.*; public class Editor { static private JTextArea editor = new MyJTextArea(); // wird nicht automatisch aufgerufen private Editor() { editor.setFont( new Font("Arial", Font.BOLD,28) ); System.out.println("editor"); } public static JTextArea getInstance() { return editor; } }