Changing tab names on tabbed pane

Hi all,
just wondered if anybody knows how i can change the text that appears on my tabs in a jtabbedpane. So far I only have tab1, tab2 etc and I cant seem to find how to change this.
Thanks alot

just wondered if anybody knows ...Have you tried to find out by reading the API docs?
{color:0000ff}http://java.sun.com/javase/6/docs/api/javax/swing/JTabbedPane.html{color}
Read the method descriptions and tell us if you found anything you could use.
db

Similar Messages

  • Getting Tab Name or Tab Id

    Hello,
    In my page I have 4 tabs. I would like to get the tab name or tab id to pass to my pl/sql procedure. When user clicks the tab, I am passing certain parameters to the plsql procedure. So is there any way i can uniquely get the tab name or tab id?
    Thanks in advance
    Regards

    well,
    it is still vague for me to understand what do you mean by getting tab name from URL.
    perhaps what you intend to have is a programmatic way of finding tab name from URL.
    for that in 10.1.4 as the query strings do not work that way, so you may use the following API function call and use it to write some custom function. (note that it will work when you will call it from some page on your portal).
    portal30.wwctx_api.get_path_infothis gives typically a result like this depending upon the page address/location (and provided that you are on a tab of a multi-tab page):
    /!PORTAL30.wwpob_page.show/SHARED/U/PAGE_GRP/PAGE_NAME/TABNAMEhope that helps!
    AMN

  • How to get current tab name or tab id or related info?

    Hi ,
    I would like to hide/show tabs according to users' page privileges list. So I need get current tab ID or tab Name in runtime environment to know if show/hide it for current user. :APP_USER
    Could you please provide any info about this requirement? Or do you have alternative method to control tabs' hide/show?
    thanks
    Ruiping

    最爱用中文 wrote:
    Hi Jari,
    Thanks for your info. Even if set authorize schema to tabs, I still need to get the relationship between "current tab" and "privilege&users". So I think evrm's hard-code method above is avaliable.I agree with Jari: APEX provides Authorization schemes specifically for this purpose. You need to reverse your thinking on how to implement this.
    For more information consult the documentation on APEX security, specifically using authorization schemes to restrict access to pages and control rendering of components.
    Tutorial: Adding Security to your Database Application (APEX 4.0)
    Use Authorization Schemes to control access/rendering for security ("only managers see/access this page and it's associated tab"); and Conditions to control rendering for functional reasons ("region only displayed if account is in arrears").
    Authorization Schemes have the benefits of being reusable, performing better, and allowing central maintenance of security-related code. This makes it easier to change the implementation—say moving from role information held in database tables to groups defined in LDAP.
    I worked for a number of years with an application where authorization schemes are not properly used (decisions made before my involvement) and all security and business logic relating to rendering and processing is wrapped up in spaghetti code in conditions. It's impossible to maintain.
    It is of course advisable to make both authorization scheme and business logic condition code more reusable and maintainable by locating it in API packages.

  • Unable to change file name in Metadata pane - Lightroom 2

    I can't seem to activate the file name area in the Metadata pane in the Library module. It is solid gray and I cannot make the area active. With the correct folder active, the files seem to be normal in all visible ways, but the ability to change the name is not available. This is true in Grid or Loupe views. It is true with only one Active image. Any thoughts?

    Are the images on-line? Though that shouldn't make a difference. You should still get a non-grayed out filename and get a warning dialog, instead if you try to set a name change.
    Don

  • Getting tab name or tab id or tab label at runtime

    Hi All,
    I think the answer is "no" but I'm going to ask anyway just in case I missed something.
    I am designing some authorization schemes for my application. The context behind the design is this:
    1. Two-level tabs application.
    2. Access is stored in a table where an assignment between a level 2 tab is assigned to a user (well, it's really assigned to groups of users but that's not that important for this question). The level 2 tab is assigned via a select-list LOV defined as:
    select
    tab_label d,
    tab_id r
    from apex_application_tabs
    where application_id = :APP_ID
    and workspace = :OWNER
    order by 1
    So I store the TAB_ID of the 2nd level tab and it's assigned to groups of users.
    So what I'd like is this at runtime:
    1. For page-level security, I read the Apex data dictionary and pass APP_PAGE_ID to a function that reads the page number. I traverse the tab hierarchy in APEX_APPLICATION_TABS to see if the APP_PAGE_ID resides in TAB_PAGE or TAB_ALSO_CURRENT_FOR_PAGES to get the TAB_ID. Then I check my own assignment table to see if that TAB_ID is accessible to the user. If so, return TRUE, else, return FALSE. This is working wonderfully and isn't a problem...at runtime if I navigate to a page that is on a 2nd level tab and I don't have access to the page, the security scheme errors (correctly).
    2. For tab-level security, I want that at the parent tab level that if the user has access to one or more of the 2nd level child tabs, display the parent tab.
    3. For tab-level security, if the user is on a parent tab (because he/she has access to at least one child tab), only show the child tabs to which they have access.
    Now the problem(s). The thing is that the user sees the tabs before they navigate to them (#2 and #3 I don't have working right now) and I want to hide them if they don't have access.
    For example, let's say my parent tabs are A, B, and C. Child tabs are A1, A2, A3 underneath A. B1, B2, B3 underneath B. C1, C2, and C3 underneath C.
    Let's say everything in A and underneath A (so A1, A2, and A3) are available to anyone who has a login to the application. No problem there.
    Then, let's say most or all users have access to B1 but fewer users have access to B2 and B3. What I want is that if anything from B is available to a user, show parent tab B. If the user clicks on parent tab B, then show B1, B2, and B3 but only show the tabs to which they have access (so if they have access to B1 and B2 but not B3, do not display B3).
    Then, let's say C is a very powerful administrative tab and very few people have access to it. I want to not-show C at all for people who do not have any access to C1, C2, or C3.
    The problem I have at runtime is that I cannot find a way for a tab to pass information about itself when the tab is about to paint (or not-paint). The only variable or substitution string at runtime that I can find to reference about a tab is "CURRENT_PARENT_TAB_TEXT". However this gives me only information about the parent tab's text of the parent tab that has focus right now; each parent tab cannot pass it's own info until I navigate there. I need to get that information w/o navigating to the tab first so that I can determine to show/hide the tab. Does that make sense? In other words, at runtime, I log into the system and let's say I'm not very powerful and should only be on tabs A1, A2, and A3 under A. I log in, I land on A1, and I can see A2 and A3 (good), but also I can see parent tabs B and C poking up there too. CURRENT_PARENT_TAB_TEXT does not resolve to B or C (it currently resolves to A) until I actually try to click on B or C. I need to hide B or C before the user clicks.
    Yes I can do it if I hard-code the name of the tab in a security boolean function, but I would have to have as many authorization schemes as I have tabs. This is why I want just one tab-level scheme where I pass the tab name or ID at runtime dynamically but I can't seem to reference it.
    Over in the template for two-level tabls I see #TAB_LABEL#, #TAB_NAME#, #TAB_ID#, and #TAB_LINK#. These don't seem to be available to PL/SQL to pass at runtime to a PL/SQL function. If they could, this would be my answer.
    Any other options or am I stuck on this one?
    BTW...we are on version 3.2 of Apex and going to version 4 soon. If something is available in 4 for this that helps, I can do it then.
    Ideas? Thanks!

    Hey gti_matt,
    Did you end up getting anywhere with this?
    I'm in the same boat atm...
    Thanks,
    Dan

  • Tabs tab name or tab id

    Hi
    I'm writing application with access control to several tabs there will be condition checking if user :APP_USER have access to selected tab. The point is how to get tab_name or tab_id. and use it in pl\sql function like I can use :APP_USER
    Or
    how can I do this without using tab_id
    Regards
    Jaroslaw

    CREATE OR REPLACE
    FUNCTION can_user_access_tab(p_user IN VARCHAR2
                                                    ,p_tab   IN VARCHAR2
    RETURN VARCHAR2
    IS
      ln_count number;
    BEGIN
      SELECT count(1) INTO ln_count
      FROM acces_tab_users
      WHERE username=p_user
      AND tab_name=p_tab;
      if (ln_count=0) THEN
         return 'N';
      else
        return 'Y';
    END;to each tab add a SQL expression condition
    can_user_access_tab(:APP_USER,'<tab name>') = 'Y'
    Note : <tab name> would be different for each tab , so you have to modify the conidtion for each tab with a new string that matches your table's(acces_tab_users)  tab_name column.
    If you want to use an authorization scheme which uses tabname and user , there is a substitution string named CURRENT_PARENT_TAB_TEXT that might work for you. But I couldn't find anything for the sub tab.
    In the authorization scheme that would be
    return can_user_access_tab(:APP_USER,:CURRENT_PARENT_TAB_TEXT) --function returns BOOLEAN in this caseI haven't used it, so can't provide any more info on this at the moment.
    Update
    Use Jari's method and pass :APP_USER and :APP_PAGE_ID to the authorization scheme. You would have to set up the tab access table based on the page number for this.
    Edited by: vee on Mar 3, 2011 3:45 AM

  • Flex 3 TabNavigator getting tab name when tab clicked

    Hi All, I am using Flex 3.
    I have <mx:TabNavigator  id="dbtabs" width="100%" height="100%" click="changeTabs()"  />
    I am also adding tabs dynamically. 
    In the grand scheme of things, I want to let a user add tabs as needed and chose what content is on the tab.  This is saved data, so when they come back I need to reload their saved settings.
    What I am trying to do is find out how to get the index of the tab when it is clicked. Right now I have to click the tab then click in the vbox to get the selectedIndex.  Is there a way to get the selectedIndex as soon as the tab is clicked?
    Thanks.

    private function handleTabClick(evt:IndexChangedEvent):void
           var i:int = evt.newIndex;
    <mx:TabNavigator change="handleTabClick(event)">
            <mx:Canvas width="200" height="200" label="Tab 1"/>
            <mx:Canvas width="200" height="200" label="Tab 2"/>
    </mx:TabNavigator>
    Dany

  • Can we change NAME OF TAB and ITEM NAME  dynamically at runtime in forms 6i

    Hi all,
    I have a requirement like
    1) based on organization choosen the TAB NAME AND TAB LABLE name in tab canvas should be changed dynamically. can this happen?
    example: In forms i gave the NAME and LABLE OF TAB (PROPERTY PALLET) as *'TAB_INITIAL'* and *'TAB_INITIAL'* respectively .
    when org_1 is choosen , lable should be changed to 'TAB_ORG_1' .
    when org_2 is choosen , lable should be changed to 'TAB_ORG_2'. can the NAME also be changed dynamically??
    2)Similarly can we change the ITEM NAMES present on this tab based on organization selection?
    Thanks,
    Durga Srinivas

    Hello.
    You can perform this by using:
    set_tab_page_property('Tab_page_name', label,'your_desire_label');
    and for item set_item_property.
    More details on these built-ins and also some example can be found in Forms Builder Help.
    Regards,
    Alex
    If someone's answer is helpful or correct please mark it accordingly.

  • Change the name of custom tab in me51n / me52n / me53n

    Hi,
    I have to add a few custom fields in PR item of  transactions me51n / me52n / me53n. I have used the enhancement MEREQ001 for adding the custom fields. The sytem automatically creates a custom tab with the name Customer Tab for the additional fields that I have added using the enhancement MEREQ001 while displaying in me51n / me52n / me53n.
    Now I have a requirement to change the name of the custom tab created for transactions me51n / me52n / me53n from Customer Data to Others.
    Can anyone suggest me how to go about doing this???
    Thanks in advance.
    Abhisek.
    P.S.:- Points will be be duly awarded 4 helpfull answers.

    Hi,
    I tried doing whatever you had suggested but it seems that it is not working.
    Could you suggest some other way to do this?
    Thanks and regards.
    Abhisek.

  • Tab Name Change

    Hi,
    How to change the tab name of a tabstrip in transaction <b>'crmd_order'</b>.
    Regards,
    Suraj.

    Hi ,
    First check the program name . Go to Se51 and select the program name , select screen number 0014(for me23n) and layout editor radio button then go to display ...from there u can change the description .
    Thanks
    Dipak

  • Want to change customer enhancement tab name in CJ20N

    Hi Friends
    As per our requirement, we have created customer enhancement tab in CJ20N (project definition level).
    It shows the name as cust.enhancement, but as per our requirement we want to change the tab name.
    But we are not able to change that.
    if anybody come accross this type of scenario, kindly let me know.
    Thanks
    Gowrishankar
    Edited by: gowrishankar p on Mar 30, 2010 1:26 PM
    Edited by: gowrishankar p on Mar 31, 2010 9:39 AM

    Hi mithilesh,
    we can do it. but it may need access key. Find out the screen number and program name.
    Go to se51 and input the program name and screen number then select Layout ->display.
    click on that tab, move change mode then give the text what do you want.
    Give Points if useful.
    Regards,
    Jogesh.Mutyala

  • I wanna change the tab name in tcode ie02  :)  i'll give u points !!!

    Hi abapers,
    In screen ie01 i want to change the tab name, like instead of general, i want to put some other.
    If it is possible, do help me.
    <b>I ensure u for giving ur share of point.</b>
    Regards,
    [email protected]

    Hi Pradeep
    I am giving here the names of the exits for this transaction ie01
    You will have to customize one of the exits according to your req.
    Exit Name           Description
    IEQM0001            Add. checks for equip. installation at functional locations
    IEQM0002            Additional checks for definition of equipment hierarchies
    IEQM0003            Additional checks before equipment update
    IEQM0004            Object is allowed for contract partner (Order->MaintCont.)
    IEQM0005            Object allowed for SD contract (MaintContract->MaintCont.)
    IEQM0006            Object allowed for SD contract (Maintain maintenance cont.)
    IEQM0007            Check/change manufacturer field in equipment master
    Thanks & regards
    Ravish Garg
    <b>REMEBER REWARD POINTS IS THE BEST WAY TO SAY THANK YOU</b>

  • Changing Custom Tab Name in ML81N

    Hi All,
    I have created a new custom tab in ML81N transaction. When i created it by default it's name is coming as 'Addtl data'. I need to change that name as per my requirement. So please provide me a solution to change the name.
    Thanks in Advance

    hey this is functional requirement , no need of ABAPer work
    go to SPRO->material management->purchasing->purchase order->texts for purchase order
    hope this will help u
    with regards
    s.janagar
    Edited by: Janagar Sundaramoorthy on Apr 16, 2009 2:55 PM

  • Changing Custom Tab Name in ME21N

    Hi All,
    I have created a new custom tab in me21n transaction. When i created it by default it's name is coming as 'Customer tab' [H11 - Customer data]. So now i need to change that name as per my requirement. So please provide me a solution how to change the name.
    Cheers,
    Santosh

    hey this is functional requirement , no need of ABAPer work
    go to SPRO->material management->purchasing->purchase order->texts for purchase order
    hope this will help u
    with regards
    s.janagar
    Edited by: Janagar Sundaramoorthy on Apr 16, 2009 2:55 PM

  • Changing the name of the tab created using enhancement MM06E005

    Hi,
    Is there anyone know how to change the name of item level tab from "customer data" to our own tab name in screen exit for trans ME21N/2N/3N? Enhancement used is MM06E005.
    And is it possible to show or hide the newly created tab using enhancement depending on the data displayed in tab? If so how?
    Any help will be appreciated.
    Regards,
    Naveen

    I came across the same issue as well a while ago, see my thread at Can you programmatically change the iView Title?
    No one could answer my question properly, so I decided to go the DHTML route; find the <DIV> element encapsulating the proper iView title, and then replace the innerHtml with the new title.... Ackward, I agree, but it works
    It's java based, but the actual replacing is all DHTML, I will look up the code and post it

Maybe you are looking for

  • Do not get AirPlay icon on iPad when away from home network

    I brought my Apple TV, iPad, and iPhone to a hotel with me.  Although they are all connected to the same wi-if network at the hotel, I do it see the AirPlay icon on either device.  How can I mirror my iPad to Apple TV using AirPlay when I am away fro

  • Re:variants in processchains

    Hi Gurus, can anyone explain me in detail what is really a variant in process chains with any example if possible. Thanks

  • About to cancel contract 2 months in.

    I'm posting this in the hope that a mod here might see this. Basically this is the last chance BT have to respond to my complaints that were submitted last week regarding an installation mistake and also disconnecting my phone and infinity service af

  • ITunes won't import/play certain songs for no apparent reason

    I have certain songs that will not play or import into iTunes for no apparent reason. I've been able to play them in QuickTime, Zune and Windows Media Player but for some reason iTunes won't even acknowledge them. When I click on the MP3 file iTunes

  • Scrolling in Layers Palette

    Why can't I scroll in Illustrator's layers palette? Even if I click within the palette, hold my cursor inside it, and attempt to scroll, it's the canvas window that moves up and down instead of the list of layers. Being able to scroll this way would