Locking a specific value using ReentrantLock

How do I do that? Do I specify which item to lock when I create the lock?
If I understand correctly, when you lock a lock, then the whole system is locked right? So then nothing is accessible, right?