How to change the visible item of JCombobox

hi,
i have created a JCombobox having items A, B, C, D and E. The item that is visible on the combobox (without performing any mouse action over it) is A. i have a button "Change to Default" in the same frame. If I click on this button B should become the visible content of ComboBox in place of A. Could anyone suggest me how to do it.
Thank you very much...

Well, you could start by reading the documentation for JComboBox: http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JComboBox.html
There you will find setSelectedIndex and setSelectedItem. Either of those will do it for you.

Similar Messages

  • How to change the line item storage location during the sales order creatio

    How to change the line item storage location during the sales order creatio

    Hi Kumar,
    I think you can just delete it in the sales order directly, if you are using make-to-order scenario, then there will be special stock left for the sales order as the production has been goods receipt, you need to use MM transaction move the stock to unrestricted use stock. If you are using make-to-stock scenario, there should be no further problem. If you are using assembly order, please try to reject the sales order item to see if it could fullfill your requirement.
    Regards,
    Rachel

  • How to change the visible length in screen painter?

    Hi Guys,
    we have field in screen which is type to ATWRT but the visible length is set to 11. ATWRT is 30 char.
    Please advise on How to change the visible length in screen painter to make it 30?
    When I try to edit the defined length from 11 to 30. It wont allow me to.
    Thanks a lot!

    Hi,
    Try the below method:
    Goto Screen Painter -> Double click on Input-Output field for ATWRT another screen will appear with attributes of Input Output field -> Increase the Visible length Value there. (Option of visible length is below the Name and Text attribut of Attribute windiw.)
    If the Visible length field isn't allowing change then declare it as a Char type instead of taking the DataType for Data Dictionary.
    Thanks,
    Preyansh
    Edited by: DWIVEDP on Mar 29, 2010 12:42 PM

  • How to change the particular item size?

    Hello,
    I need to change the particular item(pathitem,grapitem) size(width and height) in the illustrator cs3 file via SDK. Is it possible kindly advice me.
    Thanks for looking into this...

    That's a pretty general question. If its a path, the functionality you need is in the AIPath.h header; if its something else you need the correct suite to deal with it. I'd start by playing around with the SDK's examples -- they have something solid code that shows how you modify paths & other basic a Illustrator art types. If you run into trouble come back with a more specific question -- asking how you modify art in general is simply to broad a topic.

  • How to Change the Visible names in JDBC IView ?

    While Creating a JDBC View, in one of the steps we select the column names from a schema which we want to view in a IView.While doing so in the next step there is a text field called <b>visible names</b> which is editable to change the column names.How to change the Column aliases or visibles names as is it not getting saved when we move onto the next screen ?.How to Configure the Visible Column names while configuring a JDBC IView ?.
    Can anybody please help me !.

    Hi Abhilash
    If I'm not wrong I saw something about this here (SDN), in a technical article about how to create a JDBC iView . I tried to get the link to the article but it seems there's a problem with the site, sorry...
    By the way, I had the same problem, and according to the   article this was not possible in the version EP6 SP2 but there was a plan to implement this in newer versions. I tried also to use a SQL command with the column names I wish to display but it didn't work either.
    Try to find this article in the EP Technical Article to confirm this info, ok ?
    Rgds,
    Fernando

  • How to change the committment item for GL acct in PO

    Hello Gurus,
    After the PO created, User wants to change the commitment item  for GL acct 330118 temporarily from 330001 to 330000 due to budget constraint. However after budget has been topped up, we are unable to change back to the correct no. Even we have modified the Asset Master and GL masters also. But in PO we are not able to change the commitment item.
    Kindly help to solve this issue.

    >
    Joseph Paulraj wrote:
    > Hi Murthy,
    >  For Account Type A ( Asset) - GL account is set as optional entry in account assignment ,
    >  For Account Type K (Cost Center) - GL account is set as Mandatory entry. but for both types, we were not able to change the Commitment item.
    > Kindly suggest me, what should i do.
    Hi,
    For both Account types A and K,change the Commitment item to Optional entry,then try.
    Regards

  • How to change the particular item size via script?

    Hello,
    I need to change the particular item(pathitem,grapitem) size(width and height) in the illustrator cs3 file through script. Is it possible kindly advice me.
    Thanks for looking into this...

    I changed the widh and height of the selected items. While converting stroke weight of the selected item also changed. But i need to change the width and height of the selected items without any modification in the stroke weight(scale strokes and effects). Could you please advice me the possiblilities and solution via scripting.
    Thanks for looking into this..

  • How to change the menu item text

    Hi,
    in cj20n transaction, for one of menu item i have to change the text of the item. How can i change the text.
    Regards,
    Ram

    HI,
    First try to find the exists available for that transaction and find menu exit in that exist. Once you find the exits create project in tcode cmod then go to that menu exit.
    Just double click on that exit, it will show the existing text, if you want to change the text then click on change mode, it will asks for package, you have to provide package then give the text whatever you want and save it and activate it.
    The new text will be available in your transaction.
    Regards,
    Venu

  • How to change the current item background color

    I m working in forms 6.0.
    I want to mak the background color of the current item (whatsoever the item name is ) as 'yellow'. How can i do that.How can i accoplish that? I've tried
    set_item_property(:system.cursor_item,background_color,'yellow');
    in Pre_text_item
    set_item_property(:system.cursor_item,background_color,'white');
    in post_item_item
    at block level
    But i failed to do that
    anyone to help me plz
    Riaz Shahid

    hi riaz,
    i think instead of pre-text-item put the code in when new item instance.or try creating a visual attribute with background color as yellow and attach that using set_item_property in when new item instance or check for help on DISPLAY_ITEM built in in forms help.I think one of these should definitely help u.
    bye
    Atul

  • How to change the menu item's title in different language master page?

    I have a menu item in my English master page. I can change the titles of the menu items as I like in English related pages, However when I change the titles in the same pages that is related to different language page master, the changes does not take affect. Please  help. 

    you can use different CSS classes given in http://www.oracle.com/technology/tech/blaf/specs/textStandards.html
    --Prasanna                                                                                                                                                                                                                                                       

  • How to Change the Visible property of Adobe Form Dynamically - URGENT

    Hi,
        I am woking on a scenario where when I click a button in Adobe Form,
    another Adobe Form should be displayed. This is using Web Dynpro Java.
    For this I have made the second form invisible and I want to make this VISIBLE when the button is Clicked. I am unable to get a method where this property of interactive form can be changed.
    Also, If there is any other way this can be done please let me know.
    I am using NWDS 7.0.09 with Adobe Live cycle designer 7.1.
    Thanks in Advance,
    Vasu

    You need to get the handler to the adobe form in your webdynpro program. If you are using webdynpro for java the following code snipped could be useful...
    IWDPDFDocumentInteractiveFormHandler iFormHandler = WDPDFDocumentFactory.getDocumentHandler(wdThis.wdGetAPI(),"YourAdobeForm");
         // Get appearance setter. 
         IWDPDFDocumentAppearance appearance =
              iFormHandler.getDocumentContext().getAppearance();
         //appearance.
         // Set page layout option
         appearance.setPageLayout(pageLayoutOption);
         // Set show option.
         appearance.setShowOption(showOption);    
         // Hide menu bar.
         appearance.hideMenuBar(true); 
         // Hide tool bars.
         appearance.hideToolBars(true);
         // Hide window controls.
         appearance.hideWindowControl(true); 
         // Show full screen.   
         appearance.showFullScreen(true);
    Reward points if the post is helpful
    Thanks!
    Surya.

  • Change the default 'Item not found' Page

    Anyone know how to change the standard 'Item not found' in KM? I would like to change it to something a bit less technical. I am assuming that it is stored in the repository somewhere.. but where?

    No,
    it's currently not possible to change that page.
    Best regards, Julian

  • How to change the url of "Add New Item" of a particular list in SharePoint 2013???

    Hi Guys,
    How to change the url of "Add New Item" of a particular list in SharePoint 2013???
    I need to redirect it into the page where I have created my Visual web part.
    Please suggest
    Warm Regards,
    Tony Joy

    Hi,
         There are multiple ways to change the form url like javascript, SharePoint designer, custom code, editing default form to have custom web part etc, Please follow the url below that describe diffent methods and steps
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/ec2769a0-683c-4023-8804-b596e4f92a3a/change-default-forms-on-custom-list?forum=sharepointcustomizationlegacy
    Hope it helps!!!
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. Thanks, Ajeet

  • How to change the "name of column" property of an text item in runtime?

    How to change the "name of column" property of an text item in runtime?
    I look the properties of items in help and found nothing about this!
    It's possible?

    Hi,
    an other solution is change the block property QUERY_DATA_SOURCE_TYPE from "Table" to "Sub-query" , than change at run time the property QUERY_DATA_SOURCE_NAME.
    First create block and add items
    The QUERY_DATA_SOURCE_NAME will be for ex. "Select 'A' as col1, 'B' AS col2, 'C' as col3 from dual"
    Set into items the column name property to col1 , col2 ...
    At run time change the query to "Select 'Z' as col1, 'X' as col2 , 'Y' as col3 from dual"
    in this way you can change the source of column value.
    Caution because if you change value type from varchar2 to date you must cast date into varchar2.
    May be that this way is valid only for view data not for insert-update, i don't remember.
    bye
    Message was edited by:
    Killernero

  • How to change the components in a visible JPanel?

    How to change the components in a visible JPanel?
    Is there any way to change the components in a JPanel while it is already visible in a JFrame? I tried the na�ve approach of removing the components and adding new ones, but the effect is not the expected.
    For now I'm opening new frames with newly created panels.

    After adding/removing components to/from a panel try:
    panel.revalidate();
    panel.repaint() // sometimes this is also needed, I'm
    not sure whyI'm not certain, but I think that panel.revalidate() implicitly calls repaint() only if something actually changed in the layout. If nothing changed, it sees no reason to repaint; hence, if something changed in appearance but not in layout, you have to repaint it yourself.
    Or something like that. I'm no expert. ;)

Maybe you are looking for

  • I can't sync music to my iDevice without it removing what is already on it

    I have recently gotten a new computer, because my old one broke and we did not find the want to fix it just so it would break again (it was unreliable), and so now that I have new music on this computer that I would like to sync to my iPod and my iPh

  • Drag and Drop with multiple targets

    I'm having a problem find a solution to my drag and drop problem.  Here is what this flash piece is basically supposed to do: 9 dragable items on the stage 5 targets, numbers 1 - 5, where the items can be placed 5 of the 9 dragable items are the corr

  • The status of ORASSO.WWSSO_LS_PRIVATE is invalid

    Hi all, the status of orasso.wwsso_ls_private is invalid. The user can't logout from portal. When I click on Logout-link the get the error: Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance do

  • Xen/KVM/other - which solution for Linux virtualization

    Hello, we are intensively using Solaris 10 virtualization called Solaris zones. It is so secure (in terms of separation), easy to use and has so little overhead that our DBAs doesn't want to install our RDBMS-es out of zones. But we are going to depl

  • Why is my cropped photo out of focus

    I started with a large jpg, 4.6 M. Fully enlarged in the iPhoto window the photo was in sharp focus. I cropped just the face, but the resulting photo was out of focus. I can't figure out why.