Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import javax.swing.JTree;
import javax.swing.tree.TreePath;

public class Main {
    public static void main(String[] argv) {
        JTree tree = new JTree() {
            protected void setExpandedState(TreePath path, boolean state) {
                if (state) {
                    super.setExpandedState(path, state);
                }
            }
        };
    }
}