private void copyToClipboard( int column ) {
		int[] rows = table.getSelectedRows();
		if( rows.length == 0 )
			return;

		StringBuilder buf = new StringBuilder();
		for( int i = 0; i < rows.length; i++ ) {
			if( i > 0 )
				buf.append( '\n' );

			if( column < 0 || column == 0 )
				buf.append( table.getValueAt( rows[i], 0 ) );
			if( column < 0 )
				buf.append( " = " );
			if( column < 0 || column == 1 )
				buf.append( table.getValueAt( rows[i], 1 ) );
		}

		Toolkit.getDefaultToolkit().getSystemClipboard().setContents(
			new StringSelection( buf.toString() ), null );
	}
Creates a UI defaults inspector panel that can be embedded into any window.
flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/FlatUIDefaultsInspector.java