How to Give MouseEvents for JTabbedPane??

Hi All,
I have some 10 tabs in a single JTabbedPane,So if i want to enlight the tab like when i just take my mouse cursor onto any tab it should have some effect/color changing,it should be higlighted in a different way compared to the other tabs.How can i implement this mechanism???
Thanks in advance.
regards,
Viswanadh

UIManager.put("TabbedPane.selected", Color.YELLOW );This will, however, affect all tabbed panes in your application.

Similar Messages

  • How to give comments for a particular table

    hi..
    how to give comments for a particular table ..
    select * from user_tab_comments;
    tx in advance..

    Try this.
    SQL> COMMENT ON TABLE EMP IS 'THIS IS SAMPLE EMPLOYEE TABLE' ;
    Comment created.
    SQL> select * from user_tab_comments where table_name = 'EMP'
      2  /
    TABLE_NAME                     TABLE_TYPE
    COMMENTS
    EMP                            TABLE
    THIS IS SAMPLE EMPLOYEE TABLE

  • How to give authorization for create and change particular Condition Type

    Hi...
       In my requirement is , Only one user can be authorized to create and change a particular condition type 'ZABC' in vk11 and vk12 .
    For remaining condition type can be used as in normal .
    How to do this ? How to give authorization for a particular user for particular condition type ?
    Plz guide me ..
    Thanks in advance .
    Deepa .

    Hi Deepa ,
    u can check A.Object V_KOND_VEA, in user profile u can assign condition type or tables.
    have a word with ur basis guy , so he can help u in better way.
    aand also ref FM SD_COND_AUTH_CHECK
    Regards
    Prabhu

  • How to ''give'' error for this case of an EXTERNAL TABLE?

    Our external table routine works fine:
    -- We have a csv file with 2 cols.
    -- When we create the table referring the csv it works fine.
    -- Even if the csv has more the 2 cols, the ET command only takes the 2 cols and it works fine.
    -- Now, users are saying that if the csv has more than 2 cols, the ET command should give an error
    I went through the command but cannot find any clause which will do this.
    Is there any other way or workaround?
    CREATE TABLE <table_name> (
    <column_definitions>)
    ORGANIZATION EXTERNAL
    (TYPE oracle_loader
    DEFAULT DIRECTORY <oracle_directory_object_name>
    ACCESS PARAMETERS (
    RECORDS DELIMITED BY newline
    BADFILE <file_name>
    DISCARDFILE <file_name>
    LOGFILE <file_name>
    [READSIZE <bytes>]
    [SKIP <number_of_rows>
    FIELDS TERMINATED BY '<terminator>'
    REJECT ROWS WITH ALL NULL FIELDS
    MISSING FIELD VALUES ARE NULL
    (<column_name_list>))\
    LOCATION ('<file_name>'))
    [PARALLEL]
    REJECT LIMIT <UNLIMITED | integer>;
    Is it possible to use the READSIZE?
    Edited by: Channa on Sep 23, 2010 2:28 AM

    -- Now, users are saying that if the csv has more than 2 cols, the ET command should give an error
    I went through the command but cannot find any clause which will do this.
    Is there any other way or workaround?I looked at Serverprocess' sql*loader script and did not see how that would answer your question - how to raise an error if the file has more than 2 columns. If I missed something can Serverprocess explain?
    I can't think of a direct way to do this with your external table either, but there may be indirect ways. Some brainstorming ideas of perhaps dubious usefulness follow.
    Placing a view over the external table can limit results to the first two columns but won't raise an error.
    A pipelined function can read the external table, check for data where there shouldn't be any, and raise an exception when you find data in columns where there should not be any.
    Similarly, you could ditch the external table and use utl_file to read the file, manually parsing and checking the data. LOTS more work but more control on your end. External tables are much easer to use :(
    Or, first load the external table into a work table before the "real" select. Check the work table for the offending data programatically and raise an error if data is where it should not be. You could keep the existing external table and not have to do a lot of recoding.
    Or, also load the data into an otherwise unneeded global temporary table first. Use a trigger on the load to look for the unwanted data and raise an error if offending data is there
    These ideas are boiling down to variations on validating the data before you use it.
    Good luck!

  • How to give inputfields for radiobuttons

    Hi all,
    I am developing one application in which i require three radio buttons for that i used radiobutton group.
    Now my requirement is to give three input fields to the corresponding radiobuttons.
    for example
    radiobutton1(name)  inputfield1
    radiobutton2(hno)     inputfield2
    radiobutton3(eid)      inputfield3
    I think u got my requirement.
    please any one can provide me the solution.
    Thanks in advance
    Regards
    Ravi

    Hello Ravi,
    Please modify the code as below
    public void onActionselectindex(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionselectindex(ServerEvent)
       //reset the input fields on each select event
             wdcontext.currentContextElement().setInput_1("");
             wdcontext.currentContextElement().setInput_2("");
             wdcontext.currentContextElement().setInput_3("");
        String selected_option = wdContext.currentContextElement().getA(); //where A is the attribute in the
                                                                           //context used as the selected key for radiobuttongroup
        if(selected_option != null)
             if(selected_option.equalsIgnoreCase("name"))
               wdContext.currentContextElement().setReadoonlypro_input_1(true);  //context attributes bound to the readonly property
               wdContext.currentContextElement().setReadoonlypro_input_2(false);  //of all the input fields.
                 wdContext.currentContextElement().setReadoonlypro_input_3(false);                           
             else if(selected_option.equalsIgnoreCase("rollno"))
                   wdContext.currentContextElement().setReadoonlypro_input_1(false);
                   wdContext.currentContextElement().setReadoonlypro_input_2(true); 
                   wdContext.currentContextElement().setReadoonlypro_input_3(false);
             else if(selected_option.equalsIgnoreCase("class"))
                   wdContext.currentContextElement().setReadoonlypro_input_1(false); //context attributes bound to the readonly property
                   wdContext.currentContextElement().setReadoonlypro_input_2(false);  //of all the input fields.
                   wdContext.currentContextElement().setReadoonlypro_input_3(true);
        //@@end
    Regards
    Sarbjeet Singh

  • How to give Path for a properties file

    Hi,
    I am using a SQL.properties file to load all my SQL statements to my EJB JDBC prepared Statement. I have placed the SQL.properties file in com.company.sql package. I have another SQL class in the same package which is loading the SQL.properties file to cache for future use. I am using the path as "SQL.properties" (the file name straight ) in the SQL class to access the properties file.
    I am using Sun App Server 7. To get access to this file I need to copy the SQL.properties file to the config directory of the app server instance. Otherwise it is not able to locate the file. I don't want to put the properties file in the config directory of the app server instance. Please help me, what path I have to give to access the file from the package itself, rather from the config directory of server instance.
    I think , some one who is doing localization can help me out here. They have to put the localized properties file to access the text out of it. Please help me. Thanks in advance.
    Thanks
    Amit

    You can use ResourceBundle class to load this properties file from the classpath:
    ResourceBundle props = null;
    props = ResourceBundle.getBundle("com.company.sql.SQL");

  • How to give References for the field in the Abap Query

    Dear Freinds,
               I am not able to get Text for Cost Centre which iam using in My custom infotype , when iam calling the Custom infotype in abap querry i dont find the T symbol for my field Cost Centre , since i have created in my custom infotype for Cost Centre similar to the infotype 0001. When i look at the
    infotype 0001 fields in my abap query i can see that there is T field for P0001-KOSTL and again if i double click on it i can see that in the REFERENCES Tab i can see " Function Module:HR_TXID_KOSTL" . Could any one let me how i can assign to my custom field "Function Module:HR_TXID_KOSTL " in the References Tab.
    Regards
    divya

    solved the problem

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • Hi guru's i want to dovelope or modify  bapi how we can give name for bapi

    hi guru's i want to dovelope or modify  bapi how we can give name for bapi plz help me...

    Hi,
    If u want to assign the form to Standard sales order, The, this form in the NACE.
    and the, Run from va02/03.
    Reward Points,
    Vamsi.

  • How to give  Value set for model attribute?

    Hi all,
           How to give value set for model attribute?
           plz explain me with some sample code.
    Regards,
    Srinu

    Hi Srinivasulu,
    An attribute (of basic data types like integer , string etc) holds a single values.
    Please clarify by what you mean value set ?
    Also, share the structure of context.
    Regards,
    Kartikaye

  • How to give valid period for tcodes

    Hi all,
             i have a question how to give a valid period for tcodes.
    Thanks&regards,
    rani.

    You can't.
    You can set validity dates for roles - you do this in the roles section of the user master record
    If you need a t-code to be locked for <b>everyone</b> for certain periods then you can look into a custom prog that uses tx SM01, though it usually is not a worthwhile control to mitigate the particular risk.

  • How to give "SubclassInformation" property for item

    Hi,
    How to give "SubclassInformation" property value for an item.Please help me to resolve this problem.Thanks in advance.
    Regards,
    Tharini.

    Hi Tharini,
    To set a subclass information to an item in its property pallet, create a property class local to the form, or subclass/copy an existing property class from an Object group to the form and make use of it.

  • HOW TO GIVE EXTERNAL NUMBER FOR ORG UNIT

    HOW TO GIVE EXTERNAL NUMBER FOR ORG UNIT
    Regards,
    Kumar

    HAI..
    External number assignment
    If you want the user to assign the numbers, enter "EX" in the 'NR' field. The number ranges are then indicated by the letters "EX".
    Number assignment for plan version 10 / object type S: Subgroup 10S

  • How to give user authorizations for a Program or an ICF service

    Hi,
       1)How to give user authorizations for a report program or an ICF service.
       2)How to create an user authorization object.
    Regards,
    Vinay.

    check this online help for more info on authorization object creation
    http://help.sap.com/saphelp_nw04/helpdata/en/52/67168c439b11d1896f0000e8322d00/frameset.htm
    for question no1.
    ICF - you either maintain the auth obj relevant at the icf service level itself or you can code call authority object and block access
    for abap programs:
    you maintain auth object at the tcode or code the call authority object within the program
    Regards
    Raja

  • How can I work for Apple to give my Ideas ???

    How can I work for Apple to give my Ideas ???

    Sr. am From Honduras, am on High School, I am creating a new PC that will be a Tablet but also will display a Image in a bord or any place like a Datashow, I know that i cant send my Idea but I really want to work with them that is my dream,  Look this Image:
    I have heard about the Campus I will like to go there, and learn more

Maybe you are looking for