cons.gridx = 0; cons.gridy = 7; cons.gridwidth = 3; label = new JLabel(jEdit.getProperty( "options.colors2.operator1Color"),SwingConstants.RIGHT); layout.setConstraints(label,cons); add(label); cons.gridx = 3; cons.gridwidth = 1; operator1Color = createColorButton("buffer.colors.operator1"); layout.setConstraints(operator1Color,cons); add(operator1Color);  cons.gridx = 0; cons.gridy = 8; cons.gridwidth = 3; label = new JLabel(jEdit.getProperty( "options.colors2.operator2Color"),SwingConstants.RIGHT); layout.setConstraints(label,cons); add(label); cons.gridx = 3; cons.gridwidth = 1; operator2Color = createColorButton("buffer.colors.operator2"); layout.setConstraints(operator2Color,cons); add(operator2Color);
	public Colors2OptionPane()	{		super("colors2");		GridBagLayout layout = new GridBagLayout();		setLayout(layout);		GridBagConstraints cons = new GridBagConstraints();		cons.gridx = cons.gridy = 0;		cons.gridwidth = 3;		cons.gridheight = 1;		cons.fill = GridBagConstraints.BOTH;		cons.weightx = 1.0f;		JLabel label = new JLabel(jEdit.getProperty(			"options.colors2.comment1Color"),SwingConstants.RIGHT);		layout.setConstraints(label,cons);		add(label);		cons.gridx = 3;		cons.gridwidth = 1;		comment1Color = createColorButton("buffer.colors.comment1");		layout.setConstraints(comment1Color,cons);		add(comment1Color);		// [CHANGED] JL		// This adds a sixth syntax color choice for color pane.		// Just a copy&paste from the above. Label looks for property		// "options.colors2.javadocColor" which doesn't exist but should		// probably contain the label for this button. ColorButton is		// created for reference javadocColor and loads the color for		// comment2 from "buffer.colors.comment2".		// SP: I changed the `color' button above to `color1' and		// changed this to `color2'		cons.gridx = 0;		cons.gridy = 1;		cons.gridwidth = 3;		label = new JLabel(jEdit.getProperty(		    "options.colors2.comment2Color"),SwingConstants.RIGHT);		layout.setConstraints(label,cons);		add(label);		cons.gridx = 3;		cons.gridwidth = 1;		comment2Color = createColorButton("buffer.colors.comment2");		layout.setConstraints(comment2Color,cons);		add(comment2Color);		// [CHANGED] end changes		cons.gridx = 0;		cons.gridy = 2;		cons.gridwidth = 3;		label = new JLabel(jEdit.getProperty(			"options.colors2.literalColor"),SwingConstants.RIGHT);		layout.setConstraints(label,cons);		add(label);		cons.gridx = 3;		cons.gridwidth = 1;		literalColor = createColorButton("buffer.colors.literal1");		layout.setConstraints(literalColor,cons);		add(literalColor);		cons.gridx = 0;		cons.gridy = 3;		cons.gridwidth = 3;		label = new JLabel(jEdit.getProperty(			"options.colors2.labelColor"),SwingConstants.RIGHT);		layout.setConstraints(label,cons);		add(label);		cons.gridx = 3;		cons.gridwidth = 1;		labelColor = createColorButton("buffer.colors.label");		layout.setConstraints(labelColor,cons);		add(labelColor);		cons.gridx = 0;		cons.gridy = 4;		cons.gridwidth = 3;		label = new JLabel(jEdit.getProperty(			"options.colors2.keyword1Color"),SwingConstants.RIGHT);		layout.setConstraints(label,cons);		add(label);		cons.gridx = 3;		cons.gridwidth = 1;		keyword1Color = createColorButton("buffer.colors.keyword1");		layout.setConstraints(keyword1Color,cons);		add(keyword1Color);		cons.gridx = 0;		cons.gridy = 5;		cons.gridwidth = 3;		label = new JLabel(jEdit.getProperty(			"options.colors2.keyword2Color"),SwingConstants.RIGHT);		layout.setConstraints(label,cons);		add(label);		cons.gridx = 3;		cons.gridwidth = 1;		keyword2Color = createColorButton("buffer.colors.keyword2");		layout.setConstraints(keyword2Color,cons);		add(keyword2Color);		cons.gridx = 0;		cons.gridy = 6;		cons.gridwidth = 3;		label = new JLabel(jEdit.getProperty(			"options.colors2.keyword3Color"),SwingConstants.RIGHT);		layout.setConstraints(label,cons);		add(label);		cons.gridx = 3;		cons.gridwidth = 1;		keyword3Color = createColorButton("buffer.colors.keyword3");		layout.setConstraints(keyword3Color,cons);		add(keyword3Color);	}