How to redraw this jcombobox !!! Urgent

Hi guys, here this is a dare ! I need to do this work : i should redraw o jcombobox with this requisites:
1) When there's one or less than one object inside the combobox, this should not show (renderer) the triangle button and this should not show option when clicked
2) When there's more than one object inside the combo, this should show the triangle button e should be editable, so, it have to show the options.
Thanks for help !

I think that JComboBox cannot hide it's expand button...
if you want a quick solution, replace the JComboBox with something else (like JTextField) when there's one or less tems to be displayed...
it's a workaround, but it works

Similar Messages

  • How to solve this problem - Urgent

    Hi All,
      I have a BDC program that will call transaction "MB1B" using CALL TRANSACTION to post a material document for a reservation. Then immediately after that the program calls another transaction "LT12" which will confirm the TR.
      The problem is when the material document is posted (MB1B) the number is reflected in MKPF/MSEG. The same MSEG has the LGNUM-Warehouse Number / Warehouse Complex, TBNUM-Transfer Requirement Number which is generated when a material document is created. I use these field values to get the TO(transfer out) from LTBP and LTAP. But the records are not found in these tables.
      I have identified that the numbers are not generated in such a way that the read on those tables LTBP and LTAP is immediate.
      If i put a break point before the selects on LTBP and LTAP and make the sytem to wait for some time it works properly. But i can't predict the wait time.
      How can i solve this problem?. I have aslo tried posting the material document using BAPI_GOODSMVMT_CREATE.
    Thakx in advance,
    arul jothi

    HI Arul, Here is the help document on Local Updates.
    In a local update, the update program is run by the same work process that processed the request. The dialog user has to wait for the update to finish before entering further data. This kind of update is useful when you want to reduce the amount of access to the database. The disadvantage of local updates is their parallel nature. The updates can be processed by many different work processes, unlike asynchronous or synchronous update, where the update is serialized due to the fact that there are fewer update work processes (and maybe only one).
    You switch to local update using the ABAP statement SET UPDATE TASK LOCAL. This statement sets a "local update switch". When it is set, the system interprets CALL FUNCTION IN UPDATE TASK as a request for local update. The update is processed in the same work process as the dialog step containing the COMMIT WORK. The transaction waits for the update to finish before continuing.
    As an example, suppose you have a program that uses asynchronous update that you normally run in dialog mode. However, this time you want to run it in the background. Since the system response time is irrelevant when you are running the program in the background, and you only want the program to continue processing when the update has actually finished, you can set the SET UPDATE TASK LOCAL switch in the program. You can then use a system variable to check at runtime whether the program is currently running in the background.
    By default, the local update switch is not set, and it is reset after each COMMIT WORK or ROLLBACK WORK. You therefore need to include a SET UPDATE TASK LOCAL statement at the beginning of each SAP LUW.
    If you reset data within the local update, the ROLLBACK WORK statement applies to both the dialog and the update part of the transaction, since no new SAP LUW is started for the update.
    Regards,
    Ravi

  • How to write this application - URGENT PLEASE HELP

    I would like to write a program for a supermarket loyalty card system. The program should have 2 customers and 2 gifts on offer. The customer details and the gift details can be hard coded.
    When the program starts the user should be shown a menu which will have options to
    view all customer details
    add points for a customer
    buy a gift
    When the user chooses to buy a gift ro to add points, any changes made to the customers' points must be done using methods. Adding or buying gifts should be done using customer id's and gift id's.
    The user must be able to see the altered points.
    I WILL APPRECIATE IF I COULD GET HELP EVEN FOR PSEUDOCODE.

    Not as much as this guy tho http://forum.java.sun.com/thread.jsp?forum=31&thread=486327&tstart=150&trange=15

  • My fonts are changing in iWed after I publish. I need step by step instructions on how to go to my third party server and clear out all of my files and reload my whole website, the solution I saw posted by another. Please someone help me on this. Urgent

    My fonts are changing in iWed after I publish. I need step by step instructions on how to go to my third party server and clear out all of my files and reload my whole website, the solution I saw posted by another. Please someone help me on this. Urgent

    If your fonts are changing when viewed on other computers - epecially those running windows - you need to look at using web-safe fonts...
    http://www.iwebformusicians.com/iWeb/Fonts-Colors.html
    Also make sure you clear your browser cache before viewing you published files.

  • Hello, i am having problems with itunes store. it wont connect almost as if its hanging, any ideas how to fix this problem

    hello, i am having problems with itunes store. it wont connect almost as if its hanging, any ideas how to fix this problem

    BOB we need you urgently
    Perhaps Bob will see this thread, he is the professor in these cases.
    You do not use a WEP password but wpa/wpa2 on router and equipment.
    All equipment connects to WiFi, but for your iPad.
    Even with all other equipment WiFi off, you cannot connect your iPad.
    Your iPad connects to other WiFi nets correctly.
    All resets etc done on iPad and Router.
    Still I am not sure it is your router for sure, frustrating...
    I want to test 2 other things:
    1. in your iPad, set everything OFF in Settings/Cellular, turn off/then/on your WiFi, and see whether it will still not connect...
    2. If that does not do it: disconnect the router as well as the modem from the power, for 15 seconds, then reconnect the modem, let it fully start, then reconnect the routet let it fully start, turn of your WiFi in iPad, then on, and see whether it will connect.

  • T61p with Windows XP - how to change this from 32 bit to 64 bit?

    I am in urgent need to have my T61p converted from 32 bit to 64 bit. I am currently using windows xp professional 2002 sp2. Would someone let me know how to do this? Thanks a million. Carlee

    Hi there,
    Well, if you have Windows XP 64, then it's a matter of making a choice of running both side-by-side or dumping one for the other. If you don't have 64-bit, then you'll need to procure yourself the 64-bit version of the OS. It's not a matter of simply "activating" something, or installing a patch of some sort.
    The 64-bit version uses a different set of core files that are incompatible with the 32-bit XP altogether, it's not a simple upgrade as all the drivers will require re-installation as well (applies not only to the OS, but to all peripherals that you have as well).
    Hope this helps

  • I have purchased dsa theory on App Store used it a few days now it opens with a black screen, please can someone tell me how to resolve this thanks

    I have purchased an app from the store used it for a few days , now it won't open properly .its just a black screen with a circle in bottom right corner with a 1x in it . Anyone know how I can re open this please as I need this app urgent thanks

    From the home screen, double click the home button to bring up the Recently used App list. Find the App with the problem and hold your finger on it untl the Apps start to shake. When that happens tap on the (x) on the right side corner of the app to close it.
    Tap the home button again to get back to the home screen, and try to open the App again.
    If that doesn't work, try resetting the iPad. (there should be no data loss):
    Press and Hold the Power and home buttons until the Apple Logo shows up. Ignore any sliders that may appear.
    When the iPad turns back on, try opening the App again.

  • 'Limit exceeds'. How to correct this problem?

    I am running sun one directory server 5.1 trial version. I have 20000 users and have created browsing index. The return size limit is 50000. I access the LDAP server using JNDI API. I get 'LimitExceeded' exception. Any ideas on how to correct this problem? This is very urgent as this is the setup our potential customer is running on and it has become a stopper for them.
    Thank you,
    Meghana

    Yes I tried the return size limit set to '-1' but it did not help. The search comes back with the exception instantaneously. Doesn't even look like it is trying to find something.
    Please send any suggestion you may have.
    Thanks,
    Meghana.

  • How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version

    How to add the clearing document no. & payment method in FBL3 tcode. Can any one explain me step by step process how to add that two fields. This is ABAP 3.1 version. It's urgent requirement.
    Moderator Message: Duplicate thread locked. Please carry on with this thread: How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version
    Message was edited by: Suhas Saha

    Did you read the note provided in How to add this two fields AUGBL & ZLSCH in FBL3 in abap 3.1 version ?
    Regards,
    Raymond

  • How to solve this &(amberstand of lessthanand &(amberstand of greaterthan

    hi,
    i have below block,
    DECLARE
    doc dbms_xmldom.DOMDocument;
    node dbms_xmldom.DOMNode;
    elem dbms_xmldom.DOMElement;
    cur_node dbms_xmldom.DOMNode;
    root_elem_data dbms_xmldom.DOMElement;
    root_elem_tab dbms_xmldom.DOMElement;
    root_node_data dbms_xmldom.DOMNode;
    mode_elmn dbms_xmldom.DOMElement;
    mode_node dbms_xmldom.DOMNode;
    mode_text dbms_xmldom.DOMText;
    V_CLOB CLOB;
    v_doc CLOB;
    v_EMP CLOB;
    v_output_filename VARCHAR2(300) := 'SPOOL_DIR/'||'EMP_XML_FILE.xml';
    BEGIN
    doc := dbms_xmldom.newDOMDocument;
    node := dbms_xmldom.makeNode(doc);
    dbms_xmldom.setversion(doc, '1.0');
    dbms_xmldom.setCharset(doc, 'UTF8');
    elem := dbms_xmldom.createElement(doc, 'PartnerInfo');
    dbms_xmldom.setAttribute(elem,'xmlns','EMP');
    cur_node := dbms_xmldom.appendChild(node, dbms_xmldom.makeNode(elem));
    mode_elmn := dbms_xmldom.createElement(doc, 'EMPLOYEE');
    mode_node := dbms_xmldom.appendChild(cur_node,dbms_xmldom.makeNode(mode_elmn));
    BEGIN
    SELECT value(e).getClobVal() INTO V_CLOB
    FROM TABLE(XMLSequence(Cursor(SELECT * FROM EMP1 where EMPNO=7501))) e;
    Dbms_Output.Put_Line('THE OUTPUT IS::'||V_CLOB);
    mode_text := dbms_xmldom.createTextNode(doc,V_CLOB);
    mode_node := dbms_xmldom.appendChild(mode_node,dbms_xmldom.makeNode(mode_text));
    EXCEPTION
    WHEN OTHERS THEN
    Dbms_Output.Put_Line('Error in SELECT stmt(UC_PARTNER_MS):::'||'error::'||SQLERRM);
    END;
    dbms_lob.createtemporary(v_doc, true);
    dbms_xmldom.writeToClob(doc,v_doc,'UTF8');
    v_EMP:= v_doc;
    dbms_xmldom.writeToFile(DOC,v_output_filename,'UTF8');
    dbms_xmldom.freeDocument(doc);
    --Dbms_Output.Put_Line('THE OUTPUT IS::'||V_EMP);
    EXCEPTION
    WHEN OTHERS THEN
    Dbms_Output.Put_Line('Error in SELECT stmt(UC_PARTNER_MS):::'||'error::'||SQLERRM);
    END;
    The xml file is 'EMP_XML_FILE.xml'
    <empno>U++kYmcVuGchxbh+++++++++++++++1+</empno>
    <empname>J</empname>
    how to solve this <(amberstand of lessthan and >(amberstand of lgreaterthan) instead of > and <
    i am trying to write xml in spoo_dir directory.when i am open in notepad or any other editor its showing amberstand of lt and amberstand of gt instead of > and >.But its open in internet explorer it showing correctly.i don't know whats problem in xml file.i am using below mentioned statement.
    v_emp is clob with out parameter
    dbms_lob.createtemporary(v_doc, true);
    dbms_xmldom.writeToClob(doc,v_doc,'UTF8');
    v_emp:= v_doc;
    query using
    SELECT value(e).getClobVal() INTO V_CLOB
    FROM TABLE(XMLSequence(Cursor(SELECT * FROM EMP1 where EMPNO=7501))) e;
    can u please give solution for this problem.its urgent please.
    by
    siva

    Continued discussion previously started at {message:id=3961457}

  • How to do this issue with user-exit or badi

    in migo transaction, after entering some purchase order number. go for item details.
    In that in quantity tab, Qty in unit of entry field value should be empty when the purchase order number is entered. how to do this?
    plz let me know as soon as possible.
    it is urgent requiement .
    points will be awarded.
    thanking u in advance,
    A.srinivas.

    Hi Arthur,
    Try this code ( i had changed only one line of code in your original code)
    Set oGoodIssue = oCompanyDI.GetBusinessObject(oInventoryGenExit)
    oGoodIssue.DocDate = "12/14/2007"
    oGoodIssue.Lines.itemCode = "SR-5155"
    oGoodIssue.Lines.WarehouseCode = "R5155KGS"
    oGoodIssue.Lines.SerialNumbers.Add
    oGoodIssue.Lines.SerialNumbers.SystemSerialNumber = CStr(1)
    oGoodIssue.Lines.SerialNumbers.ManufacturerSerialNumber = "SR-0000001"
    oGoodIssue.Lines.SerialNumbers.InternalSerialNumber = "SR-0000001"
    oGoodIssue.Lines.SerialNumbers.SetCurrentLine 0
    retval = oGoodIssue.Add
    If retval 0 Then
    oCompanyDI.GetLastError errMsg, errMsg2
    sbo_application.messageBox errMsg & " (" & errMsg & ")"
    Else
    sbo_application.messageBox "Success"
    End If
    Hope it helps you
    Regards
    Vishnu

  • Ive lost my apple ID for my ipod, now i have an iphone and i want to use the same apple ID for both can someone tell me how to do this

    I have lost my apple ID for my ipod, now ive got a new iphone and i want to use the same ID for both, can anyone one tell me how to do this? ( i no my ID for the iphone)

    Just use the same ID.
    These may alos help:
    How to use multiple iPods, iPads, or iPhones with one computer
    What is the best way to manage multiple...: Apple Support Communities

  • I locked myself out of my ipod touch for 60 mins then actually typed the wrong password in again.  Now it is telling me to "connect to itunes".  I am unsure how to do this.  I am unable to use my ipod at all now. Please help.

    Hi,
    Due to my brother locking me out of my ipod touch I had to wait an hour to log in again.  Unfortunately when I did this, I, again put in the wrong password twice more, each time locking me out for a further 60 minutes.  On my 3rd attempt to log in the wrong password was entered again.  This time though instead of logging me out for another 60mins it now tells me to "connect to itunes" but I have no idea how to do this and I am now unable to use my ipod.  Please help.

    See Here  >  http://support.apple.com/kb/HT1212

  • I recieve SMS and i hear established melody and I do't hear the person on all over SMS. How to solve this problem?

    Problem with an incoming message. For example, during my conversation the second line receives a call, I hear the sound in dynamics such as "piiiip piiiip," but when in this situation I recieve SMS and i hear established melody and I do't hear the person on all over SMS. How to solve this problem? Perhaps someone tell me? save in advance

    Not Charge
    - See:     
    iPod touch: Hardware troubleshooting
    iPhone and iPod touch: Charging the battery
    - Try another cable. The cable for 5G iPod (lightning connector) seems to be more prone to failure than the older cable.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar

  • Recently loaded Lion on my laptop and now my computer crashes often. Black screen and keyboard lights up. Any ideas on what's wrong and how to fix this?

    Recently loaded Lion on my laptop and now my computer crashes often. Black screen and keyboard lights up. Any ideas on what's wrong and how to fix this?

    Everytime this happens Ihave to power down and restart! Any ideas would be appreciated!

Maybe you are looking for

  • Add Jcombo in Jtable at run time

    hello, i want to add jcombo box in jtable every cell & i also add column in run time.proble is when i add new column that time last column combo is add but prievious column its remove automatic. so give me some code & where i can get see good example

  • New itouch does not register with itunes 7.4 on Windows XP

    I hook my itouch up to the computer and it only registers to my Windows XP as a camera, asking if i want to put pictures on it. Is there any way I can get my new itouch to work on this version of itunes on this computer?

  • CD/DVD printers no longer made?

    I was looking through the current product lines but didn't really see any that would print directly onto CD or DVD's like in the past.  About a year or so there used to be a couple models but I never had the money even though the cheaper one was only

  • Problems with Text&Catalog search Wizards for JDeveloperStudio10131

    Hi, <?xml version='1.0' encoding='windows-1252'?> <extensions xmlns="http://xmlns.oracle.com/jdeveloper/905/extensions"> <feature> <group name="Text Search Extensions"> <group name="Text Wizard"> <description>Text Search Wizard</description> <extensi

  • How do I get past the empty blue screen?

    I keep getting the empty blue screen. I have tried starting up in Safe Mode only to wind up with the same blue screen. Tried starting up with iMac install disc only to wind up with the same blue screen. Additionally it has decided to keep the disc. T