completely remove the title bar of tabs - java

img example http://img20.imageshack.us/img20/6873/guice.png
Hi guys, I was wondering if there was any way to completely remove the title bar of the tabs (i.e 'tab2', 'tab3' e.t.c).
At the moment i am only able to use jTabbedPane1.setTitleAt(0, null); to remove the text in the title bar (or in netbeans just clear the text) but is there a way to completely hide the tab title bar?
Thanks

You could call them " ". If you want to hide them completely, why do you want a tab bar without a tab bar? You could just have different panels you swap around.

Related

Android: Action bar's action items centered

I am working on the action bar of an application and I want the actions to be centered. I searched everywhere but all I can find is how to center the title. Is there anyway to center the actions? Moreover, I would like the text of the actions to be below the icon not on the right of the icon. Is there anyway to do that?

Is it possible to set the padding between Action Bar home button and App Logo?

I want to increase the padding between the home action bar button "<" and the app logo displayed to the left of it. Is there any attribute I can set to achieve this?
I guess you can't add more transparency to the left of your icon?

Put new component on JXTaskPane

The JXTaskPane used in Java Swing has a title bar. There is a expand/shrink button in it. I would like to be able to add my own actions in the titlebar that would appear beside
the expand/shrink button.
How can I do this? I try myself many times, but do not get the expected result. I made a new JButton and set its location over the title bar coordinates, but it's added in the element.
I have attached a screenshot that shows a help type action in the title bar to show
you what I mean.
That's not possible. I'd recommend perhaps making a new JFrame pop up when you click the button to extend the dropdown menu. Creating your own JFrame popup would also afford you more creativity and customizability when it comes to the components you can put on it. I've not much experienced with this sort of thing, but you could try to do this. It might not be ideal though.

Adding 2 different menu bars in java

I'm creating two menu bar 1st menu bar is for background color & 2nd is for text color.the application contains text component where user can type text.when user press either of menu scroll bar are shown on screen.for red,blue,green, color component the user can adjust the position of scroll bar,on pressing "OK" button the foreground or background of text component on frame changes according to the menu choice.
One possibility is to create an MDI (one parent window, with an internal child window for each document). See: How to Use Internal Frames. The JDesktopPane and each JInternalWindow can have their own menus.
Two menus bars sounds awkward. Usually a single menu bar is more than enough to handle. Have you considered a popup menu instead for the second set of menus? If you still insist on adding multiple menu bars to a frame, consider changing their position for example use BorderLayout.SOUTH on one of them.

Java AWT: Remove frame title bar and add customised title Bar

I am new to AWT and was wondering how to remove the title bar that comes up when we open a frame and add customised title bar.
Though I was able to remove Tiltle Bar using setUndecorated(true) but not getting a idea how to add a Custom Title bar with just a ICON and Close Operartion. Also I need to color the Title Bar with a specific color.
P.S : Cannot use Swing
Thanks in Advance !!!
You have 2 possibilities.
Use java.awt.Window instead of Frame.
Use JFrame and call frame.setUndecorated(true);

Categories

Resources