-
-
DevelopPlus.net
ขายสคริปต์เว็บไซต์ลงประกาศสินค้า
-
SiamACT.com
เวปไซต์ที่ให้คุณโฆษณาตนเอง
ขายสคริปต์เว็บไซต์ลงประกาศสินค้า
หากว่าคุณต้องการมีเว็บไซต์ลงประกาศสินค้าเป็นของตนเอง
แต่ว่าคุณไม่มความรู้เรื่องการติดตั้งเว็บ ไม่อยากเช่า hosting
โปรดติดต่อมาหาเรา ทางเราจะให้บริการปัญหาเหล่านี้กับท่าน
เวปไซต์ที่ให้คุณโฆษณาตนเอง
SiamACT.com เป็นเวปไซต์ที่ให้คุณสามารถโปรโมท หรือโฆษณาตนเองได้ตามต้องการ
หากคุณมีวิดีโอเกี่ยวกับตัวคุณอยู่แล้วใน YouTube.com และต้องการโฆษณาให้เป็นที่แพร่หลาย
SiamACT.com จะเป็นสื่อกลางของวิดีโอคลิบเหล่านี้
-
-
-
method:setBounds ( x, y, width, height );
return type:void
content:ใช้กำหนด ตำแหน่ง และขนาดของ component
example:JButton button = new JButton ( "cancel" );
button.setBounds ( 0, 0, 100, 30 );
-
method:setBounds ( object_rectangle );
return type:void
content:ใช้กำหนด ตำแหน่ง และขนาดของ component
example:JButton button = new JButton ( "cancel" );
Rectangle rectangle = new Rectangle ( 0, 0, 100, 30 );
button.setBounds ( rectangle );
-
method:getBounds ();
return type:Rectangle
content:ใช้คืนค่า ตำแหน่ง และขนาดความกว้างและความสูง ของ component ในรูปแบบของ rectangle
example:JButton button = new JButton ( "cancel" );
button.setBounds ( 0, 0, 100, 30 );
Rectangle rectangle = button.getBounds ();
-
method:setLocation ( x, y );
return type:void
content:ใช้กำหนด ตำแหน่ง ของ component ( ใช้ในการเลื่อนตำแหน่งของ component )
example:JButton button = new JButton ( "cancel" );
button.setBounds ( 0, 0, 100, 30 );
button.setLocation ( 30, 0 );
-
method:setLocation ( object_point );
return type:void
content:ใช้กำหนด ตำแหน่ง ของ component ( ใช้ในการเลื่อนตำแหน่งของ component )
example:JButton button = new JButton ( "cancel" );
button.setBounds ( 0, 0, 100, 30 );
Point point = new Point ( 30, 0 );
button.setLocation ( point );
-
method:getLocation ();
return type:Point
content:ใช้คืนค่า ตำแหน่ง ของ component ในรูปแบบของ Point
example:JButton button = new JButton ( "cancel" );
button.setBounds ( 0, 0, 100, 30 );
Point point = button.getLocation ();
-
method:getLocationOnScreen ();
return type:Point
content:ใช้คืนค่า ตำแหน่ง ของ component ในรูปแบบของ point
example:JButton button = new JButton ( "cancel" );
button.setBounds ( 0, 0, 100, 30 );
Point point = button.getLocationOnScreen ();
-
method:setSize ( width, height );
return type:void
content:ใช้กำหนด ขนาด ของ component ( ใช้ในการเปลี่ยนขนาดของ component )
example:JButton button = new JButton ( "cancel" );
button.setBounds ( 0, 0, 100, 30 );
button.setSize ( 120, 30 );
-
method:setSize ( object_dimension );
return type:void
content:ใช้กำหนด ขนาด ของ component ( ใช้ในการเปลี่ยนขนาดของ component )
example:JButton button = new JButton ( "cancel" );
button.setBounds ( 0, 0, 100, 30 );
Dimension dimension = new Dimension ( 120, 30 );
button.setSize ( dimension );
-
method:getSize ();
return type:Dimension
content:ใช้คืนค่า ขนาดความกว้างและความสูง ของ component ในรูปแบบของ dimension
example:JButton button = new JButton ( "cancel" );
button.setBounds ( 0, 0, 100, 30 );
Dimension dimension = button.getSize ();
-
method:getPreferredSize ();
return type:Dimension
content:ใช้คืนค่า preferred size ของ component ในรูปแบบของ dimension
example:JButton button = new JButton ( "cancel" );
button.setBounds ( 0, 0, 100, 30 );
Dimension dimension = button.getPreferredSize ();
-
method:setBackground ( object_color );
return type:void
content:ใช้กำหนดสีพื้นหลังให้กับ component
example:JButton button = new JButton ( "cancel" );
button.setBackground ( Color.WHITE );
-
method:getBackground ();
return type:Color
content:ใช้คืนค่า สีพื้นหลัง ของ component
example:JButton button = new JButton ( "cancel" );
Color color = button.getBackground ();
-
method:setForeground ( object_color );
return type:void
content:ใช้กำหนดสีตัวอักษรให้กับ component
example:JButton button = new JButton ( "cancel" );
button.setForeground ( Color.RED );
-
method:getForeground ();
return type:Color
content:ใช้คืนค่า สีตัวอักษร ของ component
example:JButton button = new JButton ( "cancel" );
Color color = button.getForeground ();
-
method:setFont ( object_font );
return type:void
content:ใช้กำหนด font ให้กับ component
example:JButton button = new JButton ( "cancel" );
Font font = new Font ( "TimesRoman", Font.BOLD, 12 );
button.setFont ( font );
-
method:getFont ();
return type:Font
content:ใช้คืนค่า font ของ component
example:JButton button = new JButton ( "cancel" );
Font font = button.getFont ();
-
method:setEnabled ( boolean );
return type:void
content:ใช้กำหนดว่าจะให้ component สามารถทำงานได้หรือไม่
example:JButton button = new JButton ( "cancel" );
button.setEnabled ( true );
-
method:setVisible ( boolean );
return type:void
content:ใช้กำหนดว่าจะให้ component แสดงหรือไม่
example:JButton button = new JButton ( "cancel" );
button.setVisible ( true );
-
method:setName ( object_string_name );
return type:void
content:ใช้กำหนด ชื่อ ให้กับ component
example:JButton button = new JButton ( "cancel" );
button.setName ( "cancel_button" );
-
method:getName ();
return type:String
content:ใช้คืนค่า ชื่อ ของ component
example:JButton button = new JButton ( "cancel" );
String name = button.getName ();
-
method:requestFocus ();
return type:void
content:ใช้กำหนดให้ focus ไปที่ component
example:JButton button = new JButton ( "cancel" );
button.requestFocus ();
-
method:isEnabled ();
return type:boolean
content:ใช้ตรวจสอบว่า component ถูก enable อยู่หรือไม่
example:JButton button = new JButton ( "cancel" );
if ( button.isEnabled () )
{
System.out.println ( "component is enabled" );
}