album.setSelectedItem(defaultAlbum);
if (defaultAlbum == null) { album.setSelectedItem(rootAlbum); } else { album.setSelectedItem(defaultAlbum); }
	private void jbInit()		throws Exception {		this.getContentPane().setLayout( gridBagLayout1 );		this.setModal( true );		this.setTitle( "New Album" );				Vector albums = new Vector(gallery.getAlbumList());		rootAlbum = new Album();		rootAlbum.setGallery(gallery);		rootAlbum.setTitle("Gallery main page");		rootAlbum.setName("root.root");		albums.add(0, rootAlbum);		album = new JComboBox(albums);		album.setFont( new java.awt.Font( "SansSerif", 0, 11 ) );		album.setSelectedItem(defaultAlbum);		cancel.setText( "Cancel" );		description.setBorder( BorderFactory.createBevelBorder( BevelBorder.LOWERED, Color.white, Color.lightGray, Color.darkGray, Color.gray ) );		description.setLineWrap(true);		description.setRows(2);		description.setFont( new java.awt.Font( "SansSerif", 0, 11 ) );		galleryName.setText( gallery.toString() );		name.setFont( new java.awt.Font( "SansSerif", 0, 11 ) );		name.setToolTipText("What do you want to name this album? The name cannot contain any " +			"of the following characters: \\ / * ? \" \' & \\u  | . + # or spaces. " +			"Those characters will be ignored in your new album name.");		ok.setText( "OK" );		title.setFont( new java.awt.Font( "SansSerif", 0, 11 ) );		flowLayout1.setAlignment( FlowLayout.LEFT );		gridLayout1.setColumns( 2 );		gridLayout1.setHgap( 5 );		jLabel1.setText( "Creating a new album on Gallery: " );		jLabel2.setText( "Parent album" );		jLabel3.setText( "Album title" );		jLabel4.setText( "Album name" );		jLabel5.setText( "Album description" );		jPanel1.setLayout( flowLayout1 );		jPanel2.setLayout( gridLayout1 );		this.getContentPane().add( jLabel2, new GridBagConstraints( 0, 1, 1, 1, 0.0, 0.0				, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets( 0, 5, 0, 5 ), 0, 4 ) );		this.getContentPane().add( jLabel3, new GridBagConstraints( 0, 2, 1, 1, 0.0, 0.0				, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets( 2, 5, 0, 5 ), 0, 4 ) );		this.getContentPane().add( jLabel4, new GridBagConstraints( 0, 3, 1, 1, 0.0, 0.0				, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets( 2, 5, 0, 5 ), 0, 4 ) );		this.getContentPane().add( jLabel5, new GridBagConstraints( 0, 4, 1, 1, 0.0, 0.0				, GridBagConstraints.NORTHEAST, GridBagConstraints.NONE, new Insets( 0, 5, 0, 5 ), 0, 3 ) );		this.getContentPane().add( title, new GridBagConstraints( 1, 2, 1, 1, 1.0, 0.0				, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets( 0, 0, 0, 5 ), 0, 0 ) );		this.getContentPane().add( name, new GridBagConstraints( 1, 3, 1, 1, 1.0, 0.0				, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets( 0, 0, 0, 5 ), 0, 0 ) );		this.getContentPane().add( description, new GridBagConstraints( 1, 4, 1, 1, 1.0, 1.0				, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets( 0, 0, 0, 5 ), 0, 0 ) );		this.getContentPane().add( jPanel1, new GridBagConstraints( 0, 0, 2, 1, 1.0, 0.0				, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets( 0, 0, 0, 0 ), 0, 0 ) );		jPanel1.add( jLabel1, null );		jPanel1.add( galleryName, null );		this.getContentPane().add( album, new GridBagConstraints( 1, 1, 1, 1, 1.0, 0.0				, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets( 0, 0, 0, 5 ), 0, 0 ) );		this.getContentPane().add( jPanel2, new GridBagConstraints( 1, 5, 1, 1, 0.0, 0.0				, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets( 5, 5, 5, 5 ), 0, 0 ) );		jPanel2.add( cancel, null );		jPanel2.add( ok, null );				ok.addActionListener(this);		cancel.addActionListener(this);	}