if(table == colorTable) { Color color = JColorChooser.showDialog( StyleOptionPane.this, jEdit.getProperty("colorChooser.title"), (Color)colorModel.getValueAt(row,1)); if(color != null) colorModel.setValueAt(color,row,1); } else if(table == styleTable) { SyntaxStyle style = new StyleEditor( StyleOptionPane.this, (SyntaxStyle)styleModel.getValueAt( row,1)).getStyle(); if(style != null) styleModel.setValueAt(style,row,1); }
SyntaxStyle style = new StyleEditor( StyleOptionPane.this, (SyntaxStyle)styleModel.getValueAt( row,1)).getStyle(); if(style != null) styleModel.setValueAt(style,row,1);
		public void mouseClicked(MouseEvent evt)		{			int row = table.rowAtPoint(evt.getPoint());			if(row == -1)				return;			if(table == colorTable)			{				Color color = JColorChooser.showDialog(					StyleOptionPane.this,					jEdit.getProperty("colorChooser.title"),					(Color)colorModel.getValueAt(row,1));				if(color != null)					colorModel.setValueAt(color,row,1);			}			else if(table == styleTable)			{				SyntaxStyle style = new StyleEditor(					StyleOptionPane.this,					(SyntaxStyle)styleModel.getValueAt(					row,1)).getStyle();				if(style != null)					styleModel.setValueAt(style,row,1);			}		}