/[classpath]/classpath/javax/swing/plaf/basic/BasicTextUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicTextUI.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.52 by rabbit78, Tue Nov 8 15:03:11 2005 UTC revision 1.53 by rabbit78, Wed Nov 9 10:22:34 2005 UTC
# Line 831  public abstract class BasicTextUI extend Line 831  public abstract class BasicTextUI extend
831    {    {
832      Caret caret = textComponent.getCaret();      Caret caret = textComponent.getCaret();
833      Highlighter highlighter = textComponent.getHighlighter();      Highlighter highlighter = textComponent.getHighlighter();
834        
835      if (textComponent.isOpaque())      if (textComponent.isOpaque())
836        paintBackground(g);        paintBackground(g);
837        
838      if (highlighter != null      if (highlighter != null
839          && textComponent.getSelectionStart() != textComponent.getSelectionEnd())          && textComponent.getSelectionStart() != textComponent.getSelectionEnd())
840        highlighter.paint(g);        highlighter.paint(g);
# Line 1064  public abstract class BasicTextUI extend Line 1064  public abstract class BasicTextUI extend
1064                    
1065      Insets insets = textComponent.getInsets();      Insets insets = textComponent.getInsets();
1066      return new Rectangle(insets.left, insets.top,      return new Rectangle(insets.left, insets.top,
1067                           width - insets.left + insets.right,                           width - insets.left - insets.right,
1068                           height - insets.top + insets.bottom);                           height - insets.top - insets.bottom);
1069    }    }
1070    
1071    /**    /**

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26