在从Sun的jdk (1.8)迁移到Openjdk12之后,Eclipse不识别"javax.smartcardio“的整个库。import javax.smartcardio.Card; Card cannot be resolved to a type
我们尝试将"src.zip“添加到Eclipse中的JRE集合中,但是它的内容没有出现在"Project”中.
我想向JButton添加一个图像。按钮的背景设置为黑色。我试图在它上面添加图像,但没有显示任何内容。背景颜色为黑色,但图像丢失。public class Test extends JFrame {
JPanel p;
p = new JPanel(new BorderLayout()); b.setBackground(Color.black);
ImageIcon img = new ImageIcon("C