mayankgera
03-28-2009, 10:44 PM
Hi
I m using JTree and i m trying to create an editor-tree frame(like in netbeans)
when i click on any file in Jtree for that code should be opened in EditorPane
i have tried but in this i can not make work for JTree file selection
File openAs = new File("../Tool/src/tool/PropertyWindow.java");
FileReader in = new FileReader(openAs);
txtarea.setPage(in, openAs.toString());
I m using JTree and i m trying to create an editor-tree frame(like in netbeans)
when i click on any file in Jtree for that code should be opened in EditorPane
i have tried but in this i can not make work for JTree file selection
File openAs = new File("../Tool/src/tool/PropertyWindow.java");
FileReader in = new FileReader(openAs);
txtarea.setPage(in, openAs.toString());