Application.java
/**
	 * Creates a panel with an image placeholder and buttons.
	 */
Creates a panel with an image placeholder and buttons.
Creates a panel with an image placeholder and buttons .
public JPanel makeMainPanel()
	{
		JPanel panel = new JPanel(
								  new GridBagLayout());
		GridBagConstraints c;
		JButton b1 = getButtonFactory().createButton("Iterate");
		b1.setActionCommand("iterate");
		c = new GridBagConstraints();
		c.gridx = 1;
		c.gridy = 0;
		c.insets = new Insets(10,10,10,10);
		panel.add(b1, c);
		JButton b2 = getButtonFactory().createButton("Reset");
		b2.setActionCommand("reset");
		c = new GridBagConstraints();
		c.anchor = GridBagConstraints.PAGE_START;
		c.gridx = 1;
		c.gridy = 1;
		c.insets = new Insets(10,10,10,10);
		panel.add(b2, c);
		JLabel picLabel = new JLabel(
									 new ImageIcon(getPicture()));
		setPictureLabel(picLabel);
		c = new GridBagConstraints();
		c.fill  = GridBagConstraints.BOTH;
		c.gridheight = 2;
		c.gridx = 0;
		c.gridy = 0;
		c.insets = new Insets(10,10,10,10);
		panel.add(picLabel, c);
		return panel;
	}
public JPanel makeMainPanel ( ) { JPanel panel = new JPanel ( new GridBagLayout ( ) ) ; GridBagConstraints c ; JButton b1 = getButtonFactory ( ) . createButton ( "Iterate" ) ; b1 . setActionCommand ( "iterate" ) ; c = new GridBagConstraints ( ) ; c . gridx = 1 ; c . gridy = 0 ; c . insets = new Insets ( 10 , 10 , 10 , 10 ) ; panel . add ( b1 , c ) ; JButton b2 = getButtonFactory ( ) . createButton ( "Reset" ) ; b2 . setActionCommand ( "reset" ) ; c = new GridBagConstraints ( ) ; c . anchor = GridBagConstraints . PAGE_START ; c . gridx = 1 ; c . gridy = 1 ; c . insets = new Insets ( 10 , 10 , 10 , 10 ) ; panel . add ( b2 , c ) ; JLabel picLabel = new JLabel ( new ImageIcon ( getPicture ( ) ) ) ; setPictureLabel ( picLabel ) ; c = new GridBagConstraints ( ) ; c . fill = GridBagConstraints . BOTH ; c . gridheight = 2 ; c . gridx = 0 ; c . gridy = 0 ; c . insets = new Insets ( 10 , 10 , 10 , 10 ) ; panel . add ( picLabel , c ) ; return panel ; }
Creates a panel with an image placeholder and buttons.
Creates a panel with an image placeholder and buttons .