Hello, I have got some code on internet which will provide you the JDialog without the title bar. I have not used it and so you need to check it first.
Code:
javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public application extends Window
{
private btn btn;
publicapplication()
{
super(new Frame());
btn = new btn("Close");
btn.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
System.exit(0);
}
});
setLayout(new FlowLayout());
add(btn);
Dimension dm = Toolkit.getDefaultToolkit().getdm();
setBounds(80,90,400, 400);
}
public static void main(String[] args)
{
application().setVisible(true);
}
}
Bookmarks