Updated these files to use DuffPane instead of JTextPane and so take advantage of DLC's new line wrapping code.

This commit is contained in:
eg3p 2002-10-31 19:06:47 +00:00
parent 97c530e974
commit d070e470ef
4 changed files with 12 additions and 8 deletions

View file

@ -36,7 +36,7 @@ import org.thdl.util.ThdlDebug;
public class Tibetan implements TranscriptView
{
private JTextPane text = null;
private DuffPane text = null;
private Document xmlDoc = null;
private StringBuffer idBuffer = null;
private StringBuffer t1Buffer = null;
@ -172,7 +172,8 @@ public class Tibetan implements TranscriptView
t2Buffer.append(',');
}
text = new JTextPane(doc);
text = new DuffPane();
text.setDocument(doc);
idBuffer.toString();
t1Buffer.toString();
t2Buffer.toString();

View file

@ -36,7 +36,7 @@ import org.thdl.util.ThdlDebug;
public class TibetanEnglish implements TranscriptView
{
private JTextPane text = null;
private DuffPane text = null;
private Document xmlDoc = null;
private StringBuffer idBuffer = null;
private StringBuffer t1Buffer = null;
@ -180,7 +180,8 @@ public class TibetanEnglish implements TranscriptView
doc.insertString(endPos.getOffset(), "\n", null);
}
text = new JTextPane(doc);
text = new DuffPane();
text.setDocument(doc);
idBuffer.toString();
t1Buffer.toString();
t2Buffer.toString();

View file

@ -36,7 +36,7 @@ import org.thdl.util.ThdlDebug;
public class TibetanWylie implements TranscriptView
{
private JTextPane text = null;
private DuffPane text = null;
private Document xmlDoc = null;
private StringBuffer idBuffer = null;
private StringBuffer t1Buffer = null;
@ -183,7 +183,8 @@ public class TibetanWylie implements TranscriptView
doc.insertString(endPos.getOffset(), "\n", null);
}
text = new JTextPane(doc);
text = new DuffPane();
text.setDocument(doc);
idBuffer.toString();
t1Buffer.toString();
t2Buffer.toString();

View file

@ -36,7 +36,7 @@ import org.thdl.util.ThdlDebug;
public class TibetanWylieEnglish implements TranscriptView
{
private JTextPane text = null;
private DuffPane text = null;
private Document xmlDoc = null;
private StringBuffer idBuffer = null;
private StringBuffer t1Buffer = null;
@ -185,7 +185,8 @@ public class TibetanWylieEnglish implements TranscriptView
doc.insertString(endPos.getOffset(), "\n", null);
}
text = new JTextPane(doc);
text = new DuffPane();
text.setDocument(doc);
idBuffer.toString();
t1Buffer.toString();
t2Buffer.toString();