How to increase or reduce the font size in JFRame Title?

Hi, Sir:

How to increase or reduce the font size in JFRame Title?

See code below:

I hope to set String of "Borders" in JFrame frame = new JFrame("Borders");

to any size I like,

I use setFont etc, but not take effect,

Can guru here help?

Thanks

import java.awt.GridLayout;

import javax.swing.JFrame;

import javax.swing.JLabel;

import javax.swing.JPanel;

import javax.swing.border.TitledBorder;

publicclass TitledExampleextends JPanel{

public TitledExample(){

super(true);

this.setLayout(new GridLayout(1, 1, 5, 5));

JLabel label =new JLabel("Titled Border");

label.setHorizontalAlignment(JLabel.CENTER);

TitledBorder titled =new TitledBorder("Title");

label.setBorder(titled);

add(label);

}

publicstaticvoid main(String s[]){

JFrame frame =new JFrame("Borders");

frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

frame.setSize(200, 100);

frame.setContentPane(new TitledExample());

frame.setVisible(true);

}

}

[2004 byte] By [sunnymanmana] at [2007-11-27 10:33:35]
# 1

> How to increase or reduce the font size in JFRame Title?

Maybe this thread can help you:

http://forum.java.sun.com/thread.jspa?threadID=630096

Andre_Uhresa at 2007-7-28 18:23:39 > top of Java-index,Desktop,Core GUI APIs...