Activating A JComboBox used as a TableCellRender

In my table there are some columns where a cell can contain multiple rows, so I have created by own CellRenderer which subclasses JPanel and contains a JComboBox showing the first value. (I dont subclass JComboBox directly because there are other things I need to display in the renderer which I wont go into here )
This works fine but clicking on the combo drop down button doesnt do anything.
I think this is because the combo box isnt getting the click, its just going to the JPanel or the cell but I cant work how to get it. Could anyone help please ?

Remember that the whole idea behind the table cell renderer is that you are not actually putting the RenderComponent inside of the table cell, it is just painting what the component looks like in the cell... So there is to way to interact with that component, sinse it isn't really there.
The only way to give the illusion of this is use TableCellEditors. You can modify the TableCellEditors behavior to activate only on a single click if you want, you can even return the same
Component in the Editor as you do in the Renderer.
Does this help?
Josh Castagno
http://www.jdc-software.com

Similar Messages

  • I activated my ipad, used iCloud & Find my iphone with Apple ID named: A@.... But now I've changed address of Apple ID from A@... to the new one: B@... Which Apple ID will be asked to re-activate 7.0.4 ipad - A or B?

    Hello everybody!
    I'm using ipad mini and the iOS is 7.0.4. I used an Apple ID (called: A), and I activated my ipad, used iCloud & Find my iphone with this A account. But now I've changed address of Apple ID from A@.... to the new one: B@.... (just changed email address of Apple ID, not create a new ID), and then I signed out iCloud, old Apple ID, etc... on my ipad and signed in with new id B@.... Everythings seem OK, I can sign in/out iCould, turn on/turn off Find my iphone as well with the new one (B@...)
    But I still have a question (and still confusing with it): What will happend when I restored my ipad? I mean my iOS is 7, so which Apple ID will be asked to re-activate my ipad after I restore it, old id A@.... (this one cannot be used now) or the new one B@...., please?
    Thank you very much for your helpful informations!

    If you've succesfully changed the ID for iCloud and Find my phone, it will be your new ID you use if you need to restore it.

  • I have activated 2 iPhones using my iTunes account, but I now would like to take one iPhone off this account, and start its own iTunes "pairing" in order to back up, without cross syncing between purchases, how can I do this?

    I have activated 2 iPhones using ONE iTunes account, but I would now like to remove one iPhone from the account and add it to a new iTunes account. This is so that I can back it up without cross syncing between purchases/apps on both iPhones.
    Whats the best method for this?
    I'm running Windows 7
    Many thanks

    Whenever a menu choice is grayed out, that is because you have Restrictions turned on in Settings.  Be sure to turn it off.
    You are confusing an itunes store account with an icloud account.  You two can continue using the same ID for itunes (thus sharing purchased music, apps, etc.), but you really should have separate accounts (different IDs) for icloud, since an account is intended for one user to keep his/her devices in sync.
    To create a new icloud account, go to
    http://www.apple.com/icloud/setup/
    Then go to Settings>icloud and scroll to the bottom of the screen and tap Delete Account.  (have restrictions turned off)  That will disconnect the device from the account but will not delete data in icloud or other devices.  Then sign in using the new ID.

  • How do I turn off background ni file activity when not using Labview? files such as nimxs.exe, nipalsm.exe, nipalsm.exe, nisvcloc.exe, nicitdl5.exe

    How do I turn off background ni file activity when not using Labview? I use labview rarely, and I also use my computer for demanding multimedia applications, including multitrack digital audio recording. I need to reduce as much background activity as possible, and taking a look with task manager I see files such as nimxs.exe, nipalsm.exe, nipalsm.exe, nisvcloc.exe, and nicitdl5.exe running even when I haven't used Labview (8 I believe). These files run even after I right click the NI icon on the lower right and turn off the application. I would like the computer to boot up without these files, and for the necessary files to be activated only when I start the program.
    Can this be done or do I have to remove labview from the system to improve performance?
    Thanks

    Hello, those processes are part of running NI services that start when Windows boots.  These processes serve varied purposes and stopping them can have undefined and unknown consiquences for your NI products.  These products run at "normal" priority meaning that they should be preempted by any process running at a higher priority which I would expect your other application to be doing given their time sensitivity.  That being said, in Windows XP (I can't speak for other OSes), you can lower their priorities even greater through task manager (right click the process»set priority) to further remove them from contention for resources.  If you want to prevent them from running you can set the service startup type to "manual" in Control Panel»Administrative Tools»Services.  Right click the process go to Properties and Under the General tab choose Startup Type»Manual.  This will start up the processes only when something directly starts it up.  LabVIEW will start these processes up as it attempts to use them.  When you shut down LabVIEW you will need to manually shut down these processes through task manager.  Again, doing this can cause problems with your NI products on your system and it is not advised.
    Travis M
    LabVIEW R&D
    National Instruments

  • I recently inherited a restored iPhone 5 from my uncle and its needs a sim to be activated, could i use my friends sim just to activate my iPhone and then give the sim back once its activated without affecting his contract and later on get a sim ?

    I recently inherited a restored iPhone 5 from my uncle and its needs a sim to be activated, could i use my friends sim just to activate my iPhone and then give the sim back once its activated without affecting his contract and later on get a sim for myself and a contract for me and it all be normal??? Thanks

    The phone MUST have a SIM present in order for activation to complete. The process will not finish otherwise.
    For the OP:
    If the iPhone 5 is locked to a carrier, you must use a SIM from that same carrier. Otherwise I think you would be OK borrowing the SIM to activate the phone.
    ~Lyssa

  • VM Activation problem when using Internal Virtual Switch mode

    Hello,
    I have setup Windows 2012 R2 Standard Version host machine.  Hyper-V setup successful. Host machine already activate license.
    I have got a problem is when VM connecting with Internal virtual Switch.  It will not able to process Windows activation.  If it connected using External Virtual Switch, it can successful do windows activation.  However, using External Virtual
    Switch, one more WAN IP will be used.
    I am using ICS method to share the network interface to Internal Virtual Switch.
    Is it what problem and how to resolve it?
    Thanks!

    Hi Gyorgy,
    What is the version of your guest operating system? Why not we create an External Virtual switch to access Internet when using Hyper-V guest system? (Some reference if needed:Hyper-V Virtual Switch
    Overview )
    The network connection seems to be fine, if you mean the webpage can't be displayed through Internet Explorer, please take a look at the article below:
    "Internet Explorer cannot display the webpage" error
    For more information, please check:
    Fixing "Page cannot be displayed"
    Best regards
    Michael Shao
    TechNet Community Support

  • Active server implementation using jaas

    Active server implementation using jaas----------can someone suggest me how to go about it
    help needed immediately

    Have you programed your server? Can you communicate with me about the subject? My email is [email protected] QQ: 540028839

  • Can Active Directory be used with SmartView?

    Hi,
    I wanted to know if Active Directory be used with SmartView or is it essential to have Native Directory? We are using Active Directory for all user/group creation and Shared Services for provisioning. However, we are unable to provide access to SmartView using AD.
    We are seriously looking for a workaround here and I would appreciate any insight on the same. Please let me know how? This would be greatly helpful. Thanks.

    There is nothing special to get SmartView to authenticate with Active Directory.
    SmartView will be using Shared Services to authenticate. Shared Services must be configured to communicate with Active Directory and your user id's in Native Directory and Active Directory should be different. If for instance you had two user names that were the same, it will prefer one directory over the other depending on your configuration.
    Regards,
    -John

  • Why is my ipad show to need active while im using it

    why is my ipad show to need active while im using it

    See if this applies. https://discussions.apple.com/thread/4379073?tstart=0
     Cheers, Tom

  • I wish to purchase creative cloud for students, now i have two computers that i use actively, can i use cloud on both at the same price and download?

    I wish to purchase creative cloud for students, now i have two computers that i use actively, can i use cloud on both at the same price and download?

    Your subscription allows for you to install on two machines.  One condition is that only one of the installations can be in use at any given time.

  • Which activity shall i use to initiate a documentum workflow under ecm connector.

    which activity shall i use to initiate a documentum workflow under ecm connector.

    That's not something supported out of the box.

  • I'm using 3G3 16gb and just upgraded to 4.3.3. Tried activating bluetooth to use Personal Hotspot for my laptop. But the iphone keep searching for devices thou my laptop can detect the phone. Does anyone know how to solve this?

    I'm using 3G3 16gb and just upgraded to 4.3.3. Tried activating bluetooth to use Personal Hotspot for my laptop. But the iphone keep searching for devices thou my laptop can detect the phone. Does anyone know how to solve this?

    Hi NWL1,
    Thanks for the question. If I understand correctly, the iPhone won't update and is stuck. I would recommend that you read this article, it may be able to help you resolve or isolate the issue.
    If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
    Thanks for using Apple Support Communities.
    Have a great day,
    Mario

  • How activation Iphone5.Purchased used from an Iranian person and I'm from Iraq, I could not activate it because of the expense of Old Icloud possible assistance

    how activation Iphone5.Purchased used from an Iranian person and I'm from Iraq, I could not activate it because of the expense of Old Icloud possible assistance

    If the iPhone has Activation Lock - that is, it's asking for the previous owner's Apple ID and password to activate the device - then you will need that information, or you'll need to get the previous owner to remove the device from his/her iCloud account:
    http://support.apple.com/kb/PH2702
    If you can't reach the previous owner or he/she is unwilling to cooperate, then the device is unusable by you. Return the iPhone for a refund if you can.
    Regards.

  • How do I get info from Active Directory and use it in my web-applications?

    I borrowed a nice piece of code for JNDI hits against Active Directory from this website: http://www.sbfsbo.com/mike/JndiTutorial/
    I have altered it and am trying to use it to retrieve info from our Active Directory Server.
    I altered it to point to my domain, and I want to retrieve a person's full name(CN), e-mail address and their work location.
    I've looked at lots of examples, I've tried lots of things, but I'm really missing something. I'm new to Java, new to JNDI, new to LDAP, new to AD and new to Tomcat. Any help would be so appreciated.
    Thanks,
    To show you the code, and the error message, I've changed the actual names I used for connection.
    What am I not coding right? I get an error message like this:
    javax.naming.NameNotFoundException[LDAP error code 32 - 0000208D: nameErr DSID:03101c9 problem 2001 (no Object), data 0,best match of DC=mycomp, DC=isd, remaining name dc=mycomp, dc=isd
    [code]
    import java.util.Hashtable;
    import java.util.Enumeration;
    import javax.naming.*;
    import javax.naming.directory.*;
    public class JNDISearch2 {
    // initial context implementation
    public static String INITCTX = "com.sun.jndi.ldap.LdapCtxFactory";
    public static String MY_HOST = "ldap://99.999.9.9:389/dc=mycomp,dc=isd";
    public static String MGR_DN = "CN=connectionID,OU=CO,dc=mycomp,dc=isd";
    public static String MGR_PW = "connectionPassword";
    public static String MY_SEARCHBASE = "dc=mycomp,dc=isd";
    public static String MY_FILTER =
    "(&(objectClass=user)(sAMAccountName=usersignonname))";
    // Specify which attributes we are looking for
    public static String MY_ATTRS[] =
    { "cn", "telephoneNumber", "postalAddress", "mail" };
    public static void main(String args[]) {
    try { //----------------------------------------------------------        
    // Binding
    // Hashtable for environmental information
    Hashtable env = new Hashtable();
    // Specify which class to use for our JNDI Provider
    env.put(Context.INITIAL_CONTEXT_FACTORY, INITCTX);
    // Specify the host and port to use for directory service
    env.put(Context.PROVIDER_URL, MY_HOST);
    // Security Information
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.SECURITY_PRINCIPAL, MGR_DN);
    env.put(Context.SECURITY_CREDENTIALS, MGR_PW);
    // Get a reference toa directory context
    DirContext ctx = new InitialDirContext(env);
    // Begin search
    // Specify the scope of the search
    SearchControls constraints = new SearchControls();
    constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
    // Perform the actual search
    // We give it a searchbase, a filter and the constraints
    // containing the scope of the search
    NamingEnumeration results = ctx.search(MY_SEARCHBASE, MY_FILTER, constraints);
    // Now step through the search results
    while (results != null && results.hasMore()) {
    SearchResult sr = (SearchResult) results.next();
    String dn = sr.getName() + ", " + MY_SEARCHBASE;
    System.out.println("Distinguished Name is " + dn);
    // Code for displaying attribute list
    Attributes ar = ctx.getAttributes(dn, MY_ATTRS);
    if (ar == null)
    // Has no attributes
    System.out.println("Entry " + dn);
    System.out.println(" has none of the specified attributes\n");
    else // Has some attributes
    // Determine the attributes in this record.
    for (int i = 0; i < MY_ATTRS.length; i++) {
    Attribute attr = ar.get(MY_ATTRS);
    if (attr != null) {
    System.out.println(MY_ATTRS[i] + ":");
    // Gather all values for the specified attribute.
    for (Enumeration vals = attr.getAll(); vals.hasMoreElements();) {
    System.out.println("\t" + vals.nextElement());
    // System.out.println ("\n");
    // End search
    } // end try
    catch (Exception e) {
    e.printStackTrace();
    System.exit(1);
    My JNDIRealm in Tomcat which actually does the initial authentication looks like this:(again, for security purposes, I've changed the access names and passwords, etc.)
    <Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
    connectionURL="ldap://99.999.9.9:389"
    connectionName="CN=connectionId,OU=CO,dc=mycomp,dc=isd"
    connectionPassword="connectionPassword"
    referrals="follow"
    userBase="dc=mycomp,dc=isd"
    userSearch="(&(sAMAccountName={0})(objectClass=user))"
    userSubtree="true"
    roleBase="dc=mycomp, dc=isd"
    roleSearch="(uniqueMember={0})"
    rolename="cn"
    />
    I'd be so grateful for any help.
    Any suggestions about using the data from Active directory in web-application.
    Thanks.
    R.Vaughn

    By this time you probably have already solved this, but I think the problem is that the Search Base is relative to the attachment point specified with the PROVIDER_URL. Since you already specified "DC=mycomp,DC=isd" in that location, you merely want to set the search base to "". The error message is trying to tell you that it could only find half of the "DC=mycomp, DC=isd, DC=mycomp, DC=isd" that you specified for the search base.
    Hope that helps someone.
    Ken Gartner
    Quadrasis, Inc (We Unify Security, www -dot- quadrasis -dot- com)

  • Error in Automated activity of BPM using the PI operation mapping.

    Dear Experts,
    We have a BPM process, where we have imported Operation Mapping, to use it in an automated activity. We have created the service reference with localhost and checked the local provider system check box and with type WS.
    While running the scenario the process stops at the automated activity (having the Operation mapping), with error:
    A technical error during invocation: Could not invoke service reference name
    I have tried to recreate the step couple of times but it is always the same error.
    Could you please share your expertise in how to over come the error.
    Thank you,
    Best Regards,
    Ajay

    Hi Ganesh,
    Thanks for your response.
    SOAP and Mail scenario are also using the same inbound proxy structure , and the proxy is working fine in both cases.
    For FTP scenario we are reusing the same inbound proxy but we are facing error .
    SAP is getting
    "XML to ABAP Conversion error with error id as "CX_ST_MATCH_ELEMENT " System expected the element 'Namespace of the inbound service interface' .
    Please guide.
    Thanks,
    Ruchi

Maybe you are looking for

  • Dynamic where clause in my query

    I am using a view select * from vw_pt_inv_customer My requirement is have a web page where users can search for customers by filling in a form which has the following feilds: - User can fill in the form with all the feilds or not. I want a dynamic wh

  • SWF placing in web pages?

    Hi guys, this is one for those familiar with web building. I have a page here: (note this page does not contain the alternate content described below as the page is 'live' and it dosent display swf's properly as explained below. this is to show the l

  • Extractor for notification of type 'general'

    Hi, I know the extractors for notifications of type quality, plant maintenance and service - e.g. for qm notification item : 2lis_05_q0item. But does anyone know some data sources to extract notifications of type 'general'? They are stored in the tab

  • Ahh Internal Speakers Not Working

    Usually I will plug speakers in, via the port on the laptop. But now for some reason when I take out the plug it won't let me play anything with the built in speakers. I tried adjusting the volume. It looks like its locked up or something the headpho

  • Camera flash of iphone 4s not working

    Camera flash of iphone is not working can not take a picture with flash?? Please suggest a solution.