Friday, February 22, 2008


Remove Title Bar : Java Swing Code

This java swing example explain you how to remove title bar from the frame. Here is the example code :

import
javax.swing.*;
public class RemoveTitleFrame{
public static void main(String[] args) {
JFrame frame = new JFrame(Frame With No Title Bar);
frame.setUndecorated(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(400,400);
frame.setVisible(true);
}
}


1 comments:

Vladimir said...

Peplace
JFrame frame = new JFrame(Frame With No Title Bar);
With
JFrame frame = new JFrame("Frame With No Title Bar");

Vladimir