
9.10 Graphics Using AWT Controls
6. “Dr Ramesh Vasappanavara PhD,MTech(IIT KGP),MBA,MSc,BTech\n” +
7. “Anand Vasappanavara BTech(IIT Chennai),ME(IISc)\n ” +
8. “Gautam Vasappanavara BTech(AUCOE),ME(BITS,Pilani)MBA(ISB) ”;
9. public void init() {
10. add(new TextArea (msg, 5, 25,
11. TextArea.SCROLLBARS_NONE));
12. add(new TextArea (msg, 5, 25,
13. TextArea.SCROLLBARS_BOTH));
14. }
15. }
At Line No. 11: we have used SCROLLBARS_NONE. This means that the text is auto-
matically wrapped around.
At Line No. 13: we have used both scroll bars. The scroll bars appear if the content
exceeds the dimension.
9.3.5 Check Boxes
A check box is a graphical ...