The problem in using JComboBox. Need Help!

HI,
I am programming to make an address bar as IE? Now, I am using JComboBox as the address bar. I also read the article of "how to use JComboBox" in sun tutorial.
The problem is I cann't make the icon and text together in the address bar. As in the tutorial article, I can make it there since the JComboBox is uneditable.
My case is I still want the icon in the JTextField of JComboBox, but I am still able to input address into this JTextField as well.
Is it able to add a JLabel into JTextField first, and then be able to input text exactly after this icon, then my problem is solved.
Thanks!
Feng

Hi Feng,
My suggestion is that you try out the JComboBox methods setEditor() and setRenderer(). They allow you to specify custom components that will be used to show the combo box items. You'll need to do a bit of work, but you'll probably be able to provide a custom component that will display your icon.
Hope that helps!
Shannon Hickey (Swing Team)

Similar Messages

  • I Baught A iMac 2010 From Someone it came with lion but for the programs i use i need snow leopard but when trying to install it won't boot from usb or cd what can be the problem i've been at this for over 24 hours if anyone ca help it'd be greatly apprec

    I Baught A iMac 2010 From Someone it came with lion but for the programs i use i need snow leopard but when trying to install it won't boot from usb or cd what can be the problem i've been at this for over 24 hours if anyone ca help it'd be greatly appreciate it! Thanks!

    Downgrade OS X Lion To Snow Leopard [Video How-To]
    http://www.cultofmac.com/110614/downgrade-os-x-lion-to-snow-leopard-video-how-to /
    How To Downgrade OS X Lion To Snow Leopard: The Complete Tutorial
    http://www.redmondpie.com/how-to-downgrade-os-x-lion-to-snow-leopard-the-complet e-tutorial/
    How To Downgrade from Apple OS X Lion to Snow Leopard
    http://www.pcmag.com/article2/0,2817,2389334,00.asp

  • I dont remember the first apple id that link with my clash of clans apps. the problem now is i need to link my COC village and it keep saying "please log in with correct game center" is there anyway that i can retrieve my old apple id? please help me

    i dont remember the first apple id that link with my clash of clans apps. the problem now is i need to link my COC village and it keep saying "please log in with correct game center" is there anyway that i can retrieve my old apple id? please help me i dont want to lose my village, i have spent my money on that game to much. hmmm

    thanks mate, but the problem is im using different apple id now, and after about 1 year play coc and today i want to link the village , suddenly coc said that
    thats mean im playing this village with different apple id and it not saved. and the problem is i dont remember the first apple id and password that i use first time to download this game. hmmm it was so confusing, why coc and game center just make this thing saved with a new game center account.

  • How do I preserve the embedded hyperlinks when printing to .pdf?   I am using Acrobat Pro XI for Mac, and when I export to .pdf the existing hyperlinks lose functionality.   I assume it's just the flick of the right button – I just need help finding that

    How do I preserve the embedded hyperlinks when printing to .pdf? 
    I am using Acrobat Pro XI for Mac, and when I export to .pdf the existing hyperlinks lose functionality.   I assume it’s just the flick of the right button – I just need help finding that button. 
    Can you help?  Thanks!

    How:  MS Word to .pdf by Command P, hitting the PDF button, and then the button for "save as Adobe pdf"
    I didn't have this problem at all on prior versions of Adobe on my PC.   This isn't a Mac attack, is it?

  • Can anyone help me?Time Machine couldn't complete the backup to...  An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk.  What is the problem?  I've made no changes.

    I recently starting receiving the error message "Time Machine couldn't complete the backup to... An erro occurred while copying files.  The problem may be temporary.  If the problem persists, use Disk Utility to repair your backup disk.  I have had no problems backing up my MacBook Pro 2011 to my Western Digital My Book Live through a Linksys EA4500 router until recently.  I've made no major changes.  I've ran a diagnosis on my back up drive with no problems.  The Time Machine back up starts, but about after about 5 to 10 minutes I get the error message.  I can see the shared drive in Finder.  The light on the drive blinks while it starts the back up.  I can see the shared folders on the networked drive.  The backup process starts but for some reason it just stops.  Can anyone help?

    You can't repair a network volume in Disk Utility.
    Backing up to a third-party NAS with Time Machine is risky, and unacceptably risky if it's your only backup. I know this isn't the answer you want, and I also know that the manufacturer says the device will work with Time Machine, and that it usually seems to work. Except when you try to restore, and find that you can't.
    If you want network backup with Time Machine, use as the destination either an Apple Time Capsule or an external hard drive connected to another Mac or to an 802.11ac AirPort base station. Only the 802.11ac base stations support Time Machine, not any older model.
    If you're determined to keep using the NAS for backup, your only recourse for any problems that result is to the manufacturer (which will blame Apple.)

  • I want to perform bidirectional i/o using a pci-6534.The problem is that i need to use the same lines for i/p and o/p. is that possible?

    I want to perform bidirectional i/o using a pci-6534.The problem is that i need to use the same lines for i/p and o/p. is that possible? And if it is how an i doing this?

    Hi I Pant,
    The idea that crossed my mind was to tie each of the lines coming from/going to "your device" to two of the DIO lines. Configure one these two ports as input, the other as output.
    When you want to read the state of the line, read from the line configured as input. Similarly, use the other port when it is time to write.
    Provided "your device" uses tri-state drivers/receivers, or can be used in a "wired-OR" configuration, this may work.
    What is "your device"?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Encore CS4 (version 4.0.0.258) will not finish burning to blu-ray disc when using a menu template.  DVD burning works fine.  Anyone know the problem with blu-ray?  HELP!

    Encore CS4 (version 4.0.0.258) will not finish burning to blu-ray disc when using a menu template.   DVD burning works fine with menu template.  Anyone know the problem with blu-ray?  HELP!

    For CS4 you must update the Roxio component, especially with Win8
    http://forums.adobe.com/thread/1309029 http://docs.roxio.com/patches/pxengine4_18_16a.zip
    http://corel.force.com/roxio/articles/en_US/Master_Article/000012592-PX-Engine-Description -and-Download

  • When I tried to access into safari the ipod kicked me out back to the main screen, what is the problem? what i need to do? Help me please...!!!

    When I tried to access into safari the ipod kicked me out back to the main screen, what is the problem? what i need to do? Help me please...!!!

    Try:
    - Reset:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Going to Settings>Safari and deleting cache, history and cookies.

  • My daughter has spitefully changed my password and has refused to tell me. I have so much medical information that I can not lose. Is there anyway to get around this problem. Please I need Help fast.

    My daughter has spitefully changed my password and has refused to tell me. I have so much medical information that I can not lose. Is there anyway to get around this problem. Please I need Help fast.

    Connect the iPod to your syncing computer and restore it via iTunes.  However, if iTunes asks for the unknown passcode you need to place the iPod in recovery mode and then restore the iPod from backup.  For recovey mode see:
    iPhone and iPod touch: Unable to update or restore
    "If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone and iPod touch software."
    Above is from:
    http://support.apple.com/kb/ht1212

  • News "FLASH"... Nancy O (the legend) ... i need help again

    I am trying to put a banner on my website for my exam.... It will have to have an image with logos flashing across and stopping for a few seconds before carrying on.and out the other side.  I have looked up everywhere to see how this is done but with no joy. There is lots of info out there but it is not working for me.  In Flash i have no problem creating a banner image with various logos moving  from one side to the other or even changing the image from one shape to another or bouncing it up and down the stage from one side to the other. I can even stagger the timelines for the logos to make them enter one after the other. The one thing i can not get to grips with is making the images stop or pause after they have entered from one side before exiting  the other side. I have followed step by step many  youtube tutorials but the authors are wizzing through them too fast and despite folling every step second by second, i  am missing a vital step somewhere.   Would someone please let me know step by  step (and please assume i am an idiot when doing this) the sequence i must follow from the very begining to the last step when i publish.

    Noooooooo........ When i saw your email notification i had high hopes of getting the answer i have been trying to work out for two days....but no problem ..your still a legend ha ha ... you got me out of a big hole in this project the last time... but thanks for taking the time to reply, i will try the other forum.
    Date: Thu, 26 Jan 2012 17:28:18 -0700
    From: [email protected]
    To: [email protected]
    Subject: News "FLASH"... Nancy O (the legend) ... i need help again
    Re: News "FLASH"... Nancy O (the legend) ... i need help again created by Nancy O. in Dreamweaver - View the full discussion
    You'll get better answers in the Flash Forums for whichever Action Script ver you're using.
    Sorry.  I don't do much Flashy stuff anymore.  As far as I'm concerned, when Apple iDevices quit supporting Flash, it became a dying web technology.  
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4167793#4167793
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4167793#4167793. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Dreamweaver by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Time machine: An error occurred while copying files. The problem could be temporary. If the problem persists, use Disk Utility to repair your backup disk.

    Time machine backups are failing. I've followed the instructions I found on the Time Machine troubleshooting page (http://pondini.org/TM/Troubleshooting.html) but have gotten to where I don't know what to do next.
    Sequence of events:
    The main error message is always:
    An error occurred while copying files. The problem could be temporary. If the problem persists, use Disk Utility to repair your backup disk.
    Yesterday, I opened Disk Utility and verified the disk. Got this error:
    Error: This disk needs to be repaired using the Recovery HD. Restart your computer, holding down the Command key and the R key until you see the Apple logo. When the OS X Utilities window appears, choose Disk Utility.
    I ran Disk Utility and repaired the hard drive. Then I manually started the backup before going to bed, figuring it was going to take a long time to run. When I got up this morning, the backup had failed with the same "could be temporary" error. I checked the log, which says:
    Starting manual backup
    Attempting to mount network destination URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Mounted network destination at mount point: /Volumes/Tery Griffin's Time Capsule using URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Disk image /Volumes/Tery Griffin's Time Capsule/Tery Griffin’s Computer (44).sparsebundle mounted at: /Volumes/Time Machine Backups
    Backing up to: /Volumes/Time Machine Backups/Backups.backupdb
    Event store UUIDs don't match for volume: Macintosh HD
    Error: (-36) Applying backup protections to /Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/ABB10CF2-F041-4DE5-B6AE-3C228B59ADCC
    Error: (5) setxattr for key:com.apple.backupd.SnapshotStartDate path:/Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/ABB10CF2-F041-4DE5-B6AE-3C228B59ADCC size:17
    Error: (5) setxattr for key:com.apple.backupd.SnapshotState path:/Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/ABB10CF2-F041-4DE5-B6AE-3C228B59ADCC size:2
    Deep event scan at path:/ reason:must scan subdirs|new event db|
    Finished scan
    Found 145601 files (11.88 GB) needing backup
    16.1 GB required (including padding), 620.77 GB available
    Copied Zero KB of 11.88 GB, 0 of 145601 items
    Copied 0 files (Zero KB) from volume Macintosh HD.
    Copy stage failed with error:11
    Backup failed with error: 11
    Ejected Time Machine disk image: /Volumes/Tery Griffin's Time Capsule/Tery Griffin’s Computer (44).sparsebundle
    Ejected Time Machine network volume.
    Starting automatic backup
    Attempting to mount network destination URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Mounted network destination at mount point: /Volumes/Tery Griffin's Time Capsule using URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Disk image /Volumes/Tery Griffin's Time Capsule/Tery Griffin’s Computer (44).sparsebundle mounted at: /Volumes/Time Machine Backups
    Backing up to: /Volumes/Time Machine Backups/Backups.backupdb
    Event store UUIDs don't match for volume: Macintosh HD
    Error: (-36) Applying backup protections to /Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/9F8E7957-9C50-49C3-8314-880E5203E3D9
    Error: (5) setxattr for key:com.apple.backupd.SnapshotStartDate path:/Volumes/Time Machine Backups/
    Does anyone know what the problem is here and what I should do?
    Thanks,
    Tery

    You have repaired your boot drive (which is good) but have you repaired your time machine drive?  I don't own a Time Capsule so I don't know if disk utility can operate on it.  If it can, you should repair it as well.  You may need to erase it and start a new backup.  That happens to time machine volumes from time to time and is why people who are serious about their data never rely on a single source of backup.

  • Time Machine Error: "An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk."

    I have a MacBook Pro 2.8 GHz Intel Core 2 Duo with 4GB, 500GB HDD, running 10.8.2 My computer as been running slow and fearing my HDD might die. I bought a brand new 1TB G-Drive from Apple yesterday and started my back up. It gets to just over 22GB backed up then I get this error message:
    "An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk."
    Anyone out there who might be able to help me fix this?

    I have a MacBook Pro 2.8 GHz Intel Core 2 Duo with 4GB, 500GB HDD, running 10.8.2 My computer as been running slow and fearing my HDD might die. I bought a brand new 1TB G-Drive from Apple yesterday and started my back up. It gets to just over 22GB backed up then I get this error message:
    "An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk."
    Anyone out there who might be able to help me fix this?

  • HT3275 "The problem may be temporary. Try again later to back up. If the problem persists, use Disk Utility to repair your backup disk."

    The problem may be temporary. Try again later to back up. If the problem persists, use Disk Utility to repair your backup disk.
    what does this mean?? why can't i backup before i have to get my hard drive replaced?!!? arghh

    brahr3 wrote:
    I am getting the same error message: "The problem may be temporary. Try again later to back up. If the problem persists, use Disk Utility to repair your backup disk." I don't have a TC but rather an external drive, which is twice the size of my harddisc, and it still has plenty of free space. The problem has lasted for 5 days. I even used a different external drive -- still same error message. Needless to say that I have run Disc Utility several times. Can anybody help? Thanks
    I am having issues with some USB drives on Mountain Lion.. work perfectly on another computer with Snow Leopard.. not even recognised by ML.
    Is the disk recognised?
    If so and TM cannot pick it up.. do a full reset of TM and try again.
    A4 http://pondini.org/TM/Troubleshooting.html

  • Apple Mobile Device USB Driver is listed in device manager, but has a yellow  "!".  I try reinstall,disable,enable the drivers but the problem persist. Could you help me ?

    Hi
    I connect my ipad to my pc (Windows xp SP3) and I can see my ipad and photos in my computer. When I install the itunes 11 , after installation , I can't connect the ipad again or any other apple device. The Apple Mobile Device USB Driver is listed in device manager, but has a yellow  "!".
    I have try to reinstall the drivers from c:\progamfiles\common files\apple\... but the problem persist. Could you help anyone about this ?

    You need to completely uninstall iTunes from your computer and then download and install it again.
    You do know that Microsoft has a web site, right?

  • HT4061 i cant activate my iphone 5c because it has been locked with a different apple id. i dont know the original owner so i need help. its a second-hand phone that i bought some months back

    i cant activate my iphone 5c because it has been locked with a different apple id. i dont know the original owner so i need help. its a second-hand phone that i bought some months back

    Unfortunately, there is pretty much nothing you can do. Only the owner of the account used to lock it can remove the lock. If you can't contact whoever you purchased it from, or if they can't or won't remove the lock, then it's a brick. There is a very real chance that it's stolen.

