jMenuFile.addSeparator();
	private void jbInit()			throws Exception {//{{{		setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);		getContentPane().setLayout(new GridBagLayout());		jTopPanel.setLayout(new GridBagLayout());		jBottomPanel.setLayout(gridLayout1);		gridLayout1.setHgap(5);		jAlbumPanel.setLayout(new BorderLayout());		jLabel1.setText(GRI18n.getString(MODULE, "Gallery_URL"));		jLoginButton.setText(GRI18n.getString(MODULE, "Log_in"));		jLoginButton.setToolTipText(GRI18n.getString(MODULE, "loginButtonTip"));		jLoginButton.setActionCommand("Fetch");		jLoginButton.setIcon(GalleryRemote.iLogin);		jNewAlbumButton.setText(GRI18n.getString(MODULE, "newAlbmBtnTxt"));		jNewAlbumButton.setToolTipText(GRI18n.getString(MODULE, "newAlbmBtnTip"));		jNewAlbumButton.setActionCommand("NewAlbum");		jNewAlbumButton.setIcon(GalleryRemote.iNewAlbum);		jUploadButton.setText(GRI18n.getString(MODULE, "upldBtnTxt"));		jUploadButton.setActionCommand("Upload");		jUploadButton.setToolTipText(GRI18n.getString(MODULE, "upldBtnTip"));		jInspectorDivider.setOrientation(JSplitPane.HORIZONTAL_SPLIT);		jInspectorDivider.setBorder(new TitledBorder(BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)), GRI18n.getString(MODULE, "inspDvdr")));		jInspectorDivider.setOneTouchExpandable(true);		jInspectorDivider.setResizeWeight(.66);		jAlbumPictureDivider.setOneTouchExpandable(true);		jAlbumPictureDivider.setResizeWeight(.5);		jTopPanel.setBorder(new TitledBorder(BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)), GRI18n.getString(MODULE, "panel1")));		jBrowseButton.setText(GRI18n.getString(MODULE, "brwsBtnTxt"));		jBrowseButton.setActionCommand("Browse");		jBrowseButton.setToolTipText(GRI18n.getString(MODULE, "brwsBtnTip"));		jSortButton.setText(GRI18n.getString(MODULE, "sortBtnTxt"));		jSortButton.setActionCommand("Sort");		jSortButton.setToolTipText(GRI18n.getString(MODULE, "sortBtnTip"));		jGalleryCombo.setActionCommand("Url");		jGalleryCombo.setToolTipText(GRI18n.getString(MODULE, "gllryCombo"));		jMenuFile.setText(GRI18n.getString(MODULE, "menuFile"));		/*jMenuItemNew.setText(GRI18n.getString(MODULE, "menuNew"));		jMenuItemNew.setActionCommand("File.New");		jMenuItemNew.setIcon(GalleryRemote.iNew);		jMenuItemNew.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, GalleryRemote.ACCELERATOR_MASK));*/		jMenuItemOpen.setText(GRI18n.getString(MODULE, "menuOpen"));		jMenuItemOpen.setActionCommand("File.Open");		jMenuItemOpen.setIcon(GalleryRemote.iOpen);		jMenuItemOpen.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, GalleryRemote.ACCELERATOR_MASK));		jMenuItemSave.setText(GRI18n.getString(MODULE, "menuSave"));		jMenuItemSave.setActionCommand("File.Save");		jMenuItemSave.setIcon(GalleryRemote.iSave);		jMenuItemSave.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, GalleryRemote.ACCELERATOR_MASK));		jMenuItemSaveAs.setText(GRI18n.getString(MODULE, "menuSaveAs"));		jMenuItemSaveAs.setActionCommand("File.SaveAs");		// todo: saving disabled, since JSX doesn't work with new class structure		jMenuItemOpen.setEnabled(false);		jMenuItemSave.setEnabled(false);		jMenuItemSaveAs.setEnabled(false);		/*jMenuItemClose.setText(GRI18n.getString(MODULE, "menuClose"));		jMenuItemClose.setActionCommand("File.Close");		if (GalleryRemote.IS_MAC_OS_X) {			jMenuItemClose.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W, GalleryRemote.ACCELERATOR_MASK));		} else {			jMenuItemClose.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F4, GalleryRemote.ACCELERATOR_MASK));		}*/		jMenuItemQuit.setText(GRI18n.getString(MODULE, "menuQuit"));		jMenuItemQuit.setActionCommand("File.Quit");		jMenuItemQuit.setIcon(GalleryRemote.iQuit);		jMenuItemQuit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q, GalleryRemote.ACCELERATOR_MASK));		jMenuEdit.setText(GRI18n.getString(MODULE, "menuEdit"));		jMenuItemCut.setText(GRI18n.getString(MODULE, "menuCut"));		jMenuItemCut.setActionCommand("Edit.Cut");		jMenuItemCut.setIcon(GalleryRemote.iCut);		jMenuItemCut.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, GalleryRemote.ACCELERATOR_MASK));		jMenuItemCopy.setText(GRI18n.getString(MODULE, "menuCopy"));		jMenuItemCopy.setActionCommand("Edit.Copy");		jMenuItemCopy.setIcon(GalleryRemote.iCopy);		jMenuItemCopy.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, GalleryRemote.ACCELERATOR_MASK));		jMenuItemPaste.setText(GRI18n.getString(MODULE, "menuPaste"));		jMenuItemPaste.setActionCommand("Edit.Paste");		jMenuItemPaste.setIcon(GalleryRemote.iPaste);		jMenuItemPaste.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_V, GalleryRemote.ACCELERATOR_MASK));		jMenuOptions.setText(GRI18n.getString(MODULE, "menuOptions"));		jCheckBoxMenuThumbnails.setActionCommand("Options.Thumbnails");		jCheckBoxMenuThumbnails.setText(GRI18n.getString(MODULE, "cbmenuThumb"));		jCheckBoxMenuPreview.setActionCommand("Options.Preview");		jCheckBoxMenuPreview.setText(GRI18n.getString(MODULE, "cbmenuPreview"));		jCheckBoxMenuPath.setActionCommand("Options.Path");		jCheckBoxMenuPath.setText(GRI18n.getString(MODULE, "cbmenuPath"));		jMenuItemPrefs.setText(GRI18n.getString(MODULE, "menuPref"));		jMenuItemPrefs.setActionCommand("Options.Prefs");		jMenuItemPrefs.setIcon(GalleryRemote.iPreferences);		jMenuItemClearCache.setText(GRI18n.getString(MODULE, "menuClearCache"));		jMenuItemClearCache.setActionCommand("Options.ClearCache");		jMenuHelp.setText(GRI18n.getString(MODULE, "menuHelp"));		jMenuItemAbout.setActionCommand("Help.About");		jMenuItemAbout.setText(GRI18n.getString(MODULE, "menuAbout"));		jMenuItemAbout.setIcon(GalleryRemote.iAbout);		//jScrollPane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);		jNewGalleryButton.setText(GRI18n.getString(MODULE, "newGalleryBtn"));		jNewGalleryButton.setActionCommand("NewGallery");		jNewGalleryButton.setIcon(GalleryRemote.iNewGallery);		jInspectorPanel.setLayout(jInspectorCardLayout);		jPictureScroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);		jPictureScroll.setBorder(new TitledBorder(BorderFactory.createEmptyBorder(), GRI18n.getString(MODULE, "pictures")));		jAlbumScroll.setBorder(new TitledBorder(BorderFactory.createEmptyBorder(), GRI18n.getString(MODULE, "albums")));		jAlbumScroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);		setupKeyboardHandling(jPictureScroll);		setupKeyboardHandling(jAlbumScroll);		if (! GalleryRemote._().isAppletMode()) {			this.getContentPane().add(jTopPanel, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0					, GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL, new Insets(2, 2, 2, 2), 0, 0));		}		jTopPanel.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(jInspectorPanel, JSplitPane.RIGHT);		jInspectorDivider.add(jAlbumPictureDivider, JSplitPane.LEFT);		jInspectorPanel.add(new JScrollPane(jPictureInspector), CARD_PICTURE);		jInspectorPanel.add(new JScrollPane(jAlbumInspector), CARD_ALBUM);		jAlbumPictureDivider.add(jPictureScroll, JSplitPane.RIGHT);		jAlbumPictureDivider.add(jAlbumPanel, JSplitPane.LEFT);		jAlbumPanel.add(jAlbumScroll, BorderLayout.CENTER);		jAlbumPanel.add(jNewAlbumButton, BorderLayout.SOUTH);		jAlbumScroll.getViewport().add(jAlbumTree, null);		jPictureScroll.getViewport().add(jPicturesList, null);		this.getContentPane().add(jBottomPanel, new GridBagConstraints(0, 2, 1, 1, 1.0, 0.0				, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0));		jBottomPanel.add(jBrowseButton, null);		jBottomPanel.add(jSortButton, null);		jBottomPanel.add(jUploadButton, null);		this.getContentPane().add(jStatusBar, new GridBagConstraints(0, 3, 1, 1, 1.0, 0.0				, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));		jTopPanel.add(jGalleryCombo, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0				, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));		jTopPanel.add(jNewGalleryButton, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0				, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 5), 0, 0));		jTopPanel.add(jLoginButton, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0				, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 5, 0, 0), 0, 0));		jMenuBar1.add(jMenuFile);		jMenuBar1.add(jMenuEdit);		jMenuBar1.add(jMenuOptions);		if (!GalleryRemote.IS_MAC_OS_X) {			jMenuBar1.add(jMenuHelp);		}		//jMenuFile.add(jMenuItemNew);		jMenuFile.add(jMenuItemOpen);		jMenuFile.add(jMenuItemSave);		jMenuFile.add(jMenuItemSaveAs);		//jMenuFile.add(jMenuItemClose);		jMenuFile.addSeparator();		// Remember where we are so we can build the dynamic MRU list here.		m_MRUMenuIndex = jMenuFile.getItemCount();		if (!GalleryRemote.IS_MAC_OS_X) {			jMenuFile.addSeparator();			jMenuFile.add(jMenuItemQuit);			jMenuHelp.add(jMenuItemAbout);		}		updateMRUItemList();		jMenuEdit.add(jMenuItemCut);		jMenuEdit.add(jMenuItemCopy);		jMenuEdit.add(jMenuItemPaste);		jMenuOptions.add(jCheckBoxMenuThumbnails);		jMenuOptions.add(jCheckBoxMenuPreview);		jMenuOptions.add(jCheckBoxMenuPath);		jMenuOptions.addSeparator();		jMenuOptions.add(jMenuItemClearCache);		if (!GalleryRemote.IS_MAC_OS_X) {			jMenuOptions.addSeparator();			jMenuOptions.add(jMenuItemPrefs);		}		setJMenuBar(jMenuBar1);	}//}}}