upload.setAlignmentX( (float) 2.0 ); upload.setText( "Upload Pictures" ); upload.setActionCommand( "Upload" ); inspectorDivider.setBorder( new TitledBorder( BorderFactory.createEtchedBorder( Color.white, new Color( 148, 145, 140 ) ), "Pictures to Upload (Drag and Drop files into this panel)" ) );
jUploadButton.setAlignmentX( (float) 2.0 ); jUploadButton.setText( "Upload Pictures" ); jUploadButton.setActionCommand( "Upload" ); jInspectorDivider.setBorder( new TitledBorder( BorderFactory.createEtchedBorder( Color.white, new Color( 148, 145, 140 ) ), "Pictures to Upload (Drag and Drop files into this panel)" ) );
	private void jbInit()		throws Exception {//{{{		this.getContentPane().setLayout( gridBagLayout1 );		jPanel1.setLayout( gridBagLayout2 );		jLabel1.setText( "Gallery URL" );		jLabel2.setText( "Username" );		jLabel3.setText( "Password" );		jLabel7.setText( "Select Album" );		fetch.setText( "Log in" );		fetch.setNextFocusableComponent( newAlbum );		fetch.setActionCommand( "Fetch" );		newAlbum.setText( "New Album" );		newAlbum.setNextFocusableComponent( album );		newAlbum.setActionCommand( "NewAlbum" );		this.setDefaultCloseOperation( WindowConstants.DO_NOTHING_ON_CLOSE );		jPanel3.setLayout( gridLayout1 );		upload.setAlignmentX( (float) 2.0 );		upload.setText( "Upload Pictures" );		upload.setActionCommand( "Upload" );		inspectorDivider.setBorder( new TitledBorder( BorderFactory.createEtchedBorder( Color.white, new Color( 148, 145, 140 ) ), "Pictures to Upload (Drag and Drop files into this panel)" ) );		jPanel1.setBorder( new TitledBorder( BorderFactory.createEtchedBorder( Color.white, new Color( 148, 145, 140 ) ), "Destination Gallery" ) );		browse.setAlignmentX( (float) 1.0 );		browse.setText( "Add pictures..." );		browse.setActionCommand( "Browse" );		gallery.setNextFocusableComponent( username );		gallery.setEditable( true );		gallery.setActionCommand("Url");		progress.setMinimumSize( new Dimension( 10, 18 ) );		progress.setPreferredSize( new Dimension( 150, 18 ) );		progress.setStringPainted( false );		gridLayout1.setHgap( 5 );		status.setBorder( BorderFactory.createBevelBorder( BevelBorder.LOWERED, Color.white, SystemColor.control, SystemColor.control, Color.gray ) );		status.setMinimumSize( new Dimension( 100, 18 ) );		status.setPreferredSize( new Dimension( 38, 18 ) );		jPanel4.setLayout( gridBagLayout3 );		jMenuFile.setText( "File" );		jMenuItemQuit.setText( "Quit" );		jMenuItemQuit.setActionCommand( "File.Quit" );		jMenuItemSave.setText( "Save..." );		jMenuItemSave.setActionCommand( "File.Save" );		jMenuItemPrefs.setText( "Preferences..." );		jMenuItemPrefs.setActionCommand( "Options.Prefs" );		jMenuItemOpen.setText( "Open..." );		jMenuItemOpen.setActionCommand( "File.Open" );		jMenuHelp.setText( "Help" );		jMenuItemAbout.setActionCommand( "Help.About" );		jMenuItemAbout.setText( "About Gallery Remote..." );		jMenuOptions.setText( "Options" );		jCheckBoxMenuThumbnails.setActionCommand( "Options.Thumbnails" );		jCheckBoxMenuThumbnails.setText( "Show Thumbnails" );		jCheckBoxMenuPreview.setActionCommand( "Options.Preview" );		jCheckBoxMenuPreview.setText( "Show Preview" );		jCheckBoxMenuPath.setActionCommand( "Options.Path" );		jCheckBoxMenuPath.setText( "Show Path" );		username.setNextFocusableComponent( password );		username.setActionCommand("Username");		password.setActionCommand("Password");		password.setNextFocusableComponent( fetch );		jScrollPane1.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_NEVER );		newGallery.setText("Add Gallery URL");		newGallery.setActionCommand("NewGallery");		album.setActionCommand("Album");		this.getContentPane().add( jPanel1, new GridBagConstraints( 0, 0, 1, 1, 1.0, 0.0				, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets( 2, 2, 2, 2 ), 0, 0 ) );		jPanel1.add( jLabel1, new GridBagConstraints( 0, 0, 1, 1, 0.0, 0.0				, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets( 0, 0, 0, 5 ), 0, 0 ) );		jPanel1.add( username, new GridBagConstraints( 1, 1, 1, 1, 1.0, 0.0				, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets( 0, 0, 0, 0 ), 0, 0 ) );		jPanel1.add( jLabel2, new GridBagConstraints( 0, 1, 1, 1, 0.0, 0.0				, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets( 0, 0, 0, 5 ), 0, 0 ) );		jPanel1.add( jLabel3, new GridBagConstraints( 0, 2, 1, 1, 0.0, 0.0				, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets( 0, 0, 0, 5 ), 0, 0 ) );		jPanel1.add( password, new GridBagConstraints( 1, 2, 1, 1, 1.0, 0.0				, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets( 0, 0, 0, 0 ), 0, 0 ) );		jPanel1.add( jLabel7, new GridBagConstraints( 0, 3, 1, 1, 0.0, 0.0				, GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets( 0, 0, 0, 5 ), 0, 0 ) );		jPanel1.add( album, new GridBagConstraints( 1, 3, 2, 1, 1.0, 0.0				, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets( 0, 0, 0, 0 ), 0, 0 ) );		jPanel1.add( fetch,   new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 5), 0, 0) );		jPanel1.add( newAlbum,   new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 5), 0, 0) );		this.getContentPane().add( inspectorDivider, new GridBagConstraints( 0, 1, 1, 1, 1.0, 1.0				, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets( 0, 2, 2, 2 ), 0, 0 ) );		inspectorDivider.add( pictureInspector, JSplitPane.BOTTOM );		inspectorDivider.add( jScrollPane1, JSplitPane.TOP );		jScrollPane1.getViewport().add( picturesList, null );		this.getContentPane().add( jPanel3, new GridBagConstraints( 0, 2, 1, 1, 1.0, 0.0				, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets( 5, 5, 5, 5 ), 0, 0 ) );		jPanel3.add( browse, null );		jPanel3.add( upload, null );		this.getContentPane().add( jPanel4, new GridBagConstraints( 0, 3, 1, 1, 1.0, 0.0				, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets( 0, 0, 0, 0 ), 0, 0 ) );		jPanel4.add( progress, new GridBagConstraints( 1, 0, 1, 1, 0.25, 0.0				, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets( 0, 0, 0, 0 ), 0, 0 ) );		jPanel4.add( status, new GridBagConstraints( 0, 0, 1, 1, 0.75, 0.0				, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets( 0, 0, 0, 0 ), 0, 0 ) );		jPanel1.add( gallery,  new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0) );		jPanel1.add(newGallery,    new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 5), 0, 0));		jMenuBar1.add( jMenuFile );		jMenuBar1.add( jMenuOptions );		jMenuBar1.add( jMenuHelp );		jMenuFile.add( jMenuItemOpen );		jMenuFile.add( jMenuItemSave );		jMenuFile.addSeparator();		jMenuFile.add( jMenuItemQuit );		jMenuHelp.add( jMenuItemAbout );		jMenuOptions.add( jCheckBoxMenuThumbnails );		jMenuOptions.add( jCheckBoxMenuPreview );		jMenuOptions.add( jCheckBoxMenuPath );		jMenuOptions.addSeparator();		jMenuOptions.add( jMenuItemPrefs );	}//}}}