album.addItemListener( this );
album.addActionListener( this );
	private void jbInitEvents() {		fetch.addActionListener( this );		upload.addActionListener( this );		browse.addActionListener( this );		newGallery.addActionListener( this );		gallery.addActionListener( this );		username.addCaretListener( this );		password.addCaretListener( this );		jMenuItemQuit.addActionListener( this );		jMenuItemAbout.addActionListener( this );		jCheckBoxMenuThumbnails.addItemListener( this );		jCheckBoxMenuPreview.addItemListener( this );		jCheckBoxMenuPath.addItemListener( this );		album.addItemListener( this );		picturesList.addListSelectionListener( this );		addWindowListener(			new java.awt.event.WindowAdapter()			{				public void windowClosing( java.awt.event.WindowEvent e ) {					thisWindowClosing( e );				}			} );		previewFrame.addWindowListener(			new java.awt.event.WindowAdapter()			{				public void windowClosing( java.awt.event.WindowEvent e ) {					jCheckBoxMenuPreview.setState( false );				}			} );		picturesList.addKeyListener(			new KeyAdapter()			{				public void keyPressed( KeyEvent e ) {					jListKeyPressed( e );				}			} );	}