How can i have close option for JTabbedPane.

In My product I use JTabbedPane for several tabs,so i need an option to close each tab ,currently I have an toolbar close button and menu button,but these two are global options,so how can I have close option in the same tab??

For a similer problem I did it like this
I creates a subclass of JPanel called TabPanel which having a BorderLayout and in the North section of it there is a tool bar with close button. And it has a reference to the Parent JTabbedPane.
When ever the close button is clicked it just call the remove on parent TabbedPane giving itself as the parameter.
and every tab page added to JTabbedPane is a instance of it or an instance of its subclass.
I think that you can do things on your own from here....

Similar Messages

  • How can I change view options for ALL playlists?

    How can I change view options for ALL playlists? With one single click or trick?
    I have a lot playlists and don't want to change every single one of them separatly.
    Thanks for your help. (I use Windows 7)

    There's no FAST way I know of, which is what I think you mean.
    Only the painful SLOW way of one-by-one.
    You could make a new playlist from the main library after you've set the columns up as you like.
    Go to an existing playlist that doesn't have the columns you want, and select all.
    RIght-click > Add to Playlist and send them to the new playlist.
    That's still one-by-one and only works with static playlists, not smart ones.

  • How can I have message delivery for Iphone ios7.1

    How can I have message delivery for Iphone ios7.1

    There is no option in the mail application to request a read receipt - if that is what you are asking.

  • Can 2 different users with 2 different Iphones use the same itunes to backup each phone separately? if not how can I have a backup for 2 different iphones on the same laptop?

    can 2 different users with 2 different Iphones use the same itune program to backup each phone separately? if not how can I have a backup for 2 different iphones on the same laptop?

    Here is your answer:
    http://support.apple.com/kb/HT1495

  • How can I have the link for downlaod PS PS6 student version ?

    Hello everyone,
    Who can help me ?
    I have already the key product of PS PS6 student version but I lost the installation CD. How can I have the link for downlaod PS PS6 student version ??
    Thanks

    CS6 - http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html

  • HI,How can i set delta option for costumised Generic data source

    Hi Sir/Madam,
          How can i set delta option for costumised Generic data source.
    Regards,
    Vishali.R
    Please search the forum before posting a thread
    Edited by: Pravender on Aug 15, 2011 1:26 PM

    Hi,
    Go to RSO2 transaction and click on change then on the tool bar click on Generic Delta button. In the next popup you can set your delta.
    Regards,
    Durgesh.

  • How can I have the option to either open or save each download?

    I would like to be given the option to either Save OR Open a file/document each time I download something. At my laptop it's either/or. I can either set the properties to always save to a particular spot, or not. How can I get both options on downloading?

    Options > General > Downloads > select "Always ask me where to save files". See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20General%20panel Options window - General panel]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • How can I have one row for each object?

    Post Author: farnaz
    CA Forum: WebIntelligence Reporting
    I have 3 objcts that one of them is ID and second one is internal code and the third one is quantity.There is more than one value for each ID (becouse of internal code).I want to create a report based on ID and quantity (not based on internal code).I make a break on ID but the result shows me more than one row for each ID.so how can i have just one row for each ID?
    another question:
    how can I post screen shot of the results to my messag in forum?

    Post Author: jsanzone
    CA Forum: WebIntelligence Reporting
    farnaz:
    Have you tried to omit "internal code" from your grid?  In normal circumstances, if you have "ID" and "Quantity" on the grid, then WebI will on its own summarize Quantity based on ID, however, this is provided that Quantity has been set up as a measure (or metric).  The quickest way to tell if Quantity is a metric or not is to observe the color of its icon when you look at it in the data panel.  If it is a purple (or sometimes appears as pink or fuscia) dot, then it's a measure, but if it is a blue box then it is a dimension.  If you need Quantity as a measure then this will have to be modified at the universe (make it look like "sum(Quantity)" in the select phase of the object, and insure the object is defined as a number....

  • How can I have 2 variables for one output?

    I need it so that the spacebar does one thing on one frame and another thing on the other.
    I have solved this but now I need to know how can I have it so 2 variables = 1 output.
    This is my code at the moment:
    while (menu)
    if (changecharacter)
    gotoAndStop(2);
    menu = false

    My whole code is:
    var menu:Boolean = true
    stop();
    var leftPressed:Boolean = false;
    var rightPressed:Boolean = false;
    var changecharacter:Boolean = false;
    Block.addEventListener(Event.ENTER_FRAME, fl_MoveInDirectionOfKey);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, fl_SetKeyPressed);
    stage.addEventListener(KeyboardEvent.KEY_UP, fl_UnsetKeyPressed);
    Block.gotoAndStop(1)
    function fl_MoveInDirectionOfKey(event:Event)
              if (leftPressed)
                        Block.x -= 3;
              if (rightPressed)
                        Block.x += 3;
              if (changecharacter)
                        Block.gotoAndStop(2);
              while (menu)
              if (changecharacter)
                        gotoAndStop(2);
                        menu = false
    function fl_SetKeyPressed(event:KeyboardEvent):void
              switch (event.keyCode)
                        case Keyboard.LEFT:
                                  leftPressed = true;
                                  break;
                        case Keyboard.RIGHT:
                                  rightPressed = true;
                                  break;
                        case Keyboard.SPACE:
                                  changecharacter = true;
                                  break;
    function fl_UnsetKeyPressed(event:KeyboardEvent):void
              switch (event.keyCode)
                        case Keyboard.LEFT:
                                  leftPressed = false;
                                  break;
                        case Keyboard.RIGHT:
                                  rightPressed = false;
                                  break;
                        case Keyboard.SPACE:
                                  changecharacter = false;
                                  break;

  • How can I have multiple views for my question

    When I posed a question on a forum, it indicates that I have one (1) view. How can I have multiple views on the same question?

    I believe the number you are looking at is the number of times a particular thread has been looked at (viewed) by different users. When someone else opens your question, the view count should increase.
    Justin

  • How can i change sort options for a playlist in ios8? I would like to sort by album, or album artist like I can in iTunes for OSX.

    So here's an example of why I would like to figure this out. I have a playlist on my iPhone that contains only new music. I would like to be able to sort this playlist by artist, so that when i click on the playlist, I can quickly find the album I have added to the playlist and play it. Currently, I can only see a long list of tracks. How do you sort playlists?
    Thanks!

    I just found the solution to this myself.
    In a very un-Apple way, this is an undocumented feature only accessible by right- (or control-) clicking.
    1. Change one track to your desired sort settings (for instance, set the Sort Artist to Yankovic, Weird Al.
    2. Right-click on that track. In the contextual menu that appears, there is a new submenu called "Apply Sort Field." If you choose "Same Artist," it will apply your new sorting information to all your other tracks by "Weird Al" Yankovic (or, if you are not a huge nerd, any other artist you substitute).

  • My Site Branding - How can we have it applied for dynamically created My Sites? (/personal/username)

    Hi,
    I have a SharePoint 2013 environment in which My Sites are enabled.
    As you know the My Site of every user gets created in /personal/Username dynamically, when a User goes to his "My Site" from the "About Me" link.
    The requirement is for us to apply a custom master page / styles for the all My Sites
    How do we do this in a way - where it gets applied for all the existing My Sites and also the My Sites that will get created in the future? What will be the right help?
    Please help on this.
    Karthick S

    Hi Karthick
    You can do it using feature Stapling
    http://sharepointologic.blogspot.in/2013/04/branding-sharepoint-2013-my-sites-with.html
    https://sharepointqna.wordpress.com/2013/08/29/my-site-master-page-change-feature-stapling/
    Please mark it as answer if it helps you solving your problem
    Amit Kotha

  • How can I have a notification for each PO Receipt entered?

    Hi Friends,
    I have a requirement to send notifications to the Finance users, of the fact that a PO receipt occurred.. Do we have any standard feature for this? I read through the documentations but every notification looks to be for approvals..
    Regards,

    You can develop an Oracle alert to send notification upon creating receipts.

  • [JS][CS5] How can use 'edit with' option for link using sripting

    Hi All,
    I Can edit link using Link.editOriginal () if the default application is as i need it will open it from there, when I try to open it with other application instead of default application of link file I can't (usually we "use edit" with option in manually). Is there any option to do it in scripting.
    Any clue will help us to update the large set of links in a single click.
    Thanks in advance,
    Sankar L

    Hi csm_phil,
    You are exactly catch my point, my requirement is to update math type eps file. If my math type equation default application file is illustrator (say) as below
    it will open in illustrator instead of mathtype if i use editOriginal function...
    Jus i need to open it in mathtype, the link file default application file is whatever it is.
    Thanks,
    Sankar L

  • HT6058 When can we have Reject option for a call when the screen is locked?

    Its very annoying that we cannot REJECT a call when we want when the phone is locked . When will we have this fixed?

    Tell Apple you'd like to see this on the Lock Screen:
    http://www.apple.com/feedback/iphone.html

Maybe you are looking for

  • MB1B Mvt Type 413 E - GL Account requires an assignment to a CO Object

    Hi, We are trying to transfer stock from one sales order to other, system is giving the error " GL Account requires an assignment to a CO Object".  Movement type 413 E through MB1B. We are using MTO scenario. The question is that we are giving both t

  • No iSight camera in Vista?

    i installed windows vista using boot camp 2.0 and i installed the drivers for the leopard install disc it all works fine but i can't find the camera i looked in the device manager and its there its working but when i got to My computer there is no ca

  • Running scripts in different schema

    Assume you have a workspace user DEMO and parsing schema TEST and PROD. I create from Workshop/utilities/DDL you select schema PROD for getting DDL for tables, Triggers... Now you want to run this script against schema PROD (to create the Objects fro

  • Smartview 11.1.2.2 installed w/  "run as administrator" connection error

    SmartView was installed on XP with the run as administrator function. the URL to the shared connections provider has been updated. However when opening the connection panel and clicking on Shared Connections I get an error saying: (Translated from Sp

  • Outlook Calendar Appointments Missing - My Fix.

    I had the wonderful disappearing, but apparently still there outlook (my version 2007) appointment issue. When trying to add a recurring appointment to a slot that was filled with an invisible recurring appointment, I got an error message - "Interfac