Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/memoire/bu/BuEditorPane.java


1   /**
2    * @modification $Date: 2002/07/26 09:38:20 $
3    * @statut       unstable
4    * @file         BuEditorPane.java
5    * @version      0.36
6    * @author       Guillaume Desnoix
7    * @email        guillaume@desnoix.com
8    * @license      GNU General Public License 2 (GPL2)
9    * @copyright    1998-2001 Guillaume Desnoix
10   */
11  
12  package com.memoire.bu;
13  
14  import com.memoire.bu.*;
15  
16  import java.awt.*;
17  import java.net.*;
18  import java.io.*;
19  
20  import javax.swing.*;
21  import javax.swing.text.*;
22  
23  public class BuEditorPane
24         extends JEditorPane
25  {
26    public BuEditorPane()
27    {
28      super();
29    }
30  
31    public BuEditorPane(URL _url) throws IOException
32    {
33      super(_url);
34    }
35  
36    public BuEditorPane(String _url) throws IOException
37    {
38      super(_url);
39    }
40  
41    public EditorKit getEditorKitForContentType(String _type)
42    {
43      /*
44      if(!BuLib.isSwing11())
45      {
46        // remove charset if swing 1.03
47        int i=_type.indexOf(";");
48        if(i>=0) _type=_type.substring(0,i).trim();
49      }
50      */
51  
52      return super.getEditorKitForContentType(_type);
53    } 
54  
55    // Anti-aliasing
56  
57    public void paint(Graphics _g)
58    {
59      BuLib.setAntialiasing(_g);
60      super.paint(_g);
61    }
62  }