public static String addScrollPane(String objName, JavaClass jclass, JavaMethod initMethod, Element root ){
		String hScroll = Parser.getAttribute(root, "hscroll");
		String vScroll = Parser.getAttribute(root, "vscroll");
		if( hScroll == null && vScroll == null ){
			// No scroll pane to initialize
			return null;
		}
		
		// We initialize a scroll pane...
		// See: http://download.oracle.com/javase/tutorial/uiswing/components/scrollpane.html
		jclass.addImport(JScrollPane.class);
		jclass.addImport(ScrollPaneConstants.class);

		String hsbPolicy = "ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED";
		if( hScroll != null ){
			if( hScroll.equals("always") ){
				hsbPolicy = "ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS";
			}
			else if( hScroll.equals("never") ){
				hsbPolicy = "ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER";
			}
		}

		String vsbPolicy = "ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED";
		if( vScroll != null ){
			if( vScroll.equals("always") ){
				vsbPolicy = "ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS";
			}
			else if( vScroll.equals("never") ){
				vsbPolicy = "ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER";
			}
		}

		String scrollName = Parser.getUniqueId("scrollPane");
		initMethod.addCode("JScrollPane " + scrollName +" = new JScrollPane(" + objName 
				+ "," + vsbPolicy 
				+ "," + hsbPolicy + ");");
		return scrollName;
	}