jbackup/src/main/java/org/jbundle/jbackup/MainPropertyView.java
public void propertiesToControls()
	{
		m_comboSource.setSelectedItem(m_properties.getProperty(SOURCE_PARAM));
		if (m_comboSource.getSelectedIndex() == -1)
		{
			m_comboSource.setSelectedIndex(0);
			m_properties.setProperty(SOURCE_PARAM, m_comboSource.getSelectedItem().toString());
		}
		m_comboDestination.setSelectedItem(m_properties.getProperty(DESTINATION_PARAM));
		if (m_comboDestination.getSelectedIndex() == -1)
		{
			m_comboDestination.setSelectedIndex(0);
			m_properties.setProperty(DESTINATION_PARAM, m_comboDestination.getSelectedItem().toString());
		}
		super.propertiesToControls();
	}
public void propertiesToControls()
	{
		m_comboSource.setSelectedItem(m_properties.getProperty(SOURCE_PARAM));
		if (m_comboSource.getSelectedIndex() == -1)
		{
			m_comboSource.setSelectedIndex(0);
			m_properties.setProperty(SOURCE_PARAM, m_comboSource.getSelectedItem().toString());
		}
		m_comboDestination.setSelectedItem(m_properties.getProperty(DESTINATION_PARAM));
		if (m_comboDestination.getSelectedIndex() == -1)
		{
			m_comboDestination.setSelectedIndex(0);
			m_properties.setProperty(DESTINATION_PARAM, m_comboDestination.getSelectedItem().toString());
		}
		super.propertiesToControls();
	}
public void propertiesToControls ( ) { m_comboSource . setSelectedItem ( m_properties . getProperty ( SOURCE_PARAM ) ) ; if ( m_comboSource . getSelectedIndex ( ) == - 1 ) { m_comboSource . setSelectedIndex ( 0 ) ; m_properties . setProperty ( SOURCE_PARAM , m_comboSource . getSelectedItem ( ) . toString ( ) ) ; } m_comboDestination . setSelectedItem ( m_properties . getProperty ( DESTINATION_PARAM ) ) ; if ( m_comboDestination . getSelectedIndex ( ) == - 1 ) { m_comboDestination . setSelectedIndex ( 0 ) ; m_properties . setProperty ( DESTINATION_PARAM , m_comboDestination . getSelectedItem ( ) . toString ( ) ) ; } super . propertiesToControls ( ) ; }
/*
Set the properties to the current control values.
/ * Set the properties to the current control values .