Hemen Ashodia Hemen Ashodia - 6 months ago 30
Java Question

JFrame Customization

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 )

Answer

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.

Comments