} else { resetUIState();
	private void jbInit() {		this.setLayout(gridBagLayout1);		jModify.setActionCommand("Modify");		jModify.setText(GRI18n.getString(MODULE, "modify"));		jNew.setActionCommand("New");		jNew.setText(GRI18n.getString(MODULE, "new"));		jDelete.setActionCommand("Delete");		jDelete.setText(GRI18n.getString(MODULE, "delete"));		jPanel1.setBorder(new TitledBorder(BorderFactory.createEtchedBorder(Color.white, new Color(148, 145, 140)), GRI18n.getString(MODULE, "details")));		jPanel1.setLayout(gridLayout1);		gridLayout1.setColumns(1);		jDetails.setMinimumSize(new Dimension(0, 50));		jDetails.setPreferredSize(new Dimension(0, 50));		jDetails.setHorizontalAlignment(SwingConstants.LEFT);		jDetails.setVerticalAlignment(SwingConstants.TOP);		this.add(jScrollPane1, new GridBagConstraints(0, 0, 1, 3, 1.0, 1.0				, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));		this.add(jModify, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0				, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 0, 5), 0, 0));		this.add(jNew, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0				, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 0, 5), 0, 0));		this.add(jDelete, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0				, GridBagConstraints.NORTH, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 0, 5), 0, 0));		this.add(jPanel1, new GridBagConstraints(0, 3, 2, 1, 1.0, 1.0				, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));		jPanel1.add(jDetails, null);		jScrollPane1.getViewport().add(jGalleries, null);		jGalleries.setModel(GalleryRemote._().getCore().getGalleries());		jGalleries.setCellRenderer(new GalleryCellRenderer());		jGalleries.addListSelectionListener(this);		jGalleries.addMouseListener(new MouseAdapter() {			public void mouseClicked(MouseEvent e) {				if (e.getClickCount() == 2) {					int index = jGalleries.locationToIndex(e.getPoint());					modifyGallery((Gallery) jGalleries.getModel().getElementAt(index));				}			}		});		if (GalleryRemote._().getCore().getGalleries().getSize() > 0) {			jGalleries.setSelectedIndex(0);		}		jModify.addActionListener(this);		jNew.addActionListener(this);		jDelete.addActionListener(this);	}