Maybe you are looking for

  • Installing oracle 9.2.0 on redhat 7.3

    I have looked at several web tutorials and have download blackdown's 1.1.8 port of javaas per the instructions. However I still can't run the oracle 9.2.0 installer. It seems that the installer ignores my local java jdk and tries to install with its

  • Combo in a grid column

    Hi, I need to place a combo in a grid column but this code does not work... SAPbouiCOM.GridColumn grdc = this.grdRoom.Columns.Item("Id_CST"); grdc.Type = BoGridColumnType.gct_ComboBox;      SAPbouiCOM.ComboBoxColumn clmcbo = (SAPbouiCOM.ComboBoxColum

  • Path for Pictures,Logos stored in SAP Server ??

    Dear All,          I am Preparing a Z report for that I want to Import Logo.          I hv already stored the Logo in SAP Server with SMW0, but for downloading that logo 2 Excel Application I want the path (URL) where it is stored.         Can anyone

  • Mobile Scrolling

    So on every mobile site i have tested in Muse there is always ONE issue I face... It jumps... Whenever You scroll down on a mobile device it ALWAYS jumps. I don't have any "Magnetic Anchor" widgets, or Anchors for that matter! What's the issue?

  • R/3 To APO , customized material master data Transfer

    Hello All, i am having an issue , that we need to add two customized fields (PUP price and Std Price) in /SAPAPO/MAT1, Extra Tab. i have added these fields on screen and the output structure for them is assigned as /SAPAPO/MATIO-zverpr, and /SAPAPO/M