this.lblSecond = new Label();
/*  853 */     this.lblSecond.setText("二级页面:");
/*  854 */     this.lblSecond.setBounds(10, 40, 55, 20);
/*  855 */     this.panStartTrans.add(this.lblSecond);
我反编译出来的代码里这样子的,为什么label 显示出来的是乱码  而button不会

解决方案 »

  1.   

    Button中没有乱码,估计用了国际化?注意你的源代码文件的编码设置。
      

  2.   


    我用了UTF-8啊  同一个文件里的啊  button文字显示正常  label不正常 真见鬼
    如图:
      

  3.   

    现在改成JLabel 就显示正常了不过Choice 还有问题this.coiAddItem = new Choice();
    /*  626 */     this.coiAddItem.setBounds(110, 240, 200, 20);
    /*  627 */     this.coiAddItem.setName("addItem");
    /*  628 */     this.coiAddItem.add("图文阅读栏");
    /*  629 */     this.coiAddItem.add("图片按钮");
    /*  630 */     this.coiAddItem.add("图片组件");
    /*  631 */     this.coiAddItem.add("音频组件");
    /*  632 */     this.coiAddItem.add("视频组件");
    /*  633 */     this.coiAddItem.addItemListener(this);
    /*  634 */     this.coiAddItem.setEnabled(false);