Kyle
Kyle

Reputation: 3042

Adjusting UIdefaults

I currently have:

http://img593.imageshack.us/img593/2702/48211978.png

How do I get the titledborder to this? http://img143.imageshack.us/img143/9818/27722148.png

I've been trying to figure this out for a week now and I'm still stuck... Does anyone know how?

Thanks.

Upvotes: 1

Views: 103

Answers (2)

Stewart Murrie
Stewart Murrie

Reputation: 1319

LineBorder lb = new LineBorder(Color.white, 1);
TitledBorder tb = new TitledBorder (lb, "Client Downloader");
contentPanel.setBorder (tb);

Upvotes: 0

jzd
jzd

Reputation: 23639

Use a TitledBorder but in the constructor pass a LineBorder or an EtchedBorder.

Upvotes: 1

Related Questions