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:
parent
97c530e974
commit
d070e470ef
4 changed files with 12 additions and 8 deletions
|
@ -36,7 +36,7 @@ import org.thdl.util.ThdlDebug;
|
||||||
|
|
||||||
public class Tibetan implements TranscriptView
|
public class Tibetan implements TranscriptView
|
||||||
{
|
{
|
||||||
private JTextPane text = null;
|
private DuffPane text = null;
|
||||||
private Document xmlDoc = null;
|
private Document xmlDoc = null;
|
||||||
private StringBuffer idBuffer = null;
|
private StringBuffer idBuffer = null;
|
||||||
private StringBuffer t1Buffer = null;
|
private StringBuffer t1Buffer = null;
|
||||||
|
@ -172,7 +172,8 @@ public class Tibetan implements TranscriptView
|
||||||
t2Buffer.append(',');
|
t2Buffer.append(',');
|
||||||
}
|
}
|
||||||
|
|
||||||
text = new JTextPane(doc);
|
text = new DuffPane();
|
||||||
|
text.setDocument(doc);
|
||||||
idBuffer.toString();
|
idBuffer.toString();
|
||||||
t1Buffer.toString();
|
t1Buffer.toString();
|
||||||
t2Buffer.toString();
|
t2Buffer.toString();
|
||||||
|
|
|
@ -36,7 +36,7 @@ import org.thdl.util.ThdlDebug;
|
||||||
|
|
||||||
public class TibetanEnglish implements TranscriptView
|
public class TibetanEnglish implements TranscriptView
|
||||||
{
|
{
|
||||||
private JTextPane text = null;
|
private DuffPane text = null;
|
||||||
private Document xmlDoc = null;
|
private Document xmlDoc = null;
|
||||||
private StringBuffer idBuffer = null;
|
private StringBuffer idBuffer = null;
|
||||||
private StringBuffer t1Buffer = null;
|
private StringBuffer t1Buffer = null;
|
||||||
|
@ -180,7 +180,8 @@ public class TibetanEnglish implements TranscriptView
|
||||||
doc.insertString(endPos.getOffset(), "\n", null);
|
doc.insertString(endPos.getOffset(), "\n", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
text = new JTextPane(doc);
|
text = new DuffPane();
|
||||||
|
text.setDocument(doc);
|
||||||
idBuffer.toString();
|
idBuffer.toString();
|
||||||
t1Buffer.toString();
|
t1Buffer.toString();
|
||||||
t2Buffer.toString();
|
t2Buffer.toString();
|
||||||
|
|
|
@ -36,7 +36,7 @@ import org.thdl.util.ThdlDebug;
|
||||||
|
|
||||||
public class TibetanWylie implements TranscriptView
|
public class TibetanWylie implements TranscriptView
|
||||||
{
|
{
|
||||||
private JTextPane text = null;
|
private DuffPane text = null;
|
||||||
private Document xmlDoc = null;
|
private Document xmlDoc = null;
|
||||||
private StringBuffer idBuffer = null;
|
private StringBuffer idBuffer = null;
|
||||||
private StringBuffer t1Buffer = null;
|
private StringBuffer t1Buffer = null;
|
||||||
|
@ -183,7 +183,8 @@ public class TibetanWylie implements TranscriptView
|
||||||
doc.insertString(endPos.getOffset(), "\n", null);
|
doc.insertString(endPos.getOffset(), "\n", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
text = new JTextPane(doc);
|
text = new DuffPane();
|
||||||
|
text.setDocument(doc);
|
||||||
idBuffer.toString();
|
idBuffer.toString();
|
||||||
t1Buffer.toString();
|
t1Buffer.toString();
|
||||||
t2Buffer.toString();
|
t2Buffer.toString();
|
||||||
|
|
|
@ -36,7 +36,7 @@ import org.thdl.util.ThdlDebug;
|
||||||
|
|
||||||
public class TibetanWylieEnglish implements TranscriptView
|
public class TibetanWylieEnglish implements TranscriptView
|
||||||
{
|
{
|
||||||
private JTextPane text = null;
|
private DuffPane text = null;
|
||||||
private Document xmlDoc = null;
|
private Document xmlDoc = null;
|
||||||
private StringBuffer idBuffer = null;
|
private StringBuffer idBuffer = null;
|
||||||
private StringBuffer t1Buffer = null;
|
private StringBuffer t1Buffer = null;
|
||||||
|
@ -185,7 +185,8 @@ public class TibetanWylieEnglish implements TranscriptView
|
||||||
doc.insertString(endPos.getOffset(), "\n", null);
|
doc.insertString(endPos.getOffset(), "\n", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
text = new JTextPane(doc);
|
text = new DuffPane();
|
||||||
|
text.setDocument(doc);
|
||||||
idBuffer.toString();
|
idBuffer.toString();
|
||||||
t1Buffer.toString();
|
t1Buffer.toString();
|
||||||
t2Buffer.toString();
|
t2Buffer.toString();
|
||||||
|
|
Loading…
Reference in a new issue