import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.color.*;
import javax.swing.border.*;
import javax.swing.border.TitledBorder;
public class rahmen extends JFrame implements ActionListener
{
JFrame f = new JFrame();
JPanel p = new JPanel();
public rahmen ()
{
p.setBorder(new TitledBorder("Titel"));
}
public static void main(String[] args) {
JFrame f = new JFrame("test");
JPanel p = new JPanel();
f.getContentPane().add(p);
f.setVisible(true);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setSize(200,200);
}
}