void addWithFont(Container var1, Component var2, Font var3) {
if (var3 != null) {
var2.setFont(var3);
}
var1.add(var2);
}
public void buildGUI() {
((Component)this).setBackground(Color.white);
((Container)this).setLayout(new BorderLayout());
Panel var1 = new Panel();
Label var2 = new Label("Text Boundary Demo", 1);
((Component)var2).setFont(Utility.titleFont);
((Container)var1).add(var2);
Label var3 = new Label("v1.1a9, Demo", 1);
((Component)var3).setFont(Utility.creditFont);
((Container)var1).add(var3);
Panel var4 = new Panel();
Label var5 = new Label("Boundaries", 0);
((Component)var5).setFont(Utility.labelFont);
((Container)var4).add(var5);
this.bound = new Choice();
this.bound.addItemListener(this);
this.bound.addItem("Sentence");
this.bound.addItem("Line Break");
this.bound.addItem("Word");
this.bound.addItem("Char");
if (null != null) {
this.bound.setFont((Font)null);
}
((Container)var4).add(this.bound);
((Container)var1).add(var4);
Utility.fixGrid(var1, 1);
((Container)this).add("North", var1);
byte var6 = 15;
byte var7 = 50;
this.text = new TextArea(this.getInitialText(), var6, var7);
this.text.addKeyListener(this);
this.text.setEditable(true);
this.text.selectAll();
this.text.setFont(Utility.editFont);
((Container)this).add("Center", this.text);
Panel var8 = new Panel();
this.addWithFont(var8, new Label("", 0), Utility.creditFont);
this.addWithFont(var8, new Label("", 0), Utility.creditFont);
Utility.fixGrid(var8, 1);
((Container)this).add("South", var8);
this.handleEnumChanged();
}
public String getInitialText() {
return "(\"This is a complete sentence.\") This is (\"not.\") also. \nAn abbreviation in the middle, etc. and one at the end, etc. This\nis a simple sample 012.566,5 sentence. It doesn't\nhave to make any sense, as you can see. Nel mezzo del \ncammin di nostra vita, mi ritrovai in una selva oscura. Che\nla dritta via aveo smarrita. Not on my time (el timo.)! And\ntabulated columns: \tCol1\tCol2\t3,456%.\t\nIs this a question??? I wonder... Hmm. Harris thumbed\ndown several, including \"Away We Go\" (which became the \nhuge success Oklahoma!). One species, B. anthracis, is \nhighly virulent. Wolf said about Sounder: \"Beautifully \nthought-out and directed.\" Have you ever said, \"This is where I\nshall live\"? He said 1000,233,456.000 and answered, \"You may not!\" \nAnother popular saying is: \"How do you do?\". What is the \nproper use of the abbreviation pp.? Yes, I am 12' 3\" tall!!";