java中JScrollPane.setBorder()的问题
来源:百度知道 编辑:UC知道 时间:2024/06/05 00:40:12
我是这样写的 mat1ScPal.setBorder(javax.swing.BorderFactory.createTitledBorder("矩阵1�"));
mat1ScPal是一个JScrollPane
它老是出现Some characters cannot be mapped using "GBK" character encoding.Either change the encoding or remove the characters which are not supported by the "GBK" character encoding.
mat1ScPal是一个JScrollPane
它老是出现Some characters cannot be mapped using "GBK" character encoding.Either change the encoding or remove the characters which are not supported by the "GBK" character encoding.
你那个1后面的那个矩形是特殊字符 swing用的GBK的编码 不支持那个特殊字符
把文件的属性改为用UTF-8字符集编码,就能够通过编译。如果你使用的是Eclipse,步骤为:右键单击文件名,选Properties,在INFO选项卡里,把Text file encoding修改为UTF-8。