Help jTabbedPane, knowing when has been choosen/doing an event

hi there! im now to this whole thing of java and java programing. and so i ask for your help! i have this sord of class:
void newInput (String s) {
    clienteID.setEditable(true);
    clienteID.setText("");
    nome.setText("");
    morada.setText("");
    localidade.setText("");
    codpostal.setText("");
    ddn.setText("");
    idf.setText("");
    telemovel.setText("");
    email.setText("");
    nivel.setText("");
    mensal.setText("");this is something to clean all my textfields, and what i want is, whenever the user click that tab, this class executes so it cleans all the textfields. i entered newInput(); in the end of the JtabbedPane class but the newImput() only rans the first time i build and run the project. and i want it to do everytime i choose that specific tab! im using netbeans but all the design was made in code, line by line, and not forms. but now im stuck with this!
can anyone help me ? i just need to know when the tab is choosen!
ty

ChangeListener() for tab changes
and in stateChanged(..)
if(tabbedPane.getSelectedIndex() == theTabYouWant) newInput(..);

Similar Messages

  • My network symbol keeps working on my home page even when I'm not doing anything, I know there has been problems in the past with this so has it come back, help it's killing my battery!

    My network symbol keeps working on my home page even when I'm not doing anything, I know there has been problems in the past with this so has it come back, help it's killing my battery!

    Close all open apps by double-tapping the home button, then swiping up and off the screen with the app window (not the smaller icon).
    Reset your device: hold down the home button along with the sleep/wake button until the screen goes black and you see the Apple, then let go. (No data loss)

  • I'm burning dvd's that won't play on a regular dvd player.  What am I doing wrong?  Are there some simple things to check to figure this out?  (Sorry, I know this has been asked many times)

    I'm burning dvd's that won't play on a regular dvd player.  What am I doing wrong?  They play fine on computers but not on dvd players.  Are there some simple things to check to figure this out?  (Sorry, I know this has been asked many times).  Created in DVD studio pro.

    Hi
    Just my thoughts to add to the excellent answers above.
    • BRAND of DVD used - Matters when doing Video-DVDs
    Memorex, NoName etc cheap brands usually do NOT work
    I only Use Verbatim (more organic dye in these)
    • Type of DVD - matters
    - DVD+/RW - usually results in problems
    - DL-DVDs are more problematic than SL-DVDs
    - DVD+R are a more modern sort - BUT PLAYS BADLY or not at all on older DVD-players
    I only use DVD-R
    • BURN SPEED - matters
    - Best in iDVD app - IS NOT BEST at all but results in lot's of Burn Errors = Doesn't play well or at all
    I set this down to x2 or x4 max.
    Yours Bengt W

  • So, I know this has been asked before. But, has anyone heard from Apple?

    So, I know this has been asked before, but I'm just looking to see if anyone had heard from Apple on this at all. The minimum volume on my iPod Classic 160gb is too high, and I can't lower it. (AKA when I kill the volume, I can still hear music).
    I called them today, but the rep was pretty useless. He even dropped the "well, just press pause" line on me. Took him a while to understand that when I'm in bed or studying, etc. the minimum volume is too loud, and I wanted to be able to set it lower.
    The best workaround I've found so far is to buy headphones with their own volume control, but I just can't help but feel that someone shouldn't have to by additonal gear after buying this thing on account of such a basic feature exclusion.
    Anyways, thanks for any help !

    Wow, easy there company boy!
    I've heard all of what you spit up before.  And for your point of "Well, in several cases, people have complained (here in these discussion pages), that they expect the volume to be zero when turned to minimum position" that kind of ties in to why Apple should fix this.
    And yeah....it's pretty much a given that "you and I have different interpretations of what constitues too loud" This is where the option to adjust the minimum volume comes in to play.  (I relly feel bad for you. Honestly. Having to live everyday of your life this way must be just brutal)
    The wording would be pretty simple too. " Be aware there are many instances of the minimum volume being too loud, so think twice before dropping a few hundred bucks on this"
    And, you're right. It is horrible to 'whine' about being ripped off and asking if there is a possible fix for the issue. I really do apologize for that. I should just suck it up and not voice my opinion that this is not fair to consumers, and Apple shouldn't fix a known issue with a product.
    I did reset & restore, I figured that was pretty much implied since I said I spoke to Support.
    And I am not at all surprised that you would say "I - for one - am not surprised that Apple might say, "simply hit the pause button"."  Again, I don't want it on muteReading your post made my eye twitch at least three times.
    This is exactly the reason I was resitant to post on a forum. But, I got a good laugh anyways. Thanks guy!

  • RE: (forte-users) Help on 'The class has been voided andcannot be insta

    PB Solved.
    The symtom was that my 'windows' plan that I distrubute call
    the StartMethod of a class defined higher in the hierarchy,
    and I had to specify that plan as direct supplier plan of my
    new project for the 'voided' not to happen.
    cheers
    j-p
    -----Message d'origine-----
    De: Jean-Paul Gabrielli [mailto:Jean-Paul.Gabriellisema.fr]
    Date: mercredi 5 juillet 2000 12:08
    À: Klerk, Theo de
    Objet: RE: (forte-users) Help on 'The class has been voided and cannot
    be instanciated' plz
    the issue is as follows:
    I distribute a plan A
    I want to rename the plan,
    and create a plan B that has A as supplier.
    Distributing B wor'ks
    Running it fails with that issue.
    Actually I recreated supplierplans in B as they were defined in A,
    and the problem disappeared.
    thansk for your time
    j-paul
    -----Message d'origine-----
    De: Klerk, Theo de [mailto:Theo.de.Klerkcompaq.com]
    Date: mardi 4 juillet 2000 22:31
    À: 'Jean-Paul.Gabriellisema.fr'
    Objet: RE: (forte-users) Help on 'The class has been voided and cannot
    be instanciated' plz
    Jean-Paul,
    It would help if you have a bit more description around thesituation when
    this error happens.
    Could it be you have two service objects that refer to each other
    while the
    partition is still starting up? (SO's are not supposed to talk to
    each other
    during partition startup).
    Or was the partition up and running?
    Has the service object been in existence and used before itbecame voided?
    Is the partition compiled or interpreted?
    Theo de Klerk
    Architecture & Application Integration
    Professional Services
    Compaq Computer Corp. - the Netherlands
    PGP Fingerprint: 5A70 DD56 F3BA FE04 9DCA 1ACE 8581 0A2F F057 FA6E
    -----Original Message-----
    From: Jean-Paul Gabrielli [mailto:Jean-Paul.Gabriellisema.fr]
    Sent: Tuesday, 04 July, 2000 18:17
    To: Forte-Users
    Subject: (forte-users) Help on 'The class has been voided and
    cannot be
    instanciated' plz
    Hi,
    Here's the stack I get:
    SYSTEM ERROR: Failed to create service object
    BOS.MyServicesMgrSO.
    Class: qqsp_ResourceException
    Error Time: Tue Jul 4 18:05:07
    Exception occurred (locally) on partition "BC_cl0_Part3",
    (partitionId =
    AF3B67A0-3335-11D4-BE9D-963C5A7FAA77:0x224, taskId =
    [AF3B67A0-3335-11D4-BE9D-963C5A7FAA77:0x224.6]) in application
    "BC_cl0", pid 10328 on node MyServerin environment
    CentralEnv.
    SYSTEM ERROR: The class MyServericesMgr has been voided and cannot
    be
    instantiated in this partition.
    Class: qqsp_UsageException with ReasonCode: SP_ER_INVALIDSTATE
    Error #: [201, 14]
    Detected at: qqlo_VoidedClassException at 1
    Error Time: Tue Jul 4 18:05:07
    Exception occurred (locally) on partition
    "BC_cl0_Part3",
    (partitionId =
    AF3B67A0-3335-11D4-BE9D-963C5A7FAA77:0x224, taskId
    =
    [AF3B67A0-3335-11D4-BE9D-963C5A7FAA77:0x224.6]) in
    application
    "BC_cl0", pid 10328 on node MyServer in
    environment
    CentralEnv.
    aud Tue Jul 4 18:05:07 : Shutting down partition due to
    failure of this
    partition.
    aud Tue Jul 4 18:05:07 : Shutting down partition as requested.
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe,
    send in a new
    email the word: 'Unsubscribe' to:
    forte-users-requestlists.xpedior.com

    Hi Sylvain
    Try using window.smallIconImage =
    ImageData(<TitleBarIcon>.ImageValue) ;
    This should work.
    Jairaj Rampershad
    System Concultant
    --- Sylvain_Por&eacute;e <Sylvain.Poreesophia.sema.fr>
    wrote:
    Hi Forte Gurus,
    I have tried to set an icon using this statement :
    window.SmallIconImage =
    aIconFile.<TitleBarIcon>.imagevalue;
    where <TitleBarIcon> is a PictureGraphic in my
    window workshop.
    I have tried 16*16 16 colours as well as many other
    arrangements. It does
    not work. I use windows NT.
    Any ideas ?
    Thanks
    Sylvain
    PS : For info (forte help):
    SmallIconImage
    Data Type ImageData
    Source Class Window
    Settable? Yes
    The SmallIconImage attribute (ImageData) provides
    the small icon to be used
    when the window is iconized, for example, in the
    task bar. The image size
    for a small icon should be 16 by 16 pixels. Although
    the image will be
    scaled if you provide one of a different size, for
    best results, we
    recommend that you create your icons in the same
    size in which they will be
    displayed.
    Windows 95/NT only
    This feature is available on Windows 95/NT only. On
    other platforms, the
    attribute is ignored.
    For the archives, go to:
    http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To
    unsubscribe, send in a new
    email the word: 'Unsubscribe' to:
    forte-users-requestlists.xpedior.com

  • Ok I know it has been asked a million times.. but I am du

    Hi, I know it has been asked a million times, and I have read over the posts, but it still is not helping me. I installed the program on my computer when I first got my MP3 player (a Zen Micro) and I no longer have that computer, or the CD. I have looked over the download pages, and all I am finding are upgrades and stuff. Can someone please help me?
    Thanks a bunch!!
    -Kellie

    Get everything you need from here.
    PB

  • I know there has been threads about this, "DELETE POST"

    I know there has been threads about this, but I want to be able to delete one of my posts.

    Rascal,
    There are a number of reasons that members cannot delete their own posts.
    One being that it could cause some confusion when reading a thread.
    Say an OP starts a topic, and other members respond to that topic. Then the OP deletes the original post. Readers would not know what the replies are addressing.
    You have about 15 minutes to edit the content of a post, but you cannot eliminate it entirely.
    ali b

  • I know this has been asked before But I Deleted 6 mths worth of Bookmark folders, Cant use Undo,

    I know this has been asked before But I Deleted 10 mths worth of Bookmark folders, Cant use Undo & havent backed up (live & learn) Someone posted do a restore from "Import & Backup" My listing in Restore is only 2010-6-29 back to 2010-6-22. Is this the way to go to retrieve as much as possible or is there another solution?

    Those dates are when a backup was automatically made by Firefox, not dates when you saved specific bookmarks. Try restoring the backup from the day before you deleted all those bookmarks. It will restore the entire backup file - not just what you deleted, you will lose any bookmarks that you saved after the date of the file you restore.
    [https://support.mozilla.com/en-US/kb/Lost+Bookmarks]

  • Video on Mac to Storm...I know this has been covered!

    Sorry, I know this has been covered, but it has a ton of things I can not use....or understand.
    I am on a mac. I have some movie previews that are in a .mov format.  I had uderstood I need to convert them into .mp4 format....I did this in Quicktime....and exprteded them a few different ways....but every time I go to play them they break up and get all pixialated!
    I have a 16g card, and I am putting them in the Videos folder on the chip through usb reader.....what am I doing wrong?!
    Thanks

    It was magical. I did something to my router, I'm not sure what, and iChat now connects to Windows machines with audio/video. I think the problem is very specific to what type of router you have.

  • I need help my iphone 5c has been on charge for 5 hours and still has not turned on past the charging symbol, what can i do? (baring in mind i got this phone 2 days ago brand new.)

    i need help my iphone 5c has been on charge for 5 hours and still has not turned on past the charging symbol, what can i do? (baring in mind i got this phone 2 days ago brand new.)

    Do you see a lightning bolt near the battery , Battery is charging (supposedly(  IF  not return to where  you purchased it  (also make sure that the charger is on)  if still not charging with lighting bolt bring it back

  • Help, my Safari browser has been acting super strange.  It keeps changing my default browser from Google to Only Search, and my search bar will only search on Yahoo no matter what I do.  On top of that I get MacKeeper popups every time I click a link

    Help, my Safari browser has been acting super strange lately!  It keeps changing my default browser automatically from Google to Only Search (if you use the search engine Only Search it takes you to Yahoo.com).  My search bar will only search on Yahoo no matter what I do to make it Google.  On top of that I get MacKeeper popups every time I click on a link.  What is worn with my computer and how do I fix it?!

    There is no need to download anything to solve this problem. You may have installed a variant of the "VSearch" ad-injection malware.
    Triple-click the line below on this page to select it, then copy the text to the Clipboard by pressing the key combination  command-C:
    /Library/LaunchDaemons
    In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    A folder named "LaunchDaemons" may open. Look inside it for a file with a name of the form
              com.something.daemon.plist
    Here something is a variable word, which can be different in each case. It could be "cloud," "dot," "highway," "submarine," "trusteddownloads," or pretty much anything else.
    There may also be a file named
               com.something.helper.plist
    in the same folder.
    If you find files with names that fit the above description, post what you have for "something."

  • How can i increase the height of the navigation toolbar to make my persona more visible? adding toolbars puts them all below the navi bar and it looks weird. i know this has been asked many times but the answer's always "add toolbars".

    How can i increase the height of the navigation toolbar to make my persona more visible?
    adding toolbars puts them all below the navi bar and it looks weird.
    i know this has been asked many times but the answer's always "add toolbars".

    Look here.
    http://support.apple.com/kb/index?page=answerlink&url=http%3A%2F%2Fsupport.apple .com%2Fkb%2FHT1495&answerid=16777216&src=support_site.home.search

  • BAPI for know  what has been spent of that budget.

    Greeting Gurus
    My question is in relation to the search for a BAPI to let me know in a general ledger account that has consumed your budget.
    I am currently using the BAPI: BAPI_COSTACTPLN_READPRIMCOST to know the amount allocated to a budget account. And I need to know what has been spent of that budget.
    Muchs thanks for your help

    Dear Pravender,
    Thank you for the tip.
    I'm in CMOD now.
    The only enhancement mentionned is RSAP0001 (customer function calls in the service API)
    Not sure what that means.
    In the mean time I have checked the where used list.
    The "include" program ZXRSAU01is mentionned and indeed it shows the fields SAKNR1 and SAKNR2...
    I guess I need to check that and make changes there if necessary.
    Alice

  • Please I'm frankly tired and in need of your help to activate the iPhone5 it does not account Icloud Old I know of has been good, I did not get before Fargo as a result of your help and thank you and appreciation

    please im tired and in need of your help to activate the iphon5 it does not account icloud old iknow of has been good, idid not get before fargo as aresult of your help and thank you and appreciation

    please im tired and in need of your help to activate the iphon5 it does not account icloud old iknow of has been good, idid not get before fargo as aresult of your help and thank you and appreciation

  • HT4859 I need help! I know longer have access to the email that I opened my icloud account with and I can't remember my password. I have tried asking Apple for help and no one has been able to! Any advice

    I need help! I no longer have access to the email that I opened my icloud account with many years ago and I can't remember my password anyway! However it continues to backup all my stuff. But I have no access to go in and delete items or manage my account. The pop-ups now tell me that my account is full and it will no longer be able to backup items. I would like to go in and delete items that I do not need to make room, but I can't! I have personally gone into the Apple genius store and presented the problem as well as called Apple support and talked with a live person. And no one has been able to help me. I cannot believe that I have basically lost my iCloud accessibility? I have a lot of money vested in music and priceless pictures! Please can someone help me?

    I don't know what you mean by "closed" - icloud accounts stay in existence even if you disconnect all devices from the account.  You can't delete them.
    If you don't recall the ID or the password, and if the link above doesn't provide another way to get to the account, then you are out of luck.

Maybe you are looking for

  • Mac Mini to Toshiba 32C120U (HDMI to HDMI) problem

    My Toshiba 32" 32C120U is not getting video signal from my Mac Mini. I bought the Mini for my son and this is his TV. I have hooked up the Mini to my older 22" Toshiba and my 56" Samsung with the same HDMI cable and it works great on both. What the h

  • Installing Packages...

    Hi, I finally installed Arch with a lot of trouble (FTP installation). I couldn't install hwdetect though. So none of my drivers are working and I can't get a network connection without it. So, I downloaded hwdetect from one of the mirrors on my othe

  • Sql Server Log shipping

    Hi,    We have configured log shipping in our production setup. Now we are planning to change the service account from local system on which SQL Server is running to to other domain account.   Pls let me know changing the service account would have a

  • Generating consistent height/width for items

    Hello, I have created an application module consisting of several nested groups that each contain several items. The layout of these items is either form or table. Although JHS generates all the pages efficiently, it takes the item display width as d

  • My new iWeb won't recognize my website, gives error message

    UPDATE: After more reading, I found the only ".sites" file I have on my computer (Library/Application Support/iWeb/Domain.sites2), and opened it in iWeb, which prompted me to choose a background for my site as if I were creating a site.  It looks lik