Java method works on windows but not Macintosh?

前端 未结 2 1901
刺人心
刺人心 2020-12-06 18:52

I had a real weird method which is used to hide JInternalFrame\'s title bar. Now the dilemma is below method works on windows platform,

((javax.         


        
2条回答
  •  盖世英雄少女心
    2020-12-06 19:08

    This may be a hairy corner of Swing. This functionality wasn't added to swing until java 1.5 as far as i recall.

    have you tried the Frame.setUndecorated method?

    http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Frame.html#setUndecorated%28boolean%29

    If that doesn't work you may need to drop down and do some JNI on the underlying native window object. I had to do this for similar functionality on windows with the 1.4 jvm.

提交回复
热议问题