/[classpath]/classpath/javax/swing/text/FieldView.java
ViewVC logotype

Diff of /classpath/javax/swing/text/FieldView.java

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

revision 1.1.2.6 by gnu_andrew, Wed Nov 2 00:44:03 2005 UTC revision 1.1.2.7 by gnu_andrew, Sun Nov 27 21:00:42 2005 UTC
# Line 125  public class FieldView extends PlainView Line 125  public class FieldView extends PlainView
125    
126      try      try
127        {        {
128          text = elem.getDocument().getText(elem.getStartOffset(),          text = elem.getDocument().getText(elem.getStartOffset(),
129                                            elem.getEndOffset());                                            elem.getEndOffset());
130        }        }
131      catch (BadLocationException e)      catch (BadLocationException e)
132        {        {
133          // This should never happen.          // Should never happen
134          text = "";          AssertionError ae = new AssertionError();
135            ae.initCause(e);
136            throw ae;
137        }        }
138        
139      return fm.stringWidth(text) + 30;      return fm.stringWidth(text);
140    }    }
141    
142    public int getResizeWeight(int axis)    public int getResizeWeight(int axis)

Legend:
Removed from v.1.1.2.6  
changed lines
  Added in v.1.1.2.7

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