[jsword-svn] bibledesktop/java/main/org/crosswire/bibledesktop/display/textpane s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Sat Oct 2 16:51:08 MST 2004


Update of /cvs/jsword/bibledesktop/java/main/org/crosswire/bibledesktop/display/textpane
In directory www.crosswire.org:/tmp/cvs-serv19652/java/main/org/crosswire/bibledesktop/display/textpane

Modified Files:
	TextPaneBookDataDisplay.java 
Log Message:
advanced search and a-a option.

Index: TextPaneBookDataDisplay.java
===================================================================
RCS file: /cvs/jsword/bibledesktop/java/main/org/crosswire/bibledesktop/display/textpane/TextPaneBookDataDisplay.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** TextPaneBookDataDisplay.java	3 Sep 2004 21:38:17 -0000	1.10
--- TextPaneBookDataDisplay.java	2 Oct 2004 23:51:06 -0000	1.11
***************
*** 3,9 ****
  import java.awt.Component;
  import java.awt.ComponentOrientation;
- import java.awt.Graphics;
- import java.awt.Graphics2D;
- import java.awt.RenderingHints;
  import java.awt.event.MouseListener;
  import java.net.MalformedURLException;
--- 3,6 ----
***************
*** 22,25 ****
--- 19,23 ----
  import org.crosswire.bibledesktop.display.URLEvent;
  import org.crosswire.bibledesktop.display.URLEventListener;
+ import org.crosswire.common.swing.AntiAliasedTextPane;
  import org.crosswire.common.util.Logger;
  import org.crosswire.common.util.Reporter;
***************
*** 411,430 ****
       */
      private EventListenerList listenerList = new EventListenerList();
- 
-     /**
-      * 
-      */
-     public class AntiAliasedTextPane extends JTextPane
-     {
-         /* (non-Javadoc)
-          * @see javax.swing.JComponent#paintComponent(java.awt.Graphics)
-          */
-         public void paintComponent(Graphics g)
-         {
-             Graphics2D g2 = (Graphics2D) g;
-             g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
-             g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
-             super.paintComponent(g2);
-         }
-     }
  }
--- 409,411 ----



More information about the jsword-svn mailing list