Esempio n. 1
0
			/// <summary>TreeCellRenderer method.</summary>
			/// <remarks>TreeCellRenderer method. Overridden to update the visible row.</remarks>
			public virtual Component GetTableCellRendererComponent(JTable table, object value, bool isSelected, bool hasFocus, int row, int column)
			{
				if (isSelected)
				{
					this.SetBackground(table.GetSelectionBackground());
				}
				else
				{
					this.SetBackground(table.GetBackground());
				}
				this.visibleRow = row;
				return this;
			}