38 |
|
|
39 |
package javax.swing.plaf.basic; |
package javax.swing.plaf.basic; |
40 |
|
|
41 |
import javax.swing.text.*; |
import java.awt.Color; |
42 |
import javax.swing.plaf.*; |
import java.awt.Dimension; |
43 |
import java.awt.*; |
import java.awt.Graphics; |
44 |
import javax.swing.*; |
import java.awt.Point; |
45 |
|
import java.awt.Rectangle; |
46 |
|
import javax.swing.JComponent; |
47 |
|
import javax.swing.plaf.ComponentUI; |
48 |
|
import javax.swing.plaf.TextUI; |
49 |
|
import javax.swing.text.BadLocationException; |
50 |
|
import javax.swing.text.DefaultEditorKit; |
51 |
|
import javax.swing.text.EditorKit; |
52 |
|
import javax.swing.text.Element; |
53 |
|
import javax.swing.text.JTextComponent; |
54 |
|
import javax.swing.text.Position; |
55 |
|
import javax.swing.text.View; |
56 |
|
import javax.swing.text.ViewFactory; |
57 |
|
|
58 |
public class BasicTextUI extends TextUI |
public class BasicTextUI extends TextUI |
59 |
|
implements ViewFactory |
60 |
{ |
{ |
61 |
int gap = 3; |
int gap = 3; |
62 |
View view = null; // was: new RootView(); |
View view = null; // was: new RootView(); |
180 |
{ |
{ |
181 |
return 0; |
return 0; |
182 |
} |
} |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
|
|
184 |
|
public View create (Element elem) |
185 |
|
{ |
186 |
|
// subclasses have to implement this to get this functionality |
187 |
|
return null; |
188 |
|
} |
189 |
|
} |