UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

解决方案 »

  1.   

    try {
      UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    }
    catch(Exception e) { }
      

  2.   

    楼上两位  , 
    这个方法,要放在哪个位置呢??????我把这个方法放在init() 方法中,或者japplet的构造函数中,好象都没什么反应啊!!!
      

  3.   

    //运行中重设LookAndFeel
    public static void setLookAndFeel(Component target, LookAndFeel lnf){
        try{
            UIManager.setLookAndFeel(lnf);
            SwingUtilities.updateComponentTreeUI(target);
        }catch(Exception e){
            System.out.println("ERROR: " + e);
        }
    }
      

  4.   

    楼上这位, 我在applet 里写public void init () ,方法,并在其中调用上述方法, 可以达到效果,
    那么为什么,我不写init方法,直接把上诉方法放在构造函数中时,applet还是以java风格显示呢??/