Is it possible to have different size for a combobox and its popup?

Hello,
I am showing a JComboBox with all possible fonts. Some of the font names are very long. I'd like to show a narrower combobox but when the popup menu is open to make as wide as necessary.
Is that possible?
Thanks.

Hi.
I found this a while ago, but never used it myself:// A Custom UI for the combo box popup
private static class PopupExpandingComboBoxUI extends WindowsComboBoxUI
protected ComboPopup createPopup()
return new ExpandingComboPopup(comboBox);
// Our custom popup menu - it makes up its own width
private static class ExpandingComboPopup extends BasicComboPopup
public ExpandingComboPopup(JComboBox cBox)
super(cBox);
public Rectangle computePopupBounds(int px, int py, int pw, int ph)
// Ok - just set the popup width to 200 for now - should be calculated though
return super.computePopupBounds(px, py, 200, ph);
}

Similar Messages

  • Can you have different passwords for mail account and ICloud?

    Can you have different passwords for mail account and ICloud?

    Yes - you want to go under Notifications, Mail.   Set each acct the way you want.

  • Does anyone know if I can transfer apps between my 2 apple ids? I have different ids for my iPhone and iPad?

    Does anyone know if I can transfer apps between my 2 apple ids? I have different ids for my iPhone and iPad?

    You can't, all content that you download from the store is tied to the account that downloaded it, you can't merge accounts nor transfer content between them.

  • I have only one ID, but I have different passwords for my iPhone and iPad. How to fix that?

    I have only one ID, but I have different passwords for my iPhone and iPad. How to fix that?

    Hi Cristigil,
    Are you talking about your lock screen passcode? If so, go into Settings>General>Passcode Lock, and Change one of your Passcodes to match the other.
    Hope this helps!
    Cheers,
    GB

  • Is it possible to have different headers for each page for the Pages app?

    I just purchased the Pages app for my ipad and it happens to be one of the best apps i've ever bought.  However, I'm having trouble figuring out how to have different headers for each page of the same document.  Is this possible to do?

    Tommy,
    One of the limitations of Pages for iOS on your iPad is that Pages can't create sections per se. The best you can do is insert page breaks and then assign different columns to that page. The problem comes with the headers and footers - in iOS Pages, the headers and footers apply to the whole document, not the individual sections as you would find in Pages '09 on OSX.
    The workaround is to create your document on OSX, insert the needed sections and headers, save, then transfer the Pages document to your iPad either as a working "blank" or as a new document. The headers and footers will reflect the sections you created in OS X, but you won't be able to add any new ones or new sections on your iPad.

  • 8120 BlackBerry Pearl: Is it possible to have different tones for messages and phonecalls?

    Hey all.
    My Dad's just got a BlackBerry & would like to have a different tone for his message alert and phonecalls.
    Is this possible?
    If so...how do we do it?
    Thanks in advance.
    Solved!
    Go to Solution.

    Oh yes... your alerts, ringtones and notifications are very customizable.
    1. Select the Profiles icon
    2. A box will appear where you can quick select between Loud, Vibrate, Quiet, Normal, Phone Only, and Off. If you wish to quick change the device profiles then select the one you want and exit out.
    3. If you want to edit the tones assigned to the device applications then select the last option, Advanced
    (some older models and OS 4.1 and below will not have the "Advanced" step--if Advanced is not present go directly to Step 4 below).
    4. Select the profile you wish to edit. (Loud, Vibrate, Quiet, Normal (default), Phone Only, Off)
    Note: on the 8100, 8800, and 8300 models: Do not click the trackball. Instead, click the menu key to the left of the trackball).
    Note: The profile that is in use will say: (Active)
    5. You will now see a list of all applications that can have a tone assigned (Browser, Calendar, Level 1 Messages, Messages ([email protected]), Messenger, MMS, Phone, SMS, Task ect..)
    6. Select the application you wish to edit the tone / notification for
    7. You can now edit Out of Holster and In Holster tones/ notifications.
    a) Select between: None, Tone, Vibrate, Vibrate+Tone
    b) Select the Tune you wish to use
    c) Select Volume (options are Mute, Low, Medium, High, Escalating)
    d) Select Number of Beeps (options are 1, 2, 3)
    e) Select Repeat Notification (options are None, LED Flashing)
    f) If set to Vibrate or Vibrate+Tone then select Number of Vibrations (options are 1, 2, 3)
    8. Repeat a-e for each of the desired applications listed in 5 above
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Is it Possible to have different sensitivities for trackpoint and bluetooth mouse.

    I have an x200. I recently purchased an interlink electronics bluetooth mouse and connection and setup worked great.
    The only problem is that the sensitivity that is good for my tackpoint is WAY too sensitive for the mouse.
    Is there a way to set up different sensitivities for the bluetooth mouse and the trackpoint so that i don't have to toggle the sensitivity every time I plug in my mouse?

    Thanks, but I understand the varying inherent sensitivities. I was just wondering if i could adjust a setting or install drivers or something that will automatically change the sensitivity setting when my mouse is connected to the computer. I'm looking for that or something that will specify sensitivity settings for my mouse without affecting the trackpoint.
    I have an x200 running Vista Ultimate with the lenovo trackpoint drivers.
    Message Edited by ender63071 on 01-07-2009 03:27 AM

  • Is it possible to have different settings for different podcasts?

    I know that you can change the setting for podcasts on iTunes - things like how often they're checked for new episodes and whether they're all kept or deleted after listening.
    But some podcasts are more timely, like news programs, and I would like to delete those when they get old. Others are "keepers" and I would like to keep them indefinitely. I know I can go back and manually delete individual episodes, but that's kind of a pain.
    So is it possible to change the settings for individual podcasts?
    Thanks.

    Thanks. There is an option for allowing or not allowing auto-delete, which looks like it may be what I want. I'm giving it a try.

  • Is it possible to have different rendering for RI and Myfaces for same code

    Iam facing with a peculiar problem. I developed custom component using JSF technology. There is a different rendering when I used RI and Myfaces for the same code base. How to overcome such a problem. Please reply.
    Thanks in advance

    Hi, it is normal, the rendered classes for the standard component have been implemented differently, so you have some differences. Normally, they should follow the SUN requirement but every one can code that following its own interpretation.
    Your component is based on which standard component?

  • Possible to have different ports for incoming and outgoing email?

    I need to set up a mail account in Mail where I read incoming mail from port 110, but to send outgoing mail I need to use port 587. Is this possible in Mail? Looks as if you only get to set the port once for both operations.

    it is indeed possible. go to mail>preferences>accounts, select the account you already created then go to account information and to outgoing server list, click on the list, go to edit server list and in the advanced pane you can change the outgoing port. for the incoming port, again select the account you already created, then go to advanced, and type in the incoming port.
    hope this helps

  • Is it possible to have Different Interval Ranges for the same Doc Type

    Dear All,
    Here is the issue.Is it possible to have different interval ranges for the same document type according to certain condition.Like my client , wants his interval ranges  be divided according to region(which are many)
    Regards,
    Sameer Jalees

    Hello,
    As you know we can only assign one number range for External and one number range group for internal in the sales document type.
    If you want different number ranges based on the regions, then as Jignesh suggested, you need to go for an enhancement.
    Use the exit USEREXIT_NUMBER_RANGE in program MVA45AFZZ, include a Z table with region as a critera and number range group for different numbers based on the regions. Talk to the business and get more details, get the help of ABAP team for technical details.
    Regards,
    SAM

  • Is it possible to have different pricing procedure for SO  and invoice?

    Hi,
    Is it possible to have different pricing procedure for SO
    and invoice?

    Hi Kiran35086 
    --Yes you can have it.But it is based on the business requirement
    --Create 2 Document pricing procedures & assign one in VOV8 & another in VOFA
    --In Sales Document VOV8 you maintain different  document pricing procedure Ex A
    --Go to VOFA & select your billing document type in Account assignment/pricing assign the document pricing procedure.EX- B
    --Create condition records in VK11 for the condition types which are included in the pricing procedures
    --Maintain pricing procedure determination in OVKK with 2 different Document pricing procedure & save it
    --When you raise SO in VA01 you will find one pricing procedure & when you raise billing in VF01 you find another pricing procedure in conditions.
    Let me know if your problem is solved
    Regards
    Pradeep

  • How can i indicate that the table columns have different size?

    How can i indicate that the table columns have different size?
    It is because i have a table that has several columns....but i would like to have the possibility to indicate the size for every column....could somebody help me please?
    Thanks,
    Mary

    Hi,
    don't know as much as I should about JTable, but it seems that using yourTable.getDefaultRenderer() could help you: if I clearly understood the javadoc notes, it returns an object inheriting from JLabel, so you should be able to use setHorizontalAlignment(int align) on it... no time to verify this, but I'd be thankfull if you tell me the results !!!
    Regards

  • Hello All... Back after a brief absence, things look a little bit different. I'm trying to take a 16 minute mini dv video and compress it for use on the web. I'm interested in any suggestions you may have on settings for the video and audio tracks. I'v

    Hello All...
    Back after a brief absence, things look a little bit different.
    I'm trying to take a 16 minute mini dv video and compress it for use on the web. I'm interested in any suggestions you may have on settings for the video and audio tracks. I've tried using Sorenson 3 (15 frames, key frames set to automatic, 320 x 240) for video and IMA 4:1 (mono) for audio. The resulting video looked great but the file size came in at about 255 Mb.
    Thanks!
    PowerMac G5 1.8 Dual   Mac OS X (10.4.3)  
    Message was edited by: Dan Foley

    Thank you for the replies.  Everyone was correct about the jack, interface, and phasing problems.  I have been unplugging my motu audio interface and then using headphones at work.  I have not changed any detailed audio output settings in logic.  When I read that the jack might be a problem I tried switching headphones.  This actually helped.  I am using dre-beats headphones and they seem to be having issues with the mac/jack-(the phasing/panning problems.  I can use these headphones with other devices but not the mac.  I have to use ipod ear buds and the phasing seems fixed.  Hopefully this information is helpful to someone else. 
    If anyone knows how to correct this issue please let me know its difficult to know what my final mixes are going to sound like and I have had to keep bouncing everything into i-tunes- sync to ipod and then listen in my car radio. 

  • Is there a way to have multiple color Guides so I can have different colors for different layers

    Is there a way to have multiple color Guides in Illustrator and Photoshop CC so I can have different colors for different layers?

    I think it's not possible "natively" to have this functionalty but I found these topics for Photoshop :
    http://www.ps-scripts.com/bb/viewtopic.php?f=10&t=4618
    http://www.ps-scripts.com/bb/viewtopic.php?f=10&t=4617
    On this one, you will see a workflow which are well described.
    http://graphicdesign.stackexchange.com/questions/6030/how-to-set-different-color-to-guides ai-ps-id-fw
    I've not tested them but you should give it a try!

Maybe you are looking for

  • Purchased app doesn't sync to iPad

    Purchased app shows downloaded on by pc but it doesn't sync to my iPad and although it indicated it's compatible with iPad, in iTunes it only shows up in iPod purchases downloaded, not in iPad purchases. I found that at the time I purchased it I didn

  • Problem with iTunes and iPhone Music organization. PLEASE READ AND HELP!

    Hello All! I have this problem concerning iTunes and my iPhone. When I add music, and I update the Artist title to organize it in my iPhone, It shows EDITED on my mac in iTunes, but not my iPhone. I took a screen shot of what It shows. The TOP is iTu

  • Configuration Result: This device is currently being registered for ePrint. Please try again later.

    When enabling eprinting for the HP LaserJet 500 MFP M525 it would not register with the services. It has been stuck on this status for several days under web services: This device is currently being registered for ePrint. Please try again later. I ha

  • Do I need to install odi-public-ws.aar for ODI 11g?

    Hello - Prior to ODI 11g - used to upload odi-public-ws.aar to Axis2 on Application server. Starting in 11g do we still need to do that? I was told JAX-WS takes care of that. If that's the case - what URL is used to call the ODIInvoke from SOA? Is it

  • Down payment request for PO

    Hi Guru's, Can anyone tell me the down payment process for Purchase order in SAP. We have a PO which we need to make payment 50% advance and 50% after 30 days. a. All configuration did for MM and FI b. Payment term c. Down payment request d. Down pay