jbackup/src/main/java/org/jbundle/jbackup/MainPropertyView.java
public void addControlsToView(JPanel panel)
	{
		panel.setLayout(new BorderLayout());
		JPanel panelMain = this.makeNewPanel(panel, BorderLayout.CENTER);
		
		panelMain.setLayout(new GridLayout(2, 3));

		String strSource = m_properties.getProperty(SOURCE_PARAM);
		if (strSource == null)
			strSource = m_rgstrSources[0];
		panelMain.add(new JLabel("Source: ", JLabel.RIGHT));
		panelMain.add(m_comboSource = (JComboBox)this.makeControlPopup(m_rgstrSources, strSource));
		panelMain.add(m_buttonSource = (JButton)new JButton("Change settings..."));

		String strDestination = m_properties.getProperty(DESTINATION_PARAM);
		if (strDestination == null)
			strDestination = m_rgstrDestinations[0];
		panelMain.add(new JLabel("Destination: ", JLabel.RIGHT));
		panelMain.add(m_comboDestination = (JComboBox)this.makeControlPopup(m_rgstrDestinations, strDestination));
		panelMain.add(m_buttonDestination = (JButton)new JButton("Change settings..."));

		JPanel panelSub = this.makeNewPanel(panel, BorderLayout.SOUTH);
		super.addControlsToView(panelSub);
	}
public void addControlsToView(JPanel panel)
	{
		panel.setLayout(new BorderLayout());
		JPanel panelMain = this.makeNewPanel(panel, BorderLayout.CENTER);
		
		panelMain.setLayout(new GridLayout(2, 3));

		String strSource = m_properties.getProperty(SOURCE_PARAM);
		if (strSource == null)
			strSource = m_rgstrSources[0];
		panelMain.add(new JLabel("Source: ", JLabel.RIGHT));
		panelMain.add(m_comboSource = (JComboBox)this.makeControlPopup(m_rgstrSources, strSource));
		panelMain.add(m_buttonSource = (JButton)new JButton("Change settings..."));

		String strDestination = m_properties.getProperty(DESTINATION_PARAM);
		if (strDestination == null)
			strDestination = m_rgstrDestinations[0];
		panelMain.add(new JLabel("Destination: ", JLabel.RIGHT));
		panelMain.add(m_comboDestination = (JComboBox)this.makeControlPopup(m_rgstrDestinations, strDestination));
		panelMain.add(m_buttonDestination = (JButton)new JButton("Change settings..."));

		JPanel panelSub = this.makeNewPanel(panel, BorderLayout.SOUTH);
		super.addControlsToView(panelSub);
	}
public void addControlsToView ( JPanel panel ) { panel . setLayout ( new BorderLayout ( ) ) ; JPanel panelMain = this . makeNewPanel ( panel , BorderLayout . CENTER ) ; panelMain . setLayout ( new GridLayout ( 2 , 3 ) ) ; String strSource = m_properties . getProperty ( SOURCE_PARAM ) ; if ( strSource == null ) strSource = m_rgstrSources [ 0 ] ; panelMain . add ( new JLabel ( "Source: " , JLabel . RIGHT ) ) ; panelMain . add ( m_comboSource = ( JComboBox ) this . makeControlPopup ( m_rgstrSources , strSource ) ) ; panelMain . add ( m_buttonSource = ( JButton ) new JButton ( "Change settings..." ) ) ; String strDestination = m_properties . getProperty ( DESTINATION_PARAM ) ; if ( strDestination == null ) strDestination = m_rgstrDestinations [ 0 ] ; panelMain . add ( new JLabel ( "Destination: " , JLabel . RIGHT ) ) ; panelMain . add ( m_comboDestination = ( JComboBox ) this . makeControlPopup ( m_rgstrDestinations , strDestination ) ) ; panelMain . add ( m_buttonDestination = ( JButton ) new JButton ( "Change settings..." ) ) ; JPanel panelSub = this . makeNewPanel ( panel , BorderLayout . SOUTH ) ; super . addControlsToView ( panelSub ) ; }
/*
Add your property controls to this panel.
Remember to set your own layout manager.
Also, remember to create a new JPanel, and pass it to the super class
so controls of the superclass can be included.
You have a 3 x 3 grid, so add three columns for each control
@param panel This is the panel to add your controls to.
/ * Add your property controls to this panel . Remember to set your own layout manager . Also remember to create a new JPanel and pass it to the super class so controls of the superclass can be included . You have a 3 x 3 grid so add three columns for each control