Creating a dropdown for the tabs that use JTabbedPane

Hi all,
I have an application that uses a JTabbedPane to create tabs. Currently it uses the default to scroll if there are more tabs than what can be fit on the screen. I would also like to provide a dropdown next to the scroll arrows so that the user can see all the tabs on a dropdown list and select one w/o having to scroll left and right. I've seen this done on the NetBeans IDE 4.1 and 5.0. Is this something I can leverage from the Swing API (using JDK 5), grab from some open-source library, or must code myself? Let me know how I can do this. Thanks in advance!
-los

Thanks for the reply!
I understand what you are describing but am a bit puzzled on a couple of things (maybe because I just got into Swing).
My biggest question is on how to place the combo box in the tabbed pane next to the scrolling arrows. I'm looking at the JTabbedPane Javadoc and I do not see a place where one can add other components such as this combo box (other than the tabs themselves).
Another question is that the combo box will have a width the size of the longest text contained in the box. How do I remove this length and just show the dropdown arrow. When the user clicks this arrow, the combo box appears with the list of items, i.e. I want to mimic what the NetBeans IDE does.
Thanks in advanced!
-los

Similar Messages

  • How to create an Invoice for the sales order using the T-Code VF01

    Hello Experts,
    How to create an Invoice for a sales order using the T-Code VF01?
    Thanks in advace,
    Suma

    hi,
    Make the following settings-
    1. Create sales document and billing type
    2. assign billing type in sales document type config VOV8
    3. Activate itemcategory as sales order related billing
    4. Maintain copy control header and item level between sales order and billing
    5. Maintain pricing procedure for sales order and billing
    6. Define Output procedure in case to print invoice
    Regards
    Goutham

  • Why don't y'all create an app for the lockscreen that is a pattern. I really am getting disappointed at apple

    Apple should create an app like android that is a pattern for lockscreen. This slide to unlock is gettin boring

    The OP seems to be referring to a recognition pattern in place of the slide to unlock the iPhone.  This user defined pattern is common on an Android.

  • For the ones that use Muse as their main tool to build websites for clients, how do you win them over? (+bonus question)

    Couple times a year I always get insanely interested in Adobe Muse. I've used it before, then I got even more interested when all the new in browser editing features rolled out. The idea seemed nice, but I was very disappointed when I noticed it was really only text and images that you can edit. I hope this is not an actual argument when talking things over with a client, but how do you win your client over if he asks "can I edit the videos on the site? can I edit x?, etc" Which would probably then lead to "Why should I use you when I can just use a website builder like squarespace, wix, etc and actually have control over my website?"  What is your response?
    I REALLY want to get into Muse, and I want to be convinced! It seems like a dream for designers like myself. That, what I wrote above, is the only thing that holds me back.
    Bonus question:
    Say, the answer is "it's just not possible" to change the videos, etc.. What is the alternative? A bunch of iframes with say, tumblr blogs made specifically to just hold a video? Sized specifically for it, etc.
    I'd just like to build websites for clients and really end it there. Move onto the next project! Even if paid, I'm just not interested in managing websites after I build them. I wouldn't really be able to convince a client to pay me every time he wants a change too.

    Couple times a year I always get insanely interested in Adobe Muse. I've used it before, then I got even more interested when all the new in browser editing features rolled out. The idea seemed nice, but I was very disappointed when I noticed it was really only text and images that you can edit. I hope this is not an actual argument when talking things over with a client, but how do you win your client over if he asks "can I edit the videos on the site? can I edit x?, etc" Which would probably then lead to "Why should I use you when I can just use a website builder like squarespace, wix, etc and actually have control over my website?"  What is your response?
    I REALLY want to get into Muse, and I want to be convinced! It seems like a dream for designers like myself. That, what I wrote above, is the only thing that holds me back.
    Bonus question:
    Say, the answer is "it's just not possible" to change the videos, etc.. What is the alternative? A bunch of iframes with say, tumblr blogs made specifically to just hold a video? Sized specifically for it, etc.
    I'd just like to build websites for clients and really end it there. Move onto the next project! Even if paid, I'm just not interested in managing websites after I build them. I wouldn't really be able to convince a client to pay me every time he wants a change too.

  • How to define roles for the reports that i have created using WAD?

    Hi all,
    Can anyone let me know how to define roles for the reports generated using WAD. And what is the procedure for creating and defining roles. Is this process take care of Bw consultant nor the basis guys.
    Can anyone let me know the entire procedure about the roles in bw 3.5
    thanxs
    haritha

    Following links might helps you
    create a role
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/bi/authorizationinSAPNWBI&

  • Use to have a + on the right of the tab that when clicked, opens a new tab. what happened to this?

    use to have a + on the right of the tab that when clicked, opens a new tab. what happened to this?

    greghcrash wrote:
    It Would be great to have keys on the onscreen keyboard.
    Such as a computer keyboard.
    With BACKSPACE, TAB WITH SETTINGS, DELETE, TYPE OF TYPE, BOLD TYPE, UNDERLINE ETC....
    I HAVE A KEYBOARD COVER AND IF I NEED TO USE CERTAIN KEYS I HAVE TO SWITCH TO MY KEYBOARD CASE AND THAT IS VERY INCONVENIENT.
    IT IS ALSO A TIME WASTER.
    When you installed iOS 8 did you read about the new features? Applications can create custom keyboards…
    http://www.imore.com/custom-keyboards-ios-8-explained
    You need to look for an app that has a custom keyboard with the features you require, I suggest you find one without CAPSLOCK
    greghcrash wrote:
    IT IS ALSO AGGRAVATING WHEN TYPING AND IT AUTOMATICALLY CHANGES THE WORDS THAT YOU WANT TO USE.
    THANK YOU FOR YOUR TIME
    Again you need to look at how to manage the device - these settings can be turned off already & you can edit the 'suggestions' too.
    Settings > General > Keyboards > turn Auto-Correction Off.
    Sadly you cannot disable autocorrect temporarily, so it's all or nothing.

  • HT5622 We are a family of 4, each with their own apple device. Is it best for us to set up individual apple ID's for things like ITunes? If we do can the same e-mail address be used for all of them or do we need to create e-mails for the kids? Thank-you

    We are a family of 4, each with their own apple device. Is it best for us to set up individual apple ID's for things like ITunes? If we do can the same e-mail address be used for all of them or do we need to create e-mails for the kids?
    Thank-you

    1. Yes, it is.
    2. You may be able to use the same address by adding a plussed suffix to it, such as [email protected] If that doesn't work, create separate emails.
    (103279)

  • Im having trouble with error 13019 I have read the previous discussions about this matter and have tried to do them except for the fact that under the music tab when clicking on my ipod every thing is frozen. It s not my comp. and i dont wish to restore.

    Im having trouble with error 13019 I have read the previous discussions about this matter and have tried to do them except for the fact that under the music tab when clicking on my ipod every thing is frozen. It s not my comp. and i dont wish to restore. Please help!

    If you are wondering why you are not getting any responses, it is because you have vented a complaint without any details that make any sense or give anyone something to work on.
    If you want help, I suggest actually detailing what has happened, with versions of software etc. Anything that would let us assist.
    As a start I am guessing that you have not really got the hang of "How it all works". Firstly download the Pages09_UserGuide.pdf from under the Help menu. Read that and view the Video Tutorials in the same place. A good addition would be the iWork 09 Missing manual book and something to help you learn how to use your Mac.
    If there are specific tasks you need help with:
    http://www.freeforum101.com/iworktipsntrick/index.php?mforum=iworktipsntrick
    Is a good resource.
    Peter

  • I have Windows Professional and I used to be able to move the curser over the Firefox icon in the taskbar and it would give me a telescoped view of all open tabs, now it just shows the tab that I'm currently viewing. How do I fix this?

    I have Windows 7 Professional and I used to be able to move the curser over the Firefox Icon in the taskbar and it would show me a telescoped view of all open tabs, now it just shows the tab that I'm currently viewing. How do I fix this?

    Hey MikeDo,
    Do you have the option checked for ''Show Tab Previews in the Windows Taskbar''? If not, just go to ''tools->options->tabs.'' You can find more information on what each of these settings do in the Knowledge Base article [[Options window - Tabs panel]].
    Hopefully this helps!

  • I selected full screen how do i undo it the tab that i used to make full screen isnt there now

    i selected full screen how do i undo it the tab that i used to make full screen isnt there now

    The F11 key will toggle Full Screen Mode on or off
    *See --> http://kb.mozillazine.org/Netbooks#Full_screen
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • I have an old (first generation) iMac that I still use sometimes for the applications that are on it. I was using it yesterday and unfortunately had a power cut. I went to turn it on today, and nothing at all happens. It's as though no power is getting to

    I have an old (first generation) iMac that I still use sometimes for the applications that are on it. I was using it yesterday and unfortunately had a power cut. I went to turn it on today, and nothing at all happens. It's as though no power is getting to it. I've checked the obvious things, changed the fuse, tried different cables, poked paperclips in reset holes, but nothing doing. I wonder if there is anyone who knows what might be wrong. I was hoping to get some of its content transferred soon, but I'm guessing that can't be done if it can't be started up. Many thanks, if you can help

    Hello,
    >It's as though no power is getting to it.
    Would it be correct to assume that no sounds at all can be heard? Also, no lights, not even green or amber at the power button?
    >unfortunately had a power cut.
    Was it possibly a power cut in connection with a thunderstorm? Any other evidence of higher than normal voltages (light bulbs, et cetera)? Has the line voltage been checked (measured with an appropriate voltmeter/multimeter)?
    If necessary, it would be possible to remove the hard drive, and then connect it to an external IDE/ATA to USB adapter (example below). That way you could gain access to files on the hard disk from another computer.
    http://www.newertech.com/products/usb3_universaldriveadap.php
    Jan

  • How do i make a tab active and make it stay that way always. If i put a website in my home page in order for the tabs to open automatically in that same homepage , this setting is not working, every time I open a tab , a white window appears .

    How do i make a tab active and make it stay that way always. If i put a website in my home page in order for the tabs to open automatically in that same homepage , this setting is not working, every time I open a tab , the window appears white .

    By default Firefox opens a blank page for a new Tab, there is no setting to change that action without installing an add-on.
    New Tab Homepage extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/777

  • I used my iPhone maps it works very well. Is there an application for the iPad that could be used on a boat?

    I used my iPhone maps it works very well. Is there an application for the iPad that could be used on a boat?

    Indeed :-)
    This forum is riddled with questions by users that cannot get their computer to do what they want, *despite* the fact they use a very precise and (usually) unambiguous method of telling it want they want it to do -- a programming language. Making it comprehend *natural* language is, by any way of measuring, a number of degrees more difficult.
    That said: in what way would a computer program (advanced or "dumb") be able to help the OP? Spell check is one -- but it's not a *fact* that anything written *badly* equals nonsense. In politics, for example, the most eloquent speakers still manage to make a fool of themselves :D The same goes for "grammar". Of course, bad grammar is more difficult to understand -- EVEN for a human. So a computer is bound to fail on that as well.
    Fact checking then? I usually can't even find what I want in one go with Almighty Google (which seems to turn things around: if it cannot find "enough" web pages with the exact phrase you asked it, it automatically assumes you are interested in synonyms, antonyms, homonyms, and other *unrelated* stuff! Yeah THANK you but I want to find what I typed in!)
    A good starting point would be to define in more detail what this hypothetical software *ought* to do -- that needs to be a bit more concrete than "I want it to do my job for me."

  • I have a problem with elements 8. When ever I start a new project, the program searches for the old, latest used filmmaterial, I have used before. That means, if I use a different DVD, it take so much time, until the program starts. So how can I stopp the

    I have a problem with elements 8. When ever I start a new project, the program searches for the old, latest used filmmaterial, I have used before. That means, if I use a different DVD, it take so much time, until the program starts. So how can I stopp the automatically uploading of old material?
    Thanks

    You have 2 unreachable statements in this method.
    public static int eval(String s2, String op, String s3) {
    return lookup(s2);
    return lookup(op);
    return lookup(s3);
    } You're missing a } at the end of this method:
    public static int lookup(String s) {
        for(int k = 0; k < symbols.length; k++){
            String symbol = symbols[k];
            if(s.equals(symbol))
                return k;
        }You have some loose } and ; at the end of the file:
    public static void main(String args[])
    commandline();
    }

  • I have OS 10.9.4, and I can't change the basso alert sound for Reminders.  Works ok for the rest of the applications that use an alert sound.  Help?

    I have OS 10.9.4, and I can't change the basso alert sound for Reminders.  Works ok for the rest of the applications that use an alert sound.  Help?

    http://www.microsoft.com/mac/support
    http://answers.microsoft.com/en-us/mac/forum/macword?auth=1
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macword/microsoft-wor d-for-mac-2011-will-not-open-error/ecc42616-6f49-40bb-b8f5-e21c711ea359

Maybe you are looking for