JInternalFram

how can remove title of JInternalFram in Netbeans.

View Answers

February 10, 2011 at 10:32 AM

Java remove title bar of JInternal Frame

import java.awt.*;
import javax.swing.*;

public class RemoveTitleBar extends JFrame {
public RemoveTitleBar() {
super("Frame Without TitleBar");
JInternalFrame frame = new JInternalFrame();
setRootPaneCheckingEnabled(false);
javax.swing.plaf.InternalFrameUI ifu= frame.getUI();
((javax.swing.plaf.basic.BasicInternalFrameUI)ifu).setNorthPane(null);

frame.setBounds(30,30,200,200);
frame.setVisible(true);
JDesktopPane jp = new JDesktopPane();
jp.add(frame);
setContentPane(jp);
}
public static void main(String[] args){
RemoveTitleBar rtb = new RemoveTitleBar();
rtb.setBounds(20,20,400,400);
rtb.setVisible(true);
rtb.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}









Related Tutorials/Questions & Answers:
JInternalFram
JInternalFram  how can remove title of JInternalFram in Netbeans