Bug 57084 Bad focus in the 'New User Library' dialog [build path]
I20040330 window>preferences>java>build path>user libraries>new The focus is set on the checkbox by default. It should be on the text field.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/UserLibraryPreferencePage.java
fLibraryList= new TreeListDialogField(adapter, buttonLabels, new CPListLabelProvider());
		fLibraryList.setLabelText(PreferencesMessages.getString("UserLibraryPreferencePage.libraries.label")); 
		
		String[] names= UserLibraryManager.getUserLibraryNames();
		ArrayList elements= new ArrayList();
		for (int i= 0; i < names.length; i++) {
			elements.add(new CPUserLibraryElement(names[i]));
		}
		fLibraryList.setElements(elements);
		fLibraryList.setViewerSorter(new CPListElementSorter());
		
		doSelectionChanged(fLibraryList);  
	}
	
	/**
	 * Constructor to be used when programatically showing the page
	 * @param selectedLibrary The entry to be selected by default. 
	 */
	public UserLibraryPreferencePage(String selectedLibrary, boolean createIfNotFound) {
		this();
		if (selectedLibrary != null) {
			int nElements= fLibraryList.getSize();
			for (int i= 0; i < nElements; i++) {
				CPUserLibraryElement curr= (CPUserLibraryElement) fLibraryList.getElement(i);
				if (curr.getName().equals(selectedLibrary)) {
					fLibraryList.selectElements(new StructuredSelection(curr));
					fLibraryList.expandElement(curr, AbstractTreeViewer.ALL_LEVELS);
					break;
				}
			}