Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
并不是说我绝对需要这个答案,但我很好奇为什么 java.awt.GraphicsDevice 有一个 TYPE_PRINTER。我假设这指的是用于打印纸张的打印机,因为 javadoc 只是说“设备是打印机”。并不是说我认为它不能在这种情况下使用,但我想我更多地将它视为一个 IO 设备。这是否主要用于具有某种显示屏的打印机(也就是我在旁边看到的只有状态指示灯的打印机)?否则,我看不到使用 java.awt.Menu 或其他与打印到纸的交互的理由。