| new JTextArea () | ใช้สร้าง object JTextArea |
|---|---|
| new JTextArea ( int_rows, int_column ) | ใช้สร้าง object JTextArea และมีการกำหนด จำนวนแถว และ จำนวนคอลัมน์ ด้วย |
| new JTextArea ( object_string ) | ใช้สร้าง object JTextArea และมีการกำหนดข้อความ ใน object ด้วย |
| new JTextArea ( object_string, int_rows, int_column ) | ใช้สร้าง object JTextArea และมีการกำหนด ข้อความ ให้ object ด้วย และมีการกำหนด จำนวนแถว และ จำนวนคอลัมน์ ด้วย |
| setText() | ใช้กำหนด ข้อความ ให้กับ object |
| getSelectedText() | ใช้คืนค่า ข้อความ ที่ถูกลากคลุมใน object JTextArea |
method:new JTextArea ();
return type:JTextArea
content:ใช้สร้าง object JTextArea
example:JTextArea text_area = new JTextArea ();
method:new JTextArea ( int_rows, int_column );
return type:JTextArea
content:ใช้สร้าง object JTextArea และมีการกำหนด จำนวนแถว และ จำนวนคอลัมน์ ด้วย
example:JTextArea text_area = new JTextArea ( 12, 60 );
method:new JTextArea ( object_string );
return type:JTextArea
content:ใช้สร้าง object JTextArea และมีการกำหนดข้อความ ใน object ด้วย
example:JTextArea text_area = new JTextArea ( "บ้านเลขที่ หมู่ที่ ตำบล อำเภอ จังหวัด ประเทศ" );
method:new JTextArea ( object_string, int_rows, int_column );
return type:JTextArea
content:ใช้สร้าง object JTextArea และมีการกำหนด ข้อความ ให้ object ด้วย และมีการกำหนด จำนวนแถว และ จำนวนคอลัมน์ ด้วย
example:JTextArea text_area = new JTextArea ( "บ้านเลขที่ หมู่ที่ ตำบล อำเภอ จังหวัด ประเทศ", 12, 60 );
method:setText ( object_string );
return type:void
content:ใช้กำหนด ข้อความ ให้กับ object
example:JTextArea text_area = new JTextArea (); text_area.setText ( "บ้านเลขที่ หมู่ที่ ตำบล อำเภอ จังหวัด ประเทศ" );
method:getSelectedText ();
return type:String
content:ใช้คืนค่า ข้อความ ที่ถูกลากคลุมใน object JTextArea
example:JTextArea text_area = new JTextArea ( "บ้านเลขที่ หมู่ที่ ตำบล อำเภอ จังหวัด ประเทศ", 12, 60 ); String selected_text = text_area.getSelectedText ();