1 16 package ui; 17 18 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 (); 30 } 31 32 public TreeViewer(String title, String filename) { 33 System.out.println("TreeViewer is no longer an instantiable class. Please use XMLTreeView instead."); 34 throw new RuntimeException (); 35 } 36 37 public static void main(String [] argv) { 38 try { 39 Class.forName("javax.swing.JFrame"); 40 } catch (ClassNotFoundException 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 |