3

How to add some JtextField in title bar of JFrame..?
Or if I want to add some components in Title bar of Jframe
Like there are tabs in Firefox
( although i know firefox is not made up in java competely )

Hemen Ashodia
  • 499
  • 3
  • 16

2 Answers2

3

You can call setUndecorated(true) on JFrames. Then you can implement your own titlebar which can be e.g. a tab bar like in Firefox or Chrome. But you need to take care for widgets for closing, moving, minimizing the window.

Hauke Ingmar Schmidt
  • 11,559
  • 1
  • 42
  • 50
  • +1 for `setUndecorated()`; there's a related example [here](http://stackoverflow.com/a/7457102/230513). – trashgod Jan 28 '12 at 14:49
0

When declaring your JFrame where I have "Test" put what you want the title of your JFrame to be.

Window = new JFrame("Test");
Jakob991
  • 63
  • 7