private JTree getJTree() { DefaultTreeModel model = loadTree(); if (jTree == null) { jTree = new JTree(model); // weiterer Code .... }}private JButton getJButton() { if (jButton == null) { jButton = new JButton(); jButton.setText("Aktualisieren"); jButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { DefaultTreeModel model = loadTree(); jTree.setModel(model); } }); } return jButton;}public DefaultTreeModel loadTree() { ...}