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.swing.plaf.basic.BasicInternalFrameUI) aXInternalFrame.getUI()).setNorthPane(null);
But not on Macintosh! Any experts have any idea which can explain internal process which makes this method not usable on Mac.
And is there any method which may work on both platform to hide titlebar of JInternalFrame?
Thanks
On Mac OS X, an instance of
com.apple.laf.AquaInternalFrameUIdefines the appearance of internal frames. You can minimize the disparity by setting theisPaletteproperty and disabling the frame icons on Mac OS X specifically, as shown below.