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 )
Asked
Active
Viewed 465 times
3

Hemen Ashodia
- 499
- 3
- 16
-
no i dont mean so i want to add some component where there is title of the jframe is shown... – Hemen Ashodia Jan 28 '12 at 13:44
2 Answers
3
You can call setUndecorated(true)
on JFrame
s. 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