It doesn’t seem possible to select multiple object and change the materials on all of them. Only a single object (and not even a currently selected one) appears in the materials panel.
Try it:
- Select one object (make it active).
- Box select a bunch of other objects.
- De-select the active object.
The materials panel still shows the previously active object.