kerou / mt4j

Automatically exported from code.google.com/p/mt4j
GNU General Public License v2.0
0 stars 0 forks source link

Auto Wrap mode in MTTextArea doesent break the line if no previous 'space' is there #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
        AbstractMTApplication instance = getMTApplication();
        MTColor textAreaColor = MTColor.randomColor();

        MTTextArea mt = new MTTextArea(instance, 0,0, 300, 500);
         mt.setFillColor(textAreaColor);
         mt.setStrokeColor(textAreaColor);

         MTList aList = new MTList(0, 0, 300, 500, instance);

         MTListCell cell1 = new MTListCell(300, 500, instance);
         cell1.setFillColor(textAreaColor);
         cell1.addChild(mt);
         aList.addListElement(cell1);
         getCanvas().addChild(aList);

         MTKeyboard keyboard = new MTKeyboard(instance);
         keyboard.setFillColor(MTColor.BLACK);
         getCanvas().addChild(keyboard);
         keyboard.addTextInputListener(mt);

and then just type without a space

Original issue reported on code.google.com by sirhc.f...@gmail.com on 6 Jul 2011 at 9:28