jProgress.setMinimumSize( new Dimension( 10, 18 ) ); jProgress.setPreferredSize( new Dimension( 150, 18 ) ); jProgress.setStringPainted( false );
	private void jbInit()		throws Exception {//{{{		this.setDefaultCloseOperation( WindowConstants.DO_NOTHING_ON_CLOSE );		this.getContentPane().setLayout( gridBagLayout1 );		jPanel1.setLayout( gridBagLayout2 );		jLabel1.setText( grRes.getString("Gallery_URL") );		jLabel7.setText( grRes.getString("Select_Album") );		jLoginButton.setText( "Log in" );		//jLoginButton.setNextFocusableComponent( jNewAlbumButton );		jLoginButton.setActionCommand( "Fetch" );		jLoginButton.setIcon(iLogin);		jNewAlbumButton.setText("New Album..." );		//jNewAlbumButton.setNextFocusableComponent( jAlbumCombo );		jNewAlbumButton.setActionCommand( "NewAlbum" );		jNewAlbumButton.setIcon(iNewAlbum);		jPanel3.setLayout( gridLayout1 );		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)" ) );		jPanel1.setBorder( new TitledBorder( BorderFactory.createEtchedBorder( Color.white, new Color( 148, 145, 140 ) ), "Destination Gallery" ) );		jBrowseButton.setAlignmentX( (float) 1.0 );		jBrowseButton.setText( "Add pictures..." );		jBrowseButton.setActionCommand( "Browse" );		jGalleryCombo.setActionCommand("Url");		jProgress.setMinimumSize( new Dimension( 10, 18 ) );		jProgress.setPreferredSize( new Dimension( 150, 18 ) );		jProgress.setStringPainted( false );		gridLayout1.setHgap( 5 );		jStatus.setBorder( BorderFactory.createBevelBorder( BevelBorder.LOWERED, Color.white, SystemColor.control, SystemColor.control, Color.gray ) );		jStatus.setMinimumSize( new Dimension( 100, 18 ) );		jStatus.setPreferredSize( new Dimension( 38, 18 ) );		jPanel4.setLayout( gridBagLayout3 );		jMenuFile.setText( "File" );		jMenuItemQuit.setText( "Quit" );		jMenuItemQuit.setActionCommand( "File.Quit" );		jMenuItemQuit.setIcon(iQuit);		jMenuItemSave.setText( "Save..." );		jMenuItemSave.setActionCommand( "File.Save" );		jMenuItemSave.setIcon(iSave);		jMenuItemPrefs.setText( "Preferences..." );		jMenuItemPrefs.setActionCommand( "Options.Prefs" );		jMenuItemPrefs.setIcon(iPreferences);		jMenuItemOpen.setText( "Open..." );		jMenuItemOpen.setActionCommand( "File.Open" );		jMenuItemOpen.setIcon(iOpen);		jMenuHelp.setText( "Help" );		jMenuItemAbout.setActionCommand( "Help.About" );		jMenuItemAbout.setText( "About Gallery Remote..." );		jMenuItemAbout.setIcon(iAbout);		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" );		jScrollPane1.setHorizontalScrollBarPolicy( JScrollPane.HORIZONTAL_SCROLLBAR_NEVER );		jNewGalleryButton.setText("Add Gallery URL...");		jNewGalleryButton.setActionCommand("NewGallery");		jNewGalleryButton.setIcon(iNewGallery);		jAlbumCombo.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 ) );		this.getContentPane().add( jInspectorDivider, new GridBagConstraints( 0, 1, 1, 1, 1.0, 1.0				, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets( 0, 2, 2, 2 ), 0, 0 ) );		jInspectorDivider.add( jPictureInspector, JSplitPane.BOTTOM );		jInspectorDivider.add( jScrollPane1, JSplitPane.TOP );		jScrollPane1.getViewport().add( jPicturesList, 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( jBrowseButton, null );		jPanel3.add( jUploadButton, 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( jProgress, new GridBagConstraints( 1, 0, 1, 1, 0.25, 0.0				, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets( 0, 0, 0, 0 ), 0, 0 ) );		jPanel4.add( jStatus, new GridBagConstraints( 0, 0, 1, 1, 0.75, 0.0				, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets( 0, 0, 0, 0 ), 0, 0 ) );		jPanel1.add( jGalleryCombo,  new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0) );		jPanel1.add(jNewGalleryButton,     new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 5), 0, 0));        jPanel1.add(jLabel7,  new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 0, 0, 5), 0, 0));        jPanel1.add(jAlbumCombo,   new GridBagConstraints(1, 1, 2, 1, 1.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 0, 0), 0, 0));        jPanel1.add(jLoginButton,  new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 0), 0, 0));        jPanel1.add(jNewAlbumButton,    new GridBagConstraints(3, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 0, 5), 0, 0));		jMenuBar1.add( jMenuFile );		jMenuBar1.add( jMenuOptions );		jMenuBar1.add( jMenuHelp );		jMenuFile.add( jMenuItemOpen );		jMenuFile.add( jMenuItemSave );		// in the event the library we use to save is missing, dim the menus		try {			new JSX.ObjOut();		} catch (Throwable t) {			jMenuItemOpen.setEnabled(false);			jMenuItemSave.setEnabled(false);		}		if (!IS_MAC_OS_X) {			jMenuFile.addSeparator();			jMenuFile.add( jMenuItemQuit );			jMenuHelp.add( jMenuItemAbout );		}		jMenuOptions.add( jCheckBoxMenuThumbnails );		jMenuOptions.add( jCheckBoxMenuPreview );		jMenuOptions.add( jCheckBoxMenuPath );		if (!IS_MAC_OS_X) {			jMenuOptions.addSeparator();			jMenuOptions.add( jMenuItemPrefs );		}	}//}}}