-
-
DevelopPlus.net
ขายสคริปต์เว็บไซต์ลงประกาศสินค้า
-
SiamACT.com
เวปไซต์ที่ให้คุณโฆษณาตนเอง
ขายสคริปต์เว็บไซต์ลงประกาศสินค้า
หากว่าคุณต้องการมีเว็บไซต์ลงประกาศสินค้าเป็นของตนเอง
แต่ว่าคุณไม่มความรู้เรื่องการติดตั้งเว็บ ไม่อยากเช่า hosting
โปรดติดต่อมาหาเรา ทางเราจะให้บริการปัญหาเหล่านี้กับท่าน
เวปไซต์ที่ให้คุณโฆษณาตนเอง
SiamACT.com เป็นเวปไซต์ที่ให้คุณสามารถโปรโมท หรือโฆษณาตนเองได้ตามต้องการ
หากคุณมีวิดีโอเกี่ยวกับตัวคุณอยู่แล้วใน YouTube.com และต้องการโฆษณาให้เป็นที่แพร่หลาย
SiamACT.com จะเป็นสื่อกลางของวิดีโอคลิบเหล่านี้
-
-
-
method:new JTabbedPane ();
return type:JTabbedPane
content:ใช้สร้าง object JTabbedPane
example:JTabbedPane tab = new JTabbedPane ();
-
method:new JTabbedPane ( jtabbedpane_constant )
return type:JTabbedPane
content:ใช้สร้าง object JTabbedPane และกำหนดตำแหน่งที่จะใช้แสดง ป้ายชื่อ
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
-
method:addTab ( label, component );
return type:void
content:ใช้เพิ่ม tab เข้าไปใน object JTabbedPane
โดยมีการกำหนด ป้ายชื่อของ tab และ component ที่จะอยู่ภายใน tab ด้วย
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
tab.addTab ( "DataEmployee", new JButton ( "TestTab" ) );
-
method:addTab ( label, icon, component );
return type:void
content:ใช้เพิ่ม tab เข้าไปใน object JTabbedPane
โดยมีการกำหนด ป้ายชื่อของ tab และ icon ของ tab และ component ที่จะอยู่ภายใน tab ด้วย
example:ImageIcon icon = new ImageIcon ( "c:/bamboo.gif" );
JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
tab.addTab ( "DataEmployee", icon, new JButton ( "TestTab" ) );
-
method:addTab ( label, object_icon, component, tooltip );
return type:void
content:ใช้เพิ่ม tab เข้าไปใน object JTabbedPane
โดยมีการกำหนด ป้ายชื่อของ tab และ icon ของ tab และ component ที่จะอยู่ภายใน tab ด้วย
และยังมีการกำหนดข้อความอธิบายเมื่อมีการนำเมาส์มาชี้ที่ ป้ายชื่อของ tab อีกด้วย
example:ImageIcon icon = new ImageIcon ( "c:/bamboo.gif" );
JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
tab.addTab ( "DataEmployee", icon, new JButton ( "TestTab" ), "This is data employee." );
-
method:setTabLayoutPolicy ( jtabbedpane_constant );
return type:void
content:ใช้กำหนดรูปแบบการจัดวาง เมื่อจำนวน tab มีมากเกินกว่าที่จะแสดงให้เห็นได้หมด
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
tab.setTabLayoutPolicy ( JTabbedPane.SCROLL_TAB_LAYOUT );
-
method:getTabLayoutPolicy ();
return type:int
content:ใช้คืนค่า รูปแบบการจัดวาง เมื่อจำนวน tab มีมากเกินกว่าที่จะแสดงให้เห็นได้หมด
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
if ( tab.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT )
{
System.out.println ( "Layout of tab is scroll tab layout." );
}
-
method:setEnabledAt ( int_index, boolean );
return type:void
content:ใช้กำหนดว่า จะให้ tab ณ ตำแหน่งที่กำหนด ใช้งานได้อยู่หรือไม่
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
tab.addTab ( "DataEmployee", new JButton ( "TestTabEmployee" ) );
tab.addTab ( "DataPosition", new JButton ( "TestTabPosition" ) );
tag.setEnabledAt ( 0, true );
tag.setEnabledAt ( 1, false );
-
method:setMnemonicAt ( int_index, char_key_ascii );
return type:void
content:ใช้กำหนด คีย์ลัด ให้กับ tab ณ ตำแหน่งที่กำหนด ของ object JTabbedPane
โดย คีย์ลัด คือการกด alt + key
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
tab.addTab ( "DataEmployee", new JButton ( "TestTabEmployee" ) );
tab.addTab ( "DataPosition", new JButton ( "TestTabPosition" ) );
tag.setMnemonicAt ( 0, 65 );
tag.setMnemonicAt ( 1, 66 );
-
method:setTitleAt ( int_index, object_string );
return type:void
content:ใช้กำหนด หัวข้อ ให้กับ tab ณ ตำแหน่งที่กำหนด ใน Object JTabbedPane
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
tab.addTab ( "DataEmployee", new JButton ( "TestTabEmployee" ) );
tab.addTab ( "DataPosition", new JButton ( "TestTabPosition" ) );
tab.setTitleAt ( 0, "Title Of Employee Data." );
-
method:getTitleAt ( int_index );
return type:String
content:ใช้คืนค่า หัวข้อ ของ tab ณ ตำแหน่งที่กำหนด ใน Object JTabbedPane
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
tab.addTab ( "DataEmployee", new JButton ( "TestTabEmployee" ) );
tab.addTab ( "DataPosition", new JButton ( "TestTabPosition" ) );
String title_tab = tag.getTitleAt ( 0 );
-
method:setIconAt ( int_index, object_icon );
return type:void
content:ใช้กำหนด icon ให้กับ tab ณ ตำแหน่งที่กำหนด ใน Object JTabbedPane
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
tab.addTab ( "DataEmployee", new JButton ( "TestTabEmployee" ) );
tab.addTab ( "DataPosition", new JButton ( "TestTabPosition" ) );
ImageIcon icon = new ImageIcon ( "c:/bamboo.gif" );
tab.setIconAt ( 0, icon );
-
method:getIconAt ( int_index );
return type:Icon
content:ใช้คืนค่า icon ของ tab ณ ตำแหน่งที่กำหนด ใน Object JTabbedPane
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
tab.addTab ( "DataEmployee", new JButton ( "TestTabEmployee" ) );
tab.addTab ( "DataPosition", new JButton ( "TestTabPosition" ) );
ImageIcon icon = tab.getIconAt ( 0 );
-
method:setComponentAt ( int_index, object_component );
return type:void
content:ใช้กำหนด component ให้กับ tab ณ ตำแหน่งที่กำหนด ใน Object JTabbedPane
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
tab.addTab ( "DataEmployee", new JButton ( "TestTabEmployee" ) );
tab.addTab ( "DataPosition", new JButton ( "TestTabPosition" ) );
tab.setComponentAt ( new JLabel ( "TestTabLabelEmployee" ) );
-
method:setBackgroundAt ( int_index, object_color );
return type:void
content:ใช้กำหนด สีพื้นหลัง ให้กับ tab ณ ตำแหน่งที่กำหนด ใน Object JTabbedPane
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
tab.addTab ( "DataEmployee", new JButton ( "TestTabEmployee" ) );
tab.addTab ( "DataPosition", new JButton ( "TestTabPosition" ) );
tab.setBackgroundAt ( 0, Color.BLUE );
-
method:setSelectedIndex ( int_index );
return type:void
content:ใช้กำหนด ว่าจะให้ tab ณ ตำแหน่งใดของ Object JTabbedPane ถูกเลือกอยู่
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
tab.addTab ( "DataEmployee", new JButton ( "TestTabEmployee" ) );
tab.addTab ( "DataPosition", new JButton ( "TestTabPosition" ) );
tab.setSelectedIndex ( 1 );
-
method:getSelectedIndex ();
return type:int
content:ใช้คืนค่า ตำแหน่ง ของ tab ที่ถูกเลือกอยู่ ใน Object JTabbedPane
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
tab.addTab ( "DataEmployee", new JButton ( "TestTabEmployee" ) );
tab.addTab ( "DataPosition", new JButton ( "TestTabPosition" ) );
int current_tab = tab.getSelectedIndex ();
-
method:getSelectedComponent ();
return type:Component
content:ใช้คืนค่า component ของ tab ที่ถูกเลือกอยู่ ใน Object JTabbedPane
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
tab.addTab ( "DataEmployee", new JButton ( "TestTabEmployee" ) );
tab.addTab ( "DataPosition", new JButton ( "TestTabPosition" ) );
JButton button = ( JButton ) tab.getSelectedComponent ();
-
method:remove ( int_index );
return type:void
content:ใช้ลบ tab ณ ตำแหน่งท่กำหนด ออกจาก Object JTabbedPane
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
tab.addTab ( "DataEmployee", new JButton ( "TestTabEmployee" ) );
tab.addTab ( "DataPosition", new JButton ( "TestTabPosition" ) );
tab.remove ( 0 );
-
method:getTabCount ();
return type:int
content:ใช้คืนค่า จำนวน tab ที่มีทั้งหมดใน object JTabbedPane
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
tab.addTab ( "DataEmployee", new JButton ( "TestTabEmployee" ) );
tab.addTab ( "DataPosition", new JButton ( "TestTabPosition" ) );
int num_tab = tab.getTabCount ();
-
method:getComponentAt ( int_index );
return type:Component
content:ใช้คืนค่า component ของ tab ณ ตำแหน่งที่กำหนด ใน object JTabbedPane
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
tab.addTab ( "DataEmployee", new JButton ( "TestTabEmployee" ) );
tab.addTab ( "DataPosition", new JButton ( "TestTabPosition" ) );
JButton button = ( JButton ) tag.getComponentAt ( 0 );
-
property:TOP
return type:int
special:static
content:ใช้คืนค่า ตัวเลข ที่เป็นค่าคงที่ ที่แทนความหมายว่า ใชัจัดตำแหน่งที่จะแสดงป้ายชื่อ อยู่ด้านบน
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.TOP );
-
property:LEFT;
return type:int
special:static
content:ใช้คืนค่า ตัวเลข ที่เป็นค่าคงที่ ที่แทนความหมายว่า ใชัจัดตำแหน่งที่จะแสดงป้ายชื่อ อยู่ด้านซ้าย
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.LEFT );
-
property:BOTTOM
return type:int
special:static
content:ใช้คืนค่า ตัวเลข ที่เป็นค่าคงที่ ที่แทนความหมายว่า ใชัจัดตำแหน่งที่จะแสดงป้ายชื่อ อยู่ด้านล่าง
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.BOTTOM );
-
property:RIGHT;
return type:int
special:static
content:ใช้คืนค่า ตัวเลข ที่เป็นค่าคงที่ ที่แทนความหมายว่า ใชัจัดตำแหน่งที่จะแสดงป้ายชื่อ อยู่ด้านขวา
example:JTabbedPane tab = new JTabbedPane ( JTabbedPane.RIGHT );
-
property:WRAP_TAB_LAYOUT;
return type:int
special:static
content:ใช้คืนค่า ตัวเลข ที่เป็นค่าคงที่ ที่แทนความหมายว่า ในกรณีที่ tab มีมากเกินที่จะแสดงผลได้หมดให้มีการขึ้นบรรทัดใหม่
example:JTabbedPane tab = new JTabbedPane ();
tab.setTabLayoutPolicy ( JTabbedPane.WRAP_TAB_LAYOUT );
-
property:SCROLL_TAB_LAYOUT;
return type:int
special:static
content:ใช้คืนค่า ตัวเลข ที่เป็นค่าคงที่ ที่แทนความหมายว่า ในกรณีที่ tab มีมากเกินที่จะแสดงผลได้หมดให้มี scrollbar ขึ้นมา
example:JTabbedPane tab = new JTabbedPane ();
tab.setTabLayoutPolicy ( JTabbedPane.SCROLL_TAB_LAYOUT );