method:new JScrollPane ( scrollpaneconstants_vertical, scrollpaneconstants_horizontal );
return type:JScrollPane
content:ใช้สร้าง Object JScrollPane โดยมีการกำหนดคุณสมบัติของการมี scrollbar ทั้งแนวตั้งและแนวนอนไว้ด้วย
example:Container container = getContentPane ();
int scroll_vertical = ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
int scroll_horizontal = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER;
JScrollPane scroll_pane = new JScrollPane ( scroll_vertical, scroll_horizontal );
container.add ( scroll_pane );