第一个选项卡只有一个在BoxLayout中有图片的textarea,第二个和第三个标签有一个包含一些项目的jlist,当它们被点击时会打开一些文件。当我运行代码时,我会得到以下错误。Exception in thread "main" java.awt.AWTError: BoxLayout can't be shared at javax.swing.BoxLayout</e
下面是一个函数: * Creates an instance of a JLabel with the given arguments * @param font The font of the label * @param fontSize The size of the font to be rendered
* @param a
this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));}Exception in thread "main" java.awt.AWTError: BoxLayout can't be shared at javax.swing.BoxLayout.