There's a device like this on a spaceship in Bruce Coville's My Teacher Glows in the Dark:
Instantly the wall in front of me began to display a picture. That was neat; the entire wall was like a giant television screen...The picture it showed now was actually a chart, with all kinds of furniture on it--and I do mean all kinds. Not only did it show chairs, desks, and beds, it had items that looked like everything from medieval torture devices to toilets designed for octopi.
Our narrator, Peter, gets a custom chair ("Less than five minutes later the very chair I had ordered popped through the door of the transcendental elevator") and a hammock:
After Broxholm left that first "night," I used the URAT to get myself something to sleep in. The most interesting thing on the chart—at least, the most interesting thing that looked like I could actually sleep in it—was a kind of hammock device. The only problem was, I couldn’t figure out where to hang it, since the walls in my room were smooth, and I had a feeling I wasn’t supposed to put screws or nails in them, even if I had screws or nails, which I didn’t.
I should have known not to worry. Each end of the hammock had a rope. At the end of the rope was a ball. When you threw the ball at the ceiling, it stuck wherever it struck, and didn’t come down until you gave the rope three sharp tugs.
So I got myself a hammock and hung it from my ceiling.
It was like sleeping on a cloud—though by the time I got it hung up, I was so exhausted I probably could have slept on a bed of cold seaweed and hot rocks.