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.
我在 Single Jframe 中有两个表。我想隐藏一张桌子并显示另一张桌子,然后再次隐藏前一张桌子并将另一张桌子设置为可见。我试过upload.jTable1.setVisible(false);了,但它不工作。有输入吗?
upload.jTable1.setVisible(false);
将您的表格放在 JPanel 中并用于面板CardLayout