[Jtreeview-cvs] jtreeview commit notification
Brought to you by:
alokito
From: Alok S. <al...@us...> - 2004-11-02 02:20:15
|
Update of /cvsroot/jtreeview/LinkedView/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19258/src Modified Files: TreeView.java Log Message: moved some unused code around. Index: TreeView.java =================================================================== RCS file: /cvsroot/jtreeview/LinkedView/src/TreeView.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** TreeView.java 24 Sep 2003 21:58:59 -0000 1.5 --- TreeView.java 2 Nov 2004 02:19:58 -0000 1.6 *************** *** 21,32 **** * END_HEADER */ ! import java.applet.*; ! import java.awt.*; ! import java.awt.event.*; ! import javax.swing.*; ! import java.io.*; ! import java.net.*; - import edu.stanford.genetics.treeview.*; import edu.stanford.genetics.treeview.app.TreeViewApp; --- 21,26 ---- * END_HEADER */ ! import java.applet.Applet; import edu.stanford.genetics.treeview.app.TreeViewApp; *************** *** 137,173 **** } */ - /** - * Pops up a window with the html source of a url. - * - * @param url url to show. - */ - public void showText(java.net.URL url) { - try { - Reader st = new InputStreamReader(url.openStream()); - int ch; - TextArea mp = new TextArea(); - ch = st.read(); - while (ch != -1) { - char[] cbuf = new char[1]; - cbuf[0] = (char) ch; - mp.append(new String(cbuf)); - ch = st.read(); - } - final Frame top = new Frame("Show URL"); - top.addWindowListener( - new WindowAdapter() { - - public void windowClosing(WindowEvent windowEvent) { - top.dispose(); - } - }); - - top.add(mp); - top.pack(); - top.show(); - - } catch (java.io.IOException e) { - } - } } --- 131,134 ---- |