How can I draw the tab of JTabbedPane as an image?(urgent)

I would like to draw a JTabbedPane with a tab as an image or set the its size like I want.
Any help is appreciated.

Hi,
you can set size the tabs by using the tabInsets key.
Notice also the textIconGap key.
UIDefaults ui = UIManager.getDefaults();
ui.put("TabbedPane.tabInsets", new javax.swing.plaf.InsetsUIResource(10,10,10,10));
"TabbedPane.textIconGap" int
These are the keys and values connected with TabbedPane.
If you need further customization of the tabbed pane I would suggest building your own.
"TabbedPane.selected", Color
"TabbedPane.tabRunOverlay" int
"TabbedPane.tabAreaInsets" InsetsUIResource
"TabbedPane.shadow" ColorUIResource
"TabbedPane.selectedTabPadInsets" InsetsUIResource
"TabbedPane.highlight" ColorUIResource
"TabbedPane.lightHighlight" ColorUIResource
"TabbedPane.font" FontUIResource
"TabbedPane.foreground" ColorUIResource
"TabbedPane.background" ColorUIResource
"TabbedPane.focus" ColorUIResource
"TabbedPane.darkshadow" ColorUIResource
"TabbedPane.contentBorderInsets" InsetsUIResource
-Michael

Similar Messages

  • How can I get the tabs back where they belong beneath the address bar , NOT on top ???

    how can I get the tabs back where they belong beneath the address bar , NOT on top ???
    they are on top, which puts the address bar at a variable position depending on how many tab rows exist - makes a moving target for navigating to across my dual 24 inch screens
    I tried your "solution" using about:config and setting browser.tab.on.top or whatever to false, but that had NO effect
    Maybe because TabMixPlus is installed?
    It does allow putting the tabs all the way at the bottom, but I don't like that either.
    PLEASE, give me the address bar at TOP with tabs under that!!!
    Also, I don't want FlashGot to be at the right of the address bar!!!

    why should we use yet another add on to get the tabs back at the bottom? Big mistake.
    Moreover, why make FF look more like Chrome? If I wanted Chrome, i would have installed it long time ago.
    FF 29.0 is NOT an improvement.
    Nasty piece of mud.

  • How can I set the tab order in a form?

    How can I set the tab order in a form?

    Sorry. I don't mean page tabs, but the order in which form fields are selected by the tab key. In simple html there is a value called tabindex and I was just wondering if there is a way to assign this order within a portal form. I have basically recreated the form with a custom layout and adjusted the table structure to force the order I was looking for, but it would be a nice add for future versions.

  • How can I disable the tabs in safari on the ipad2

    How can I disable the tabs on safari on my ipad2. I hate the tabs!!!

    You can't, Safari on iOS 5 on the iPad uses tabbed browsing. You can try leaving feedback for Apple and maybe in a future update we'll get the choice of tabs or thumbnail/paged browsing : http://www.apple.com/feedback/ipad.html
    In the meantime I think that the (free) Opera browser and the iCab Mobile browser in the app store offer thumbnail browsing to some degree.

  • How can i pin the tabs (shortcuts on the left) FOREVER?

    how can i pin the tabs (shortcuts on the left) FOREVER?
    I PINNED THE TABS AND NOW I HAVE THE SMALL TAB ICONS ON THE LEFT OK COOL BUT I DONT WANNA DO THIS EACH TIME I OPEN FIREFOX. I WANNA PIN THEM FOREVER. AUTOMATICALLY!!!!

    App (pinned) tabs and Tab Groups (Panorama) are stored as part of the session data [1] in the file sessionstore.js [2] in the Firefox profile folder [3].
    Make sure that you do not use "Clear Recent History" to clear the "Browsing History" when Firefox is closed because that prevails and prevents Firefox from opening tabs from the previous session.
    * https://support.mozilla.com/kb/Clear+Recent+History
    * [1] http://kb.mozillazine.org/Session_Restore
    * [2] http://kb.mozillazine.org/sessionstore.js
    * [3] http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox
    It is also possible to use the "Show my windows and tabs from last time" setting, that is usually a more reliable way to restore session data.
    * [http://kb.mozillazine.org/Menu_differences Firefox/Tools > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • Clicking on Microsoft Update opened Firefox, but couldn't run from Firefox; when I closed Firefox I lost all my tabs and couldn't restore anything but the Microsoft page; how can I restore the tabs from an earlier session?

    Clicking on Microsoft Update opened Firefox, but Microsoft Update couldn't run from Firefox; when I closed Firefox I lost all my tabs and couldn't restore anything but the Microsoft page; how can I restore the tabs from an earlier session?

    Hi Diovizor,
    Make sure that you do not use [http://support.mozilla.org/en-US/kb/Clear%20Recent%20History Clear Recent History] to clear the 'Browsing History' when you close Firefox.
    Also please make sure that you not run Firefox in (permanent) Private Browsing mode.
    You enter Private Browsing mode if you select: Preferences > Privacy > History: Firefox will: "Never Remember History"
    To see all History and Cookie settings, choose: Preferences > Privacy > History: Firefox will: Use custome settings for history. Uncheck "Always use permanent Private Browsing mode"
    Hope that helps!

  • How can I increase the number of pixels in an image?

    How can I increase the number of pixels in an image?

    You can't.
    The number of pixels in an image is decided by the camera that shoots the image
    With an app like Photoshop you can interpolate - this will make a guess as to what a particular pixel may look like based on the ones around it. Results can vary wildly and Photoshop is expensive.
    Regards
    TD

  • How can I make the tab image instead of text.

    Hi guys,
    How can I make a tab displayed as image instead of text?
    Best Wishes,
    Fateh

    Thanks Jari,
    I use Apex 4.0.2 and the theme is Builder Blue 2. When I click edit tab, I get "Tab Label" that is required field and a region called "images". As I got from you, I cannot utilize images in my case.
    Regards,
    Fateh

  • How can I STOP the TABS from Automaticly Expanding to the right?

    I don't like several new features.
    1) It is extremely difficult to tell which TAB belongs to the page I'm viewing. This causes me to constantly close the Wrong Page.
    2) When I do close a Tab, the remaining Tabs expand to fill the "Tab Bar" leaving No Blank Space.

    Hi,
    You can try a different theme for Firefox that provides a greater contrast between the active and inactive tabs: https://addons.mozilla.org/en-US/firefox/themes/
    Please note that some of the themes have a thinner tab bar and may diminish the height of the tab bar.
    or
    You can try the add-on [https://addons.mozilla.org/en-US/firefox/addon/colorfultabs/ ColorfulTabs] without changing the theme. It has an option to [https://www.binaryturf.com/free-software/colorfultabs-for-firefox/colorfultabs-documentation-and-help/#3 fade the inactive tabs]. Please note that ColorfulTabs may have issues when used with other Firefox themes.
    You can prevent filling the tab bar to an extent by using the '''Pin as App Tab''' feature. Right-click on a tab and choose '''Pin as App Tab'''. To unpin, right-click on the pinned tab and choose '''Unpin Tab'''.

  • How can I set the tab order of text box controls on each page of a tab control?

    I need to be able to select the tabbing order of individual controls on a single page of a tabbed control. How??

    In LV 6.1 an up you should be ablel to right click on the edge of the tab control when the tab-page in question is selected.
    The bttom selcetion in the pop-up is "Reoder controls in page..."
    selecting this option will switch editing modes to allow you to specify the ored, just like in a cluster.
    I seem to remeber in older versions you had to drag the tabable controls off the tab control, specify the tabbing oder and then drag them back on. The oldest version I have on this machine is 6.1 so that all I can speak for at the moment.
    I hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • [DATA LOSS] I closed the Tab Groups and all my tabs dissapeared. How can I recover the tabs in Firefox 26? Would you please just delete this feature?

    Thank-you in advance for reading all of this.
    A slip of the mouse in trying to return to the left-most tab caused the tab groups feature to take over the window. I completely failed to comprehend what I was looking at and closed the thing by clicking the x because I damn sure didn't want what I was looking at. Undo close group? Of course not, I didn't want a group in the first place. Hey! My tabs are completely gone now! So in just a few steps all of which seemed innocent, I have lost all but ten of the tabs that were open, and those were only the most recent ten (and actually older tabs would have been more valueable than newer so insult on top of injury).
    I don't think increasing the number of undoable tab closures is the answer. I think getting rid of the tab groups feature all together is the best way to go. I seem to have lost all the tabs I had open, irretrievably, and some of them had been open for WEEKS so they can't be reopened from history.
    The tab groups feature is a data loss bug. Please remove it from the UX completely. If you have to figure out a way to grandfather people who actually have a tab group, fine but don't further vex me with it, please.
    The reason this catastrophe has occurred is that your feature, was so discoverable that I activated it by mistake, and the UI after that had to be learned on the spot, yet was too complicated to learn. You really should withdraw it until you can figure out how to keep the UI for it from causing data loss such as I have experienced this morning.
    Also, there may be other questions on this feature which are from a certain point of view the same as this one. It's hard for me to tell for sure. None of them had a true resolution so that's why I posted this one, also I'm seeking a specific fix, removal of the offending feature.
    Why remove the feature? Because if I allow in my discussion the possibility of retaining it, it will stick around in its present and dangerous form until your team is done bikeshedding the new form it should take. Instead I want you to delete the feature and then require its champion to convince you that a new incarnation won't cause data loss before you allow it back in.
    Fellow users, if you know of a way to recover all 50 lost tabs from an "undo close tab group incident", I would be grateful for that advice, but I would still believe the feature should be deleted. Some of the tabs have been retained for months so digging them out of the history is not practical.

    I am not 100% certain but I am fairly sure development of this tab feature has ceased and it is likely to be deprecated. I am even less sure what the replacement will be.
    Thus forum is not the place for discussing development issues or feature requests. (Developers do not use this site)
    *You could comment using feedback <br /> https://input.mozilla.org/en-US/feedback
    *Or try to find a developers forum or mailing list <br /> http://www.mozilla.org/about/forums/#general-development
    I have not tried this and am not even using Windows at present but the tabs groups are stored as entries in the sessionstore.js files. Firefox has such a file plus sometimes numbered copies and a backup copy. Firefox will have re-writen these files but I suppose there is a posibility the Windows OS may have kept copies.
    * see http://windows.microsoft.com/en-US/windows7/Previous-versions-of-files-frequently-asked-questions
    * http://kb.mozillazine.org/Sessionstore.js Note the files are kept within the Firefox Profile
    ** Firefox Button -> Help -> Troubleshooting [open profile] (or some thing similar) is one method of locating the profile.
    Find and backup any current sessionstore.js file. Consider also bookmark or otherwise recording anything you have open. Now find any previous versions and try putting them in Firefox's profile before restarting it.

  • How can I get the tabs to stop showing the pages I just visited

    I don't want the sites/pages I visited to show up in thumbnails. How can I get this to stop?

    Hello mtroop24, you mean the thumbnails when you open a new tab ?
    see: [https://support.mozilla.org/en-US/kb/new-tab-page-show-hide-and-customize-top-sites#w_how-do-i-turn-the-new-tab-page-off How do I turn the new tab page off?]
    thank you

  • How can I set the "tab groups" page as my home page?

    I've searched for about:config options, and even installed Customizable Shortcuts 0.5.11.1 with the hopes that there would be a shortcut for "options" or "preferences", so that I could simply click "set as home page" while in the tab groups page. No dice. I've just started working with tab groups again (I was away on Chrome for maybe a year... but I'm back), and I think it would be great if I could simply have all my tab groups displayed when I start firefox up. How do I do it?

    The tab view page is dynamically populated based on the tab groups in the current window. Although the "page" has an address, opening that address directly yields a blank tab, so I think that's a dead end.
    Since the keyboard shortcut is Ctrl+Shift+e, maybe you can find a way to send that automatically?
    Also, if you rely heavily on tab groups, I assume you are using something like the [https://addons.mozilla.org/en-US/firefox/addon/session-manager/ Session Manager extension] to protect against data loss. Because tab groups (and of course the tabs themselves) are stored only long enough to restore the immediately previous session, it's not too difficult to accidentally lose them all.

  • How can I put the tabs back under my toolbar?

    I stupidly set firefox to automatically update, and the newest version has fundamental UI changes that I absolutely hate with the fire of a thousand suns. I want my tabs back where I had them, directly over the content of the page, underneath the address bar and my quicklinks bar, the only place the tabs should ever be. The exact place where the information the tabs provide ("What page am I looking at?") is the most useful. Only someone with a severe head injury would think the tabs should be way up at the top of the application. They provide no useful information at the top of the screen. Placing them directly above the content they control is the most sensible place for the tabs to be.

    You can use any of the following add-ons.
    * https://addons.mozilla.org/firefox/addon/tabs-on-bottom/
    * https://addons.mozilla.org/firefox/addon/fdgueux-tabs-on-bottom/
    * https://addons.mozilla.org/firefox/addon/classicthemerestorer/
    If you don't want to install an add-on, put the following style in the ''userChrome.css'' file and restart Firefox. You can use [https://addons.mozilla.org/firefox/addon/stylish/ the Stylish add-on] instead, if you have it installed.
    * http://kb.mozillazine.org/UserChrome.css
    <pre><nowiki>@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
    /* The above line should appear only once in the file */
    #TabsToolbar { -moz-box-ordinal-group: 99 !important }</nowiki></pre>
    ----

  • I closed about 60 tabs when working on my wife's computer. How can I restore the tabs again? Where does FF save the lists of urls? This is extremely urgent - can save my marriage! Thanks.

    This was done on FF6.0 running XP

    You can restore a closed window -- don't know about 60 tabs removed from a window. Use "Alt" to bring up the Menu bar (if hidden), then click on History, then Restore windows then select windows to restore and / or tabs to restore.
    You can bookmark all of the open tabs by right click on a tab then "Bookmark all tabs" will be grayed out if only one tab, and in FF 6.0 does bookmark the app-tabs. App-tabs should already be bookmarked by you anyway so they can can be restored.
    If you fail to bring back the tabs, use the History Sidebar ("Ctrl+H"), they are not in the history on the basis of last open though so if they've been open for several days you may have a hard time finding what was lost. The "View" single menu item at the top of the History sidebar allows for various ordering, but you may wish to the the History Library List instead ("Ctrl+Shift+H").
    reference
    * Viewing the browsing history - Firefox - MozillaZine Knowledge Base<br>http://kb.mozillazine.org/Viewing_the_browsing_history_-_Firefox
    * Bookmark or save multiple tabs - MozillaZine Knowledge Base<br>http://kb.mozillazine.org/Bookmark_or_save_multiple_tabs
    session:
    * http://kb.mozillazine.org/Browser.sessionstore.max_tabs_undo (default is 10)
    * http://kb.mozillazine.org/Browser.sessionstore.max_windows_undo (default is 3)
    * http://kb.mozillazine.org/Session_Restore

Maybe you are looking for

  • Footage will just not play in Premier Pro CS 5

    I am importing footage into Adobe Premier Pro CS 5 version on a Mac 10.6, but it doesn't matter what file format I convert it into or what sequence settings I try I cannot get the footage to play! It's recorded on a Sony Handycam HDR-XR200E in AVCHD

  • Unable to execute a executable

    Hi,   I am trying to execute a third party encrypton program on an application server.I have created an OS script to execute the encryption in a series of steps.When I execute this script(compress.cmd) from OS level directly It goes well successfully

  • [svn:osmf:] 16557: Re-added LOGGING=true to as props.

    Revision: 16557 Revision: 16557 Author:   [email protected] Date:     2010-06-14 12:28:44 -0700 (Mon, 14 Jun 2010) Log Message: Re-added LOGGING=true to as props. Modified Paths:     osmf/branches/zeri-certification/Test_Apps/OSMF/.actionScriptProper

  • IPhone 4 Sim Card not supported Help!

    I bought an iPhone 4 off someone under the impression that it was UNLOCKED due to the fact that is had no Network on the box (unlike other iPhones i've had) but when taking my o2 Sim out of 1 iPhone and putting it into my newer one, iTunes was saying

  • Grub 1.99 can't install on my system

    This error isn't specific to Arch. Whenever I try running grub-install --no-floppy /dev/sda with Grub 1.99, it reports something like "it looks like there's an iso9660 file system, can't continue".  I can't give the exact error message since my compu