What kind of  "addActionLister" for JTabbedPane should I use??

Hi, friends:
I have a Jpanel called panel, contains several JTabbedPanes,
such as tpane_1, tpane_2, tpane_3, tpane_4, tpane_5 etc,
When I click tpane_1, I should add what kind of "addActionLister" to
Trap this event "click tpane_1"??
And When I click tpane_2, I should add what kind of "addActionLister" to
Trap this event "click tpane_2" also?? And so on??
Please help.
Thanks
sunny

As you know, JTabbedPane has a method called
void addChangeListener(ChangeListener l)
which you can use to register an object with tabbed pane that will be informed whenever a tab is selected.
JTabbedPane.addChangeListener needs an object that implements the javax.swing.event.ChangeListener interface.
Further, as you know, ChangeListener has a single method called stateChanged:
void stateChanged(ChangeEvent e)
Use this method to react appropriately whenever the selected tab is changed.
You can also use method int getSelectedIndex() to get selected index and from that you can see selected tab.
Message was edited by:
lochdsmile
Message was edited by:
lochdsmile

Similar Messages

  • What kind of filter or mask should I used?

    I'm using Fireworks CS4 and have an image of thick muds splattered against our car. I'm creating a family video and am looking to creater a logo for the video where it looks like the video name is written in text in the mud. I've tried applying an inner bevel filter, but it looks poor.
    What type of filter or mask can I apply to give the text depth and shadows?
    Heck, I'd be willing to pay for some help at this point.
    Please let me know if you have any ideas as I'm well beyond my skillo level on this one.
    Thanks all.
    Dave
    dave at davethoma.com

    Well...I don't really have a lot of time, right now. But I think you can do something nifty looking without a whole lot of effort.
    Here are a few things you could try...
    Put some text over your image. Use a wide font, like Impact. Move the text to the part of the image you'd like to have inside the text (or move the image). Select the image and copy it (Ctrl-C is fine). Select the text and go to menu Edit > Paste Inside (Ctrl-Shift-V). You can use this muddy text object over any image for a video title.
    The next step is to choose a font that's more interesting than Impact. The first one I linked you to has the advantage of looking like splatters, but the disadvantage of being difficult to read. Look around dafont in the graffiti or distressed themes and see if anything catches your eye. Check the licensing if you're doing anything commercial.
    Taking this method one step further, it would be nice to take advantage of some of Fireworks' fancy strokes. For this, you'll need to convert the text to paths. Select the text, menu Text > Convert to Paths. Duplicate this object. Paste your image inside the upper object. On the lower object, apply a stroke. (See example below, Layer 2.)
    Hmm...example time. In the bottom example (Layer 3) the stroke is a Textured Air Brush with a Vein texture (unfortunate that the stroke name is also an effect). This is a Fireworks .png, it's just resized by the forum software:
    Good luck!

  • New! What kind of font and size should I use?

    Hi Everyone
    I have a Mac OS X v10.4.11. And I use FCP. I have edited a one hour documentary with a dialogue in a foreign language. I need to subtitle the dialogue & give an effective title without any frame drop. What font & size can I use ? Thank you. Golab

    I solved my issue.

  • What kind of bluetooth dongle(usb) should I get to use my Magic Mouse properly?

    My Mac Pro doesn't have bluetooth. What kind of bluetooth dongle(usb) should I get to use my Magic Mouse properly? I already have one, but it makes the mouse seriously lacking.

    I keep the dongle plugged into the back of my apple 27" monitor so that means it is only 1 to 2 feet away from the mouse.  Don't plug it into the mac pro itself if that is at any distance from the mouse.  The closer you can keep the dongle to the mouse the better.
    Do a smc and pram reset.
    If all is lost, and you have xcode installed then you can do a bluetooth factory reset.
    Note that if you should sleep your machine, power is off the usb's, so the dongle is off.  This means you cannot wake the machine with any BT devices like the mouse (I use a wired keyboard).  Also sometimes upon waking the machine the mouse does not immediately re-pair (maybe 20% of the time).  So you have to flip its switch to get the system's attention.
    While I do have internal BT, using the dongle disables the internal (at least for 2010 mac pro's).
    And of course BT would go inactive if you pulled the dongle out!

  • What kind of material type i should use?

    Dear all,
    I am wondering what kind of material type I should use for the following type of material:
    The material is Chicken used in like KFC- type of eatery franchise store.
    The eatery franchise store buy the chicken from external party, next, this store process this chicken (i.e. cut into pieces) and become chicken salad and sell this chicken salad to their consumer.
    Personally, I donu2019t think this kind of material can be classified as HAWA (i.e. trading mat type) as the material is not buying and later selling as a same physical product like the retail store.
    But it is buy and process it, and sell.
    Please help shed some light for me. Thanks.
    tuff

    Hi we have not using SAP, it is a new project.
    kindly please read my question carefully...
    basically it is like this...
    the chicken the restaurant chain purchased are later process into multiple meal dishes (i.e. Salad Chicken, Chicken with rice, Roast Chicken), and sell to customer directly.
    Therefore, looking at your feedback, I can use the SEMI-FG material type for the Chicken for the buying, correct?
    But this raise another question in which how do I track the goods issue quantity when the meal dishes is sold, so that my Chicken stock quantity can reflect correctly in the SAP system?
    currently they are not using BOM as the franchise holder does not wish to disclose the meal ingredient scret (i.e BOM) to their invidual franchise store.
    please advise. thanks
    Thanks.
    Tuff

  • What kind of memory for my Macbook Pro Laptop

    Hello:
    I am thinking of getting more memory for my laptop.
    I am unsure on what brand to buy, so I appreciate any input you might have. I have 2 memory slots that have 2gb each. How much can I put in each slot? 4gb, 8gb?
    What kind of prices for the memory?
    Here are the specs on my laptop.
    MacBook Pro
    13-inch, Early 2011
    Processor  2.3 GHz Intel Core i5
    Memory  4 GB 1333 MHz DDR3
    Graphics  Intel HD Graphics 3000 384 MB
    Thank you!

    You can put an 8GB module in each slot, giving you a total of 16GB. But that's the maximum.
    Good sources of RAM for your model (which use 204-pin PC-10600 (1333 MHz) DDR3 SO-DIMMs) are Crucial, OWC and Corsair. Other people may recommend other brands, but I would get one of the three (and I only include Corsair because that's what I'm using).
    Good luck,
    Clinton

  • What kind of commenting system is best to use with a website created in Dreamweaver?

    What kind of commenting system is best to use with a website
    created in Dreamweaver? How would you rate Haloscan commenting
    service?

    Hm - there is only one PowerMac G4 without a line-in - it's called "PowerMac G4 (Digital Audio)". Take a look at this document:
    http://docs.info.apple.com/article.html?artnum=58418
    ... it shows the back panels of 3 models, and if yours is the 3rd, that's it.
    In this case, you can really only input sounds digitally. The cheapest solution would be to get an iMic USB device (maybe that's what your husband had - look at the pic. Older models were more like silvery), it comes for < 40 $, and you can plug a microphone into it (with the small 1/8" plug). Not super-great sound, but for that mic it should be good enough.

  • What type of hard drive replacement should i use to replace the hard drive in my first generation mac min 2005 model a 1103?

    what type of hard drive replacement should I use to replace the hard drive on my first generation mac mini model a 1103?   G4 1.25 mhz 40 gb hd 1 gb. mem.

    You'll need a 2.5" parallel ATA interface hard drive. Most are 5400RPM, forget 7200RPM drives and slower 4200rpm drives.  You don't want a serial ATA (SATA) drive, as that has a different connector and won't work.
    One source I've used for drives is Newegg, and their parallel ATA hard drives are at http://www.newegg.com/Product/ProductList.aspx?Submit=ENE&N=100007605%2060000344 2&IsNodeId=1&name=IDE%20Ultra%20ATA100%20%2f%20ATA-6 .  Newegg also has many user comments about the drives. Other sources are OWC at http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/ (Click on ATA on the left) . Look for at least a 3 year warranty. 

  • What are the ranges for correct skin tones using RGB%?

    What are the ranges for correct skin tones using RGB%?  Used to using a scale from 0 to 255.  But with LR it's RGB  , I know 100% RGB is white.  What do you use for %?

    While I whole heartedly agree that we should not be constrained to hard and fast numbers for accurate skin tones ... LR does offer an RGB color readout ... I am assuming they made those percentages available for the user to monitor the breakdown of specific color values for a reason ... so we could have an indication of how a specific color in an image will be reproduced ...
    I liken this to using a speedometer ... while many experienced drivers in well tuned vehicles can travel on the highway at the prescribed legal speed limit without really monitoring the readout on the dashboard ... however, there are times when they would like to verify the speed at which they are traveling ... the RGB color percentage readout in LR is no different ... just a source of information to verify you are achieving what you desire ...
    Again, going by specific numbers in this instance, I believe, could lead to problems ... there may be times when you may desire or actually need to adjust skin tones ... even though a pleasing WB has been achieved ... the relationship of R, G and B can be used to get you there.
    From what I have researched and put into practice with LR the following seems to be a good starting point and the data was borrowed from "the pixelation" blog:
    R: highest %
    G: middle %
    B: lowest %
    To get a little more specific. In general,
    R: Y + (15-20)
    G: average of R and B
    B: R – (15-20)
    For example, the following values represent common Caucasian skin tones using the rules above:
    * R: 80%; G: 70%; B: 60%. R is 20 points higher than B, and G is midway between R and B. That’s perfect.
    *  R: 86%, G: 78%; B: 70% also reflects a nicely balanced skin tone.  Again, G is midway between R and B, and R is 16 points higher than B. This, too, illustrates a great relationship among the colors.

  • I have a late 2009 iMac, with a Nvidia 9400 Graphics card.  I was wondering what my options are for upgrading.  I use Windows 7 via Bootcamp, so I need a card that is compatible.

    I have a late 2009 iMac, with the default Nvidia 9400 Graphics card.
    I was wondering what my options are for upgrading.  I use Windows 7 via Bootcamp, so I need a card that is compatible/has available drivers.
    This is for gaming. On the lowest settings of "Call of Duty 4", I get about 100 FPS... Was hoping to be able to play on higher resolution w/o the fps lag.
    I'm not good with the hardware part of computers at all, but know how to get around the OS.

    In most cases the graphics cards in iMacs are Not upgradeable.  They are usually soldered to the logic board.  RAM is considered, along with harddrives, the only component that is upgradeable in an iMac, unlike in PC's.  So basically you would need to sell your unit and purchase an iMac with a more powerful graphics card.
    Hope this helps

  • What kind of menu bar navigation should i do for my website

    My website to start off is a giant tree that i created in Illustrator and i want to put the navigation dispersed throughout the tree an idea i had was a tag like the kind they used to tie to your luggage with twine made out of paper I don't really want the words to just be sitting in the tree either it looks too boring. I tried doing larger leafs but i don't like that idea either it just looks out of place. what kind of Menu bar should i do for the website?

    design decisions, like beauty, is your call.  but, if you like the idea of leaves and a navigation system that's not particularly easy to use, create some leaves in your tree that stand-out some way.  they need not be large and certainly not large enough to display their text.  but on mouseover they could enlarge and display their text.

  • What kind of mac pro specs should I have for video editing?

    I am running the media department for Skagit Valley College and am in charge of editing for our online content. I am currently using an imac with FCP6 but am spending way too much time rendering. I am wondering about what kind of specs I should consider for building a mac pro to cut down on some of that time as well as setting up an audio recording studio. Microphones, cables, software, and hardware specs are all issues that puzzle me at the moment as far as what is going to be the best fit for my productions...
    please help
    -anthony

    Virtually any Mac Pro 6-core or up will work well, but obviously the more cores the better. Save the budget by adding your own RAM (I like 2GB per core) and hard drives (3TB Hitachi 7200 RPM drives are a good value) from reputable vendors. Avoid "green" drives that use lower spindle speed to save energy.
    Get the fastest available video board (currently the 5870) and consider consider dial third party displays (I'm using a pair of 27" Samsungs, half the price of a single Apple 27) and look into a Matrox MXO2 mini to handle your grading monitor.
    Get a copy of Final Cut Studio (2009) ASAP while it's still available and talk to your Apple rep about additional licenses if needed. If you know FCP6 and like it, you need to "bunker" the app and ignore FCP X until it fleshes out.
    If you need more help, let me know...  I've been on FCP since version 3 and I'm a native Washingtonian. Just don't call me Homie! 
    Good luck!

  • What kind of hit for carrying balances [update 7/3]

    I've been keeping my utilization way low, with most accounts reporting zero, and the others reporting nominally, so that my utilization has been about a third of a percent. This week I decided to get some postponed dental work done, and to pay for it with some zero-interest-rate cards and not worry so much about the FICO scores. And I'm considering letting the balances ride for awhile, not paying them off totally, and letting my reported balances go up to the neighborhood of 5% overall utilization, with the zero interest cards just under 30%. How much of  a hit can I expect on my FICO scores if I do in fact let my utilization go from a third of a percent to five percent? Even if you tell me I can expect a bad hit, I might do it anyway, just as an experiment...My scores are of only academic interest at this point since I should be gardening at this stage of the game. But I do wonder what lies ahead. Updates:  5/17 Started May 16th with: 10 accounts at zero balance, 3 accounts posting total balance of $241, representing less than .3% overall utilization Over the next 5 days, I allowed 3 of the 13 revolving accounts to post a total of $1524.33, for 1.7% overall utilization, with individual account utilization ranging from 2.13% to 49%. 5/22 EX dropped 2 points. 5/29 Balances up to $2700, representing 3% overall. No other score changes yet. 6/3 The entire $2700 has been reported to TU, and my TU score has not budged. 6/5 As of today I'm up to $3500, for 3.9% overall utilization. My only FICO change so far has been -2 on EX. But both my FAKO scores at Credit Karma just dropped 5 points, which makes me nervous. So I will probably let it peak at 3.9% and start bringing the numbers down now. 6/8 Boom! EQ FICO dropped 11 points! 6/11 No new change in scores. 6/17 will start reducing utilization 6/16 30 days from the start of my experiment: EX -2, EQ - 11, TU - No change 6/24 down to 2% overall utilization, no change 6/27 Today TU dropped 3. After my utilization dropped from 3.9% to 2%. Go figure. 7/3 OK now I'm back down to .3% overall utilization, right where I started on 5/16. No further change in scores....yet. 

    NRB525 wrote:
    There should not be much change by having your utilization go to 5%, as far as how it affects your score. I would suggest, though, that you are in a phase with your cards where you do not want to pay before statement cuts on any cards. I'm guessing you got a number of cards recently, thus the gardening mode. As you try to build your relationship with those CCC, they SP you periodically to see how your file is working. If you don't show any activity on many of your cards, they may be a little concerned. If they see a steady flow of PIF activity on most or all your cards, they will see a potential profitable customer and are more likely to not overreact if you start using their card more. There is something to be said for acting boldly and showing you can handle debt and payments. As to the 0% APR on the dental work, that's a way to show you can take on debt and pay it back, with no cost to you. This is another behavior you want all your CCC to see, to make them more comfortable with your file. The "All cards at zero but one" is fine for absolutely tweaking the last point out of your score (and thats about all I think it gets the cardholder). As a long term way to build the confidence of your several CCC so they don't overreact? In my opinion, it is not helpful to hide your good payment activity by this pay before statement cuts method. Your long term relationship with the cards you do have, that is your main goal now, not getting a bunch more cards. As your file ages and these cards show activity, adding the one or two other cards you want later, will be a cake walk, regardless of FICO score. By the time you get to adding the one or two other cards, your scores will have risen nicely anyway, even if you show PIF balances paid by the statement due date, boldly broadcasting that activity for all to see. Good luck!Thank you for all that good stuff. I have some questions: "As you try to build your relationship with those CCC, they SP you periodically to see how your file is working. If you don't show any activity on many of your cards, they may be a little concerned". They would take a zero statement balance on an active account as a sign that there was no activity? " If they see a steady flow of PIF activity on most or all your cards, they will see a potential profitable customer and are more likely to not overreact if you start using their card more. " By "PIF activity" you mean "PIF after letting a statement balance show" activity? "As to the 0% APR on the dental work, that's a way to show you can take on debt and pay it back, with no cost to you." They would know that it was promotional interest rate borrowing? "The "All cards at zero but one" is fine for absolutely tweaking the last point out of your score (and thats about all I think it gets the cardholder). As a long term way to build the confidence of your several CCC so they don't overreact? In my opinion, it is not helpful to hide your good payment activity by this pay before statement cuts method." Well basically "tweaking the last point out of [my] score" is what my question is about. I know that making my present credit card banks happy isn't impaired by my using their cards a lot so long as I pay them off. My question only relates to what kind of temporary hit my FICO scores will experience in the process. "Your long term relationship with the cards you do have, that is your main goal now, not getting a bunch more cards." Well I don't know about that; some of my cards aren't as good as others,, and none are low interest. Some have exorbitant balance transfer and cash advance fees.  I would like to have some other cards which charge lower interest rates.

  • What kind of hit for carrying balances [update 6/24]

    I've been keeping my utilization way low, with most accounts reporting zero, and the others reporting nominally, so that my utilization has been about a third of a percent. This week I decided to get some postponed dental work done, and to pay for it with some zero-interest-rate cards and not worry so much about the FICO scores. And I'm considering letting the balances ride for awhile, not paying them off totally, and letting my reported balances go up to the neighborhood of 5% overall utilization, with the zero interest cards just under 30%. How much of  a hit can I expect on my FICO scores if I do in fact let my utilization go from a third of a percent to five percent? Even if you tell me I can expect a bad hit, I might do it anyway, just as an experiment...My scores are of only academic interest at this point since I should be gardening at this stage of the game. But I do wonder what lies ahead. Updates:  5/17 Started May 16th with: 10 accounts at zero balance, 3 accounts posting total balance of $241, representing less than .3% overall utilization Over the next 5 days, I allowed 3 of the 13 revolving accounts to post a total of $1524.33, for 1.7% overall utilization, with individual account utilization ranging from 2.13% to 49%. 5/22 EX dropped 2 points. 5/29 Balances up to $2700, representing 3% overall. No other score changes yet. 6/3 The entire $2700 has been reported to TU, and my TU score has not budged. 6/5 As of today I'm up to $3500, for 3.9% overall utilization. My only FICO change so far has been -2 on EX. But both my FAKO scores at Credit Karma just dropped 5 points, which makes me nervous. So I will probably let it peak at 3.9% and start bringing the numbers down now. 6/8 Boom! EQ FICO dropped 11 points! 6/11 No new change in scores. 6/17 will start reducing utilization 6/16 30 days from the start of my experiment: EX -2, EQ - 11, TU - No change 6/24 down to 2.4% overall utilization, no change 6/27 Today TU dropped 3. After my utilization dropped from 3.9% to 2.4%. Go figure. 

    NRB525 wrote:
    There should not be much change by having your utilization go to 5%, as far as how it affects your score. I would suggest, though, that you are in a phase with your cards where you do not want to pay before statement cuts on any cards. I'm guessing you got a number of cards recently, thus the gardening mode. As you try to build your relationship with those CCC, they SP you periodically to see how your file is working. If you don't show any activity on many of your cards, they may be a little concerned. If they see a steady flow of PIF activity on most or all your cards, they will see a potential profitable customer and are more likely to not overreact if you start using their card more. There is something to be said for acting boldly and showing you can handle debt and payments. As to the 0% APR on the dental work, that's a way to show you can take on debt and pay it back, with no cost to you. This is another behavior you want all your CCC to see, to make them more comfortable with your file. The "All cards at zero but one" is fine for absolutely tweaking the last point out of your score (and thats about all I think it gets the cardholder). As a long term way to build the confidence of your several CCC so they don't overreact? In my opinion, it is not helpful to hide your good payment activity by this pay before statement cuts method. Your long term relationship with the cards you do have, that is your main goal now, not getting a bunch more cards. As your file ages and these cards show activity, adding the one or two other cards you want later, will be a cake walk, regardless of FICO score. By the time you get to adding the one or two other cards, your scores will have risen nicely anyway, even if you show PIF balances paid by the statement due date, boldly broadcasting that activity for all to see. Good luck!Thank you for all that good stuff. I have some questions: "As you try to build your relationship with those CCC, they SP you periodically to see how your file is working. If you don't show any activity on many of your cards, they may be a little concerned". They would take a zero statement balance on an active account as a sign that there was no activity? " If they see a steady flow of PIF activity on most or all your cards, they will see a potential profitable customer and are more likely to not overreact if you start using their card more. " By "PIF activity" you mean "PIF after letting a statement balance show" activity? "As to the 0% APR on the dental work, that's a way to show you can take on debt and pay it back, with no cost to you." They would know that it was promotional interest rate borrowing? "The "All cards at zero but one" is fine for absolutely tweaking the last point out of your score (and thats about all I think it gets the cardholder). As a long term way to build the confidence of your several CCC so they don't overreact? In my opinion, it is not helpful to hide your good payment activity by this pay before statement cuts method." Well basically "tweaking the last point out of [my] score" is what my question is about. I know that making my present credit card banks happy isn't impaired by my using their cards a lot so long as I pay them off. My question only relates to what kind of temporary hit my FICO scores will experience in the process. "Your long term relationship with the cards you do have, that is your main goal now, not getting a bunch more cards." Well I don't know about that; some of my cards aren't as good as others,, and none are low interest. Some have exorbitant balance transfer and cash advance fees.  I would like to have some other cards which charge lower interest rates.

  • What kind of install for upgrade?

    I am running a Powermac G4 tower with Panther. For a variety of reasons I never upgraded the system but now I would like to upgrade to Tiger. There are too many programmes and devices that won't work under Leopard but I am now encountering compatibility problems with Panther. Also Safari keeps quitting. My question is what kind of upgrade should I do? I was thinking I would wipe the hard disks clean (I have two) and start afresh with Tiger. Is this advisable? If so, what do I need to save in order not to lose all my programmes and drivers? I have an external hard drive big enough to back up the whole system. And how do I reintall all that after Tiger is installed?

    Hi-
    I was thinking I would wipe the hard disks clean (I have two) and start afresh with Tiger. Is this advisable?
    As long as the drive that you erase is not the Panther volume, erasing the drive and installing Tiger as a new volume is good.
    In Tiger, use either the Setup Assistant or the Migration Assistant to move all needed files and applications from the Panther volume to the Tiger volume.
    Do not erase or modify the Panther volume until you have tested everything in Tiger.

Maybe you are looking for

  • Final Cut Studio install problems

    Well I was thrilled to get Final Cut Studio 2, but cannot get the thing installed. Looking to do a 100% uninstall so I can start fresh I have the following disks: 1. Final Cut Studio 2. DVD Studio 3. Livetype1 4. Livetype2 5. Motion On my first insta

  • Printing photos in max spielman

    how do i print photos from the iphone in max speilman, boots etc?

  • CS Live - Updating your account...

    When I sign in to CS Live through inDesign I always recieve the error: "Updating your account" - it has been happening for days and it is stopping me using Folio Builder. - how can this be fixed?

  • Syntax Error: "CS" is not a valid comparison operator.

    Hi, I am using the following query   select bukrs hkont augdt augbl zuonr gjahr          belnr buzei xblnr budat wrbtr   from bsis   into table ts_bsis   where bukrs eq p_bukrs and         hkont eq p_hkont and         zuonr cs p_ebeln and         bud

  • Anschnitt

    Hallo Adobe-Team, gerade entdeckte ich einen Bug in Illustrator CC, der etwas unerfreulich ist: der Anschnitt wird bei "Speichern unter" als .pdf mit Anschnitt vom Dokument übernehmen nicht korrekt exportiert. Ein DIN A6 Blatt (105x148mm) und angegeb