KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ui > TreeViewer


1 /*
2  * Copyright 1999,2000,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package ui;
17
18 /*
19  *
20  * command line invocation wrapper for TreeViewer
21  *
22  * @version
23  */

24
25 public class TreeViewer {
26
27     public TreeViewer() {
28         System.out.println("TreeViewer is no longer an instantiable class. Please use XMLTreeView instead.");
29         throw new RuntimeException JavaDoc();
30     }
31
32     public TreeViewer(String JavaDoc title, String JavaDoc filename) {
33         System.out.println("TreeViewer is no longer an instantiable class. Please use XMLTreeView instead.");
34         throw new RuntimeException JavaDoc();
35     }
36
37     public static void main(String JavaDoc[] argv) {
38         try {
39             Class.forName("javax.swing.JFrame");
40         } catch (ClassNotFoundException JavaDoc cnfe) {
41             System.out.println("Couldn't load class javax.swing.JFrame.");
42             System.out.println("This sample now uses Swing version 1.1. Couldn't find the Swing 1.1 classes, please check your CLASSPATH settings.");
43             System.exit(1);
44         }
45
46         TreeView.main(argv);
47     }
48
49 }
50
51
Popular Tags