/[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.8 by rabbit78, Thu Oct 27 15:09:32 2005 UTC revision 1.9 by rabbit78, Fri Nov 4 11:32:05 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.          assert false : e.toString();
134          text = "";          text = "";
135        }        }
136        
137      return fm.stringWidth(text) + 30;      return fm.stringWidth(text);
138    }    }
139    
140    public int getResizeWeight(int axis)    public int getResizeWeight(int axis)

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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