Thread: [Htmlparser-cvs] htmlparser/src/org/htmlparser/lexerapplications/thumbelina ThumbelinaFrame.java,1.2
Brought to you by:
derrickoswald
From: Derrick O. <der...@us...> - 2004-07-31 16:43:12
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexerapplications/thumbelina In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18039/src/org/htmlparser/lexerapplications/thumbelina Modified Files: ThumbelinaFrame.java TileSet.java Thumbelina.java Sequencer.java Log Message: Remove unused variables and other fixes exposed by turning on compiler warnings. Index: ThumbelinaFrame.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexerapplications/thumbelina/ThumbelinaFrame.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ThumbelinaFrame.java 16 Dec 2003 02:29:56 -0000 1.2 --- ThumbelinaFrame.java 31 Jul 2004 16:42:30 -0000 1.3 *************** *** 381,386 **** public void restoreSize () { - Toolkit tk; - Dimension dim; Preferences prefs; String size; --- 381,384 ---- *************** *** 849,853 **** { String result; - URL url; result = JOptionPane.showInputDialog ( --- 847,850 ---- *************** *** 993,999 **** for (int i = 0; i < results[1].length; i++) { ! String found = ((URL)results[1][i]).toExternalForm (); if (-1 == found.indexOf ("google")) ! getThumbelina ().append ((URL)results[1][i]); } prefs.put (GOOGLEQUERY, query); --- 990,996 ---- for (int i = 0; i < results[1].length; i++) { ! String found = results[1][i].toExternalForm (); if (-1 == found.indexOf ("google")) ! getThumbelina ().append (results[1][i]); } prefs.put (GOOGLEQUERY, query); *************** *** 1061,1066 **** { String url; ! ThumbelinaFrame frame; ! Thumbelina thumbelina; System.setProperty ("sun.net.client.defaultReadTimeout", "7000"); --- 1058,1062 ---- { String url; ! ThumbelinaFrame thumbelina; System.setProperty ("sun.net.client.defaultReadTimeout", "7000"); *************** *** 1080,1085 **** try { ! frame = new ThumbelinaFrame (url); ! frame.setVisible (true); } catch (MalformedURLException murle) --- 1076,1081 ---- try { ! thumbelina = new ThumbelinaFrame (url); ! thumbelina.setVisible (true); } catch (MalformedURLException murle) Index: Thumbelina.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexerapplications/thumbelina/Thumbelina.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Thumbelina.java 24 May 2004 16:18:17 -0000 1.5 --- Thumbelina.java 31 Jul 2004 16:42:30 -0000 1.6 *************** *** 57,60 **** --- 57,61 ---- import javax.swing.JTextField; import javax.swing.ListSelectionModel; + import javax.swing.ScrollPaneConstants; import javax.swing.border.BevelBorder; import javax.swing.event.ChangeEvent; *************** *** 388,393 **** URL url; String ref; - boolean found; - URL u; list = new ArrayList (); --- 389,392 ---- *************** *** 487,493 **** mPicturePanelScroller.setDoubleBuffered (false); mPicturePanelScroller.setHorizontalScrollBarPolicy ( ! JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); mPicturePanelScroller.setVerticalScrollBarPolicy ( ! JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); add (mMainArea, java.awt.BorderLayout.CENTER); --- 486,492 ---- mPicturePanelScroller.setDoubleBuffered (false); mPicturePanelScroller.setHorizontalScrollBarPolicy ( ! ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS); mPicturePanelScroller.setVerticalScrollBarPolicy ( ! ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); add (mMainArea, java.awt.BorderLayout.CENTER); *************** *** 1156,1160 **** source = (JSlider)event.getSource (); if (!source.getValueIsAdjusting ()) ! setSpeed ((int)source.getValue ()); } --- 1155,1159 ---- source = (JSlider)event.getSource (); if (!source.getValueIsAdjusting ()) ! setSpeed (source.getValue ()); } *************** *** 1179,1183 **** if (source == mHistory && !event.getValueIsAdjusting ()) { ! hrefs = (Object[])source.getSelectedValues (); for (int i = 0; i < hrefs.length; i++) { --- 1178,1182 ---- if (source == mHistory && !event.getValueIsAdjusting ()) { ! hrefs = source.getSelectedValues (); for (int i = 0; i < hrefs.length; i++) { *************** *** 1454,1457 **** --- 1453,1459 ---- * * $Log$ + * Revision 1.6 2004/07/31 16:42:30 derrickoswald + * Remove unused variables and other fixes exposed by turning on compiler warnings. + * * Revision 1.5 2004/05/24 16:18:17 derrickoswald * Part three of a multiphase refactoring. Index: Sequencer.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexerapplications/thumbelina/Sequencer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Sequencer.java 21 Sep 2003 18:20:56 -0000 1.1 --- Sequencer.java 31 Jul 2004 16:42:30 -0000 1.2 *************** *** 224,235 **** public void add (final Image image, final URL url, final boolean background) { - int x; - int y; - Point p; Picture picture; int size; - x = image.getWidth (null); - y = image.getHeight (null); picture = new Picture (); picture.setImage (image); --- 224,230 ---- *************** *** 285,289 **** Picture picture; int size; - Point p; while (true) --- 280,283 ---- *************** *** 355,358 **** --- 349,355 ---- * * $Log$ + * Revision 1.2 2004/07/31 16:42:30 derrickoswald + * Remove unused variables and other fixes exposed by turning on compiler warnings. + * * Revision 1.1 2003/09/21 18:20:56 derrickoswald * Thumbelina Index: TileSet.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexerapplications/thumbelina/TileSet.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TileSet.java 21 Sep 2003 18:20:56 -0000 1.1 --- TileSet.java 31 Jul 2004 16:42:30 -0000 1.2 *************** *** 103,107 **** splits = split (r, rover, false); for (frags = splits.elements (); frags.hasMoreElements (); ) ! regions.addElement ((Picture)frags.nextElement ()); } else --- 103,107 ---- splits = split (r, rover, false); for (frags = splits.elements (); frags.hasMoreElements (); ) ! regions.addElement (frags.nextElement ()); } else *************** *** 540,543 **** --- 540,546 ---- * * $Log$ + * Revision 1.2 2004/07/31 16:42:30 derrickoswald + * Remove unused variables and other fixes exposed by turning on compiler warnings. + * * Revision 1.1 2003/09/21 18:20:56 derrickoswald * Thumbelina |