usr/src/java/util/org/opensolaris/os/vp/util/swing/WrappingText.java
changeset 685 767674b0a2fb
parent 647 ddbb04508ea4
equal deleted inserted replaced
684:f7b1d1fbdb8e 685:767674b0a2fb
   241 	ArrayList<String> lines = new ArrayList<String>();
   241 	ArrayList<String> lines = new ArrayList<String>();
   242 	FontMetrics metrics = getFontMetrics(getFont());
   242 	FontMetrics metrics = getFontMetrics(getFont());
   243 	String text = getText();
   243 	String text = getText();
   244 
   244 
   245 	// The current line
   245 	// The current line
   246 	StringBuffer line = new StringBuffer();
   246 	StringBuilder line = new StringBuilder();
   247 
   247 
   248 	// Space that will be added to current line as long as it's not the last
   248 	// Space that will be added to current line as long as it's not the last
   249 	// token in the line
   249 	// token in the line
   250 	String pendingSpace = "";
   250 	String pendingSpace = "";
   251 	int pendingSpaceWidth = 0;
   251 	int pendingSpaceWidth = 0;