Subclass - a beginer question - pls. Help

Dear All,
I have a very stupid question. I have a class which does nothing else than create a GUI with two JButtons, and JTextField. This form will be used several times in the application I need to develop.
I would like to create one more class which is extending the previous class. In the second class I would like to register the ActionListeners for the GUI class and do the other operations.
I tried to register the listeners for the JButtons in the main() method, but always got an error, can not be referenced from static context.
What can be the solution? do I have to code the ActionListenres at the GUI class? and later overwrite them? Please help with some ideas.
Thanks,
Zsolt Putnoky

When you extends the GUI class, the child class will contain the Buttons of the GUI class and also the ActionListeners.
When you click in the button of the subclass, the ActionListeners of the GUI class will be Actioned.
I mean, if what you want is a different behavior of you subclass button click, you should override the ActionListeners.
Hope that I helped

Similar Messages

  • I cant reset my security question pls help me

    I cant find the reset your security question pls help me

    If you mean that you're aren't getting the reset link as described in the steps half-way down this page : http://support.apple.com/kb/HT5312, then that will only show if you have a rescue email address (which is not the same thing as an alternate email address) set up on your account.
    If you aren't getting the link then you don't have a rescue email address, and you won't be able to add one until you can answer your questions - you will need to contact iTunes Support / Apple in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset you can then use the steps half-way down the above HT5312 page to add a rescue email address for potential future use

  • Very simple question pls help me

    I just want to use oracle sql and pl/sql workshop isqp*plus web site, so which product or software shouuld i download??? pls help me.
    thanks.

    Pl see your other 2 threads on the same topic (posting the same question multiple times does not make the issue go away ;-) )
    Oracle install error 10g 64 bit windows
    which product should i install??
    HTH
    Srini

  • Question pls help

    Hi I wanted to ask a question, pls do reply to help me out.
    Can I include a method call to another class, within the same transaction, that performs a
    database statement or must the actual select statement appear within the
    setAutoCommit(false) .....commit()?

    Please elaborate. I believe the answer is yes, but it's not entirely clear what you mean.
    - Phil

  • Simple Servlet question, pls help

    This is my form submission part in my jsp page
    <form name="updateForm" method="POST" action="/Update"> This is my web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
      <servlet>
        <servlet-name>/Update</servlet-name>
        <servlet-class>UpdateMap</servlet-class>
      </servlet>
    </web-app>This is my UpdateMap.java
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    public class UpdateMap extends HttpServlet
        public UpdateMap()
    }I put my UpdateMap.class in WEB-INF/classes/ directory but when I clicked the submit button in my jsp page, I got The requested resource (/Update) is not available error

    Found my own error. The jsp submission code should be
    <form name="updateForm" method="POST" action="Update"> But I still got error when submit
    The specified HTTP method is not allowed for the requested resource ( POST method of HTTP is not supported by this URL.)Pls help.
    Thanks

  • HT5787 I forget my security question pls help me

    Pls I need your help I forget my answer of security questions what I do ?

    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a valid rescue email address, then use this procedure:
             Rescue email address and how to reset Apple ID security questions.
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
    Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                             Apple ID- All about Apple ID security questions.

  • MSI-6585 (648 MAX) instant restart issues questions pls help......

    Hi, i figured after months of specualation i would try to figure out what the hell is wrong with my pc.  12months ago a bought a MS-6585 648 MAX mobo and a P4 2.53ghz with 2x Samsung DDR 333 (PC2700) ram.  I play many games on my pc it seems when playing Counter-Strike + PlanetSide results in random instant restarts.  Occasionaly it will just hang the system but mainly instant reset of the system.  My cpu temp ranges from 35 48 max approx.  
    I've tried switching my ram to different slots and so on refit everything but with no luck.  I just have a very unreliable computer atm.  I've reformated plenty of times but with no joy, the odd thing is its random somtimes my pc will not crash or reset it self so this makes it very difficult to figure out what the hell is going on :S
    If you have more questions perhaps i can answer them - and give you more info that i have forgotten.
    Here are somethings that might be useful:
    MS-6585 648 MAX mobo
    Pentium 4 (northwood) 2,53ghz 533
    Samsung DDR 333 (PC2700)
    Gigabyte Maya II Radeon 9700Pro (running in agp 8x)
    Sound Blaster Audigy 2 Platinum
    Bios settings: (things ive changed)
    Turned onboard sound off than auto
    AGP Apeture size  128
    I have 32bit transfer mode running for hdds
    I have S.M.A.R.T. enabled
    (next week end i will have another 512 ram stick to try just incase its my ram but i have done the intel ram checker and it didn't find any problems)
    Any help would be greatly appreciated pls ask any things ive missed and anything else u would need to know.  I really want to sort this out as you can imagine its not very nice having a pc that can randomly crash when u do not expect it.

    Overclocking is typically limited by one of 3 factors, assuming you have sufficient power:
    1. Memory won't operate past a certain speed, so you run at a different ratio or buy faster memory.
    2. Temperature, so you need to add non-stock cooling or better case ventilation or water cooling, depending on how far you want to go
    3. CPU - At some point the CPU won't run any faster.
    Leave the CPU voltage at Auto. You should only need to raise it if you get into extreme overclocking.
    As for the size of the power supply, if you stay with Intel Northwood with an ATX board on your next upgrade, an Enermax 465, Antec 480, or something similar (should cost around $80-100US) would get good choices. If you plan on going with a Prescott on an ATX board, I would look at going to a 550W supply.
    Personally, I thing the next 12 months is shaping up to be a real headache in making upgrade decisions in the Intel world. Intel have indicated their next generation of boards will be BTX without AGP support. This looks like an upgrade could mean new case, possibly power supply, video card and possibly ram. I am hoping that companies like MSI will produce a transitional product that allows new processors and chip sets on an atx board. If that doesn't happen I see a lot of people switching to AMD.

  • Clarity required on these questions pls help?

    HI ,
    Need your help in solving these questions, these are questions asked in during interviews
    a) Dyamic actions, how to create a customer specific dynamic action , specify configured fields and rules?
    b) how to create Customer specific infotype, , please explain with any example with which are the fields you have created
    c)    Msn 10, 20, 30
    d) Revision  infotypes
    e) What are the  infotypes which cannot be enhanced
    f) What is log, How can we cancel and edit it?
    g) What is Ap/b
    h) Which is Default feature for wage types
    i) What are Infosets
    Thanks and Regards
    j) Define Benefit area

    You can do as suggested already and use interface nodes and cross component mapping; but that is all really not necessary.  It creates a situation where you calling application is too dependent upon the freely programmed input help.  You want to try to avoid the situation where the calling application needs code or mappings to communicate with the input help.
    That is easy to do because the framework passes all the information you need into the freely programmed input help via the value_help_listener object. 
    Part of the Freeley Programmed Input Help Component should be the component interface IWD_VALUE_HELP.  This comes with a component controller method called SET_VALUE_HELP_LISTENER.  This allows your freely programmed value help to capture this object called listener of type IF_WD_VALUE_HELP_LISTENER. I generally just store it awa into a component controller attribute.
    With this listerner object you have direct access to the context attribute in the calling component. You can query information about the calling UI element and of course set values directly back into it.  The listener is a hugely helpful object and should be the way you interact with the calling component whenever possible.  Here is small example:
      set single attribute
      wd_this->value_help_listener->f4_context_element->set_attribute(
      exporting
        name = wd_this->value_help_listener->f4_attribute_info-name
        value = l_time

  • Firewall question -pls help

    okay - so i was reading about system profiler today and opened it and clicked down through the various catogories then I come to Firewall- and it reads
    "Firewall Settings:
    Mode: Allow all incoming connections"
    Now this rings alarm bells - I thought my firewall was on. I go to system preferences and look in Internet& Network> Sharing as this is where (in previous operating systems) I remembered the firewall was set - except it isn't anymore. All the sharing boxes are unticked. I go into security and there is Firewall. "allow all incoming connections" is ticked.
    1) This is presumambly where i turn the firewall on or off, right?
    2) Allow Only Essential services? What does this mean - the firewall is on? what constitutes an essential service?
    3) Hypothetically could my computers privacy been compromised?
    4) Has my firewall potentially been like off since i upgraded to leopard?
    Am feeling a bit stupid right now. Any help graciously accepted!

    No such thing as stupid questions...
    -This will take you trough the basic settings done on a mac to secure it:
    In System preferences go to Security > Firewall, the default setting is "Allow all incoming", this does not compromise your privacy, only that Mac OS X will decide what it needs. I´d go for "allow only essential services" then press "Advanced", from the drop down choose "Enable Firewall Logging" and "Enable Stealth Mode".
    In the Sharing pane make sure no boxes are checked.
    Thats the basics, if you wanna secure your mac in such a way that it would make Fort Knox look like a 7/11 go here for further tips :
    http://www.macshadows.com/kb/index.php?title=HardeningMac_OSX
    ....but this might be a bit over the edge for the normal user
    Best o´luck

  • Newbie question pls help!

    hey new to java and struggling writing my first program cant get rid of this error any ideas?
    The error is:- symbol : method StringValue ()
    location: class java.lang.String
    String newColour = (colourInput.getText()).StringValue());
    please help should be easy if you know what ur doin but i dont and its drivin me crazy

    I think yawmark is in broken-record mode today. Not just today. I keep a fairly large file of
    cut-n-paste responses accumulated while addressing
    the same issues over and over and over.... I'm not at work today, so I have a lot of time to hang out here (too cold to do anything outside), and that particular response about spelling things out just seemed to pop up a lot today (no doubt caused by the posters who popped up today). A file of cut-and-paste responses is definitely a handy thing to have around here...I don't have such a file myself...I only just started here a couple of months ago, but the questions do indeed get repetitive! My cell phone only receives SMS messages--it doesn't have the capability to send them--so I don't write any SMS messages. Even if I did, I can't imagine why people think it is okay to abbreviate everything here into SMS-speak.
    yawmark, good luck on your test! Thanks!!!You're welcome!

  • Ci question, pls help

    hi experts,
    I am relatively new to the pplsoft and trying to understand the concepts.
    I am not able to comprehend the concepts of Component Interface.
    I have one question, if the CI i created contains 5 records but I want to use the CI to insert data into just 1 of the 5 records. how do i achieve this and what should i comment in the CI pplcode(that is generated by drag and drop of CI) to prevent inserts to other 4 records or is it that it will always insert the default rows in all records. and also how do i know which code belongs to record 1, the CI code looks very complex and I am not able to understand the error log code etc.
    Can someone please clarify my doubts and explain to me a CI in simple manner. this will be great help to me.
    thanks in advance,
    ..Dan

    Your Question is not specific...anyways follow these basic steps and try it out.
    First Supply GET keys for your Component interface..The Get Keys should return a unique record i.e it should pick up like a unique employee...
    Get Keys are like Search Keys which you provide on the search page of a component.
    Provide Get keys like this
    &CI.Emplid="Some emplid"
    &CI.Company='Some Company"
    and call
    &CI.GET()
    I guess your five records are on a Scroll...so get the collection of that scroll...Collection is like the set of all records which the employee has on the scroll...
    &oCollection = &CI.RECORD_NAME
    you can loop thorugh the collection starting from first record...as scroll is a collection of records there will be a record name which for that scroll
    For &i=1 to &oCollection.count
    /*Loop through each record in the scroll...as record have key values check whether the key values match the values you want and change the record you want*/
    To acess a spefic row in the collection
    &oRow = &oCollection.Item(&i);
    to access specific field in the row
    &emplid=&oRow.emplid
    &field_value=&oRow.amount (amount is the field in that row technically called as property)
    to set a value for that field.
    if &emplid=&your_emplid then
    if &field_value>100 then
    &oRow.amount .value=&your_value
    end-if
    end-if
    end-for
    and do &Ci.save() finally to save the component Interface.
    this is the basic of how to access a CI and follow Component Interface Peoplebook for more info.
    Thanks.

  • Hard Drive Question pls help

    Okay my situation I am getting a MacBook for my graduation gift and im doing my research and I am customizing my MacBook through
    http://www.colorwarepc.com/
    and they offer a 160Gb Serial ATA hard drive rpm of 7200
    but on the online store apple only offers hard drives at the 5400 rpm
    now obviously rpm of 7200 is better and I don't mind forking the extra cash out for it either
    now my questions
    Why doesn't Apple offer hard drives at the 7200 rpm rate?
    If I purchase a MacBook through Colorwarepc will the original Mac warrenty still excist?
    And will the hard drive be a Apple made product, now I checked to see the make of the Hard drive on the Apple website and colorware website both are said to be Serial ATA... now I don't know if that is the maker or just some jargon
    please help me
    Thank you
    Looking    

    There is no 7200 RPM 160 GB notebook hard drive. The fastest at that size is 5400 RPM. I think the drive you must be looking at is a full size drive for desktops. Notebook hard drives are mostly 5400 RPM although there are less expensive models that run at 4200 RPM. Only Seagate and Hitachi make a 7200 RPM notebook drive in a 100 GB capacity. The new 160 and 200 GB notebook drives are 5400 RPM. They are also pretty expensive.
    Apple does not make hard drives. The hard drives in Apple computers come from different manufacturers. Seagate, Toshiba, Hitachi, and Fujitsu are the main suppliers.
    Serial ATA is a type of interface not a drive maker. Intel Macs all use SATA drives.
    As far as warranty is concerned the warranty is good as long as the retailer is an authorized Apple retailer and the computers they are selling are not gray market. Personally I know nothing about the company.
    If you are a college student (currently enrolled) or your parents are elementary, secondary, or university faculty or staff you can purchase Apple products directly from Apple at an academic discount.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • Hi all this is my second question pls help me

    ATA: BEGIN OF line,
            land(3)  TYPE c,
            name(10) TYPE c,
            age      TYPE i,
            weight   TYPE p DECIMALS 2,
          END OF line.
    DATA itab LIKE SORTED TABLE OF line
              WITH NON-UNIQUE KEY land name age weight.
    thats an eg how do we know its a sorted or hashed or standard table???

    Hi,
    From the declaration of the internal table we come to know whether it is atndadrd, sorted or hashed table.
    If nothing is declared , default wil be standard table...
    Hi
    The table type (and particularly the access method) that you will use depends on how the typical internal table operations will be most frequently executed.
    Standard tables
    This is the most appropriate type if you are going to address the individual table entries using the index. Index access is the quickest possible access. You should fill a standard table by appending lines (ABAP APPEND statement), and read, modify and delete entries by specifying the index (INDEX option with the relevant ABAP command). The access time for a standard table increases in a linear relationship with the number of table entries. If you need key access, standard tables are particularly useful if you can fill and process the table in separate steps. For example, you could fill the table by appending entries, and then sort it. If you use the binary search option with key access, the response time is logarithmically proportional to the number of table entries.
    Sorted tables
    This is the most appropriate type if you need a table which is sorted as you fill it. You fill sorted tables using the INSERT statement. Entries are inserted according to the sort sequence defined through the table key. Any illegal entries are recognized as soon as you try to add them to the table. The response time for key access is logarithmically proportional to the number of table entries, since the system always uses a binary search. Sorted tables are particularly useful for partially sequential processing in a LOOP if you specify the beginning of the table key in the WHERE condition.
    Hashed tables
    This is the most appropriate type for any table where the main operation is key access. You cannot access a hashed table using its index. The response time for key access remains constant, regardless of the number of table entries. Like database tables, hashed tables always have a unique key. Hashed tables are useful if you want to construct and use an internal table which resembles a database table or for processing large amounts of data.
    Cheers,
    Simha.
    Reward all the helpful answers...

  • Another iTunes upgrade question - Pls Help!!

    Hi,
    Like so many others i too am having problems with the latest update of iTunes. I installed it - no problems. BUT when i went to run it, it wouldn't open. I read in some other threads that i should try and turn off my firewall protection (norton) which i did. When the firewall is off iTunes opens. However when i go to turn the firewall back on - iTunes doesn't open again. And when i try to 'configure' the firewall it freezes.
    I'm getting increasingly frustrated and would really appreciate some help.
    I use Windows XP and Norton anti-virus, internet security and firewall.
    Any help at all would be great. Thanks
    dell   Windows XP  

    I'm so glad I'm not the only one with this problem. I had the exact problem. My iTune had been working perfectly until I upgraded to 6.0. Now my iTune won't open and every time I try to open up my Norton Internet Security, my computer freezes. Also, whenever I try to shut down my computer, it also freezes. I was up all night trying to fix the problem and it drove me nuts!! Finally, I thought maybe my computer was infected with virus, so my friend, who is a computer technician, took it and he is cleaning it up. After reading the posted messages, I'm so glad that I'm not the only person with this problem. I think Apple needs to come up with a solution quick, otherwise, there are going to be a lot of angry people out there. When I get my computer back, I may try to get McAfee instead of Norton. Have you read the other postings and try some of their suggestions, ie msconfig?
    Hewlett Packer   Windows XP  

  • Quick question pls help

    i ordered
    Asus - Essentio Desktop / Intel® Core™ i7 Processor / 16GB Memory / 4TB Hard Drive
    and im just trying to figure out just what graphics card it has all it says is nividia gtx560 is it the ti version or which one is it i copy and paste the name on the search it sends me to the one i hope i have which is the ti but i just called best buy and they said it doesnt come with that one so im just tryint to figure out just what card it comes with the sku number is 2838773 thank you for your help

    According to a poster on best buys reviews for the product, it is the TI. Another poster asked a question stating it was not the TI but a poster that had the computer said the nvidia software on the computer said it was the ti.
    Crystal
    Superuser
    Forum Guidelines | Terms & Conditions | Community Guidelines | What is a Superuser?
    *Remember to mark your questions solved and click the star to give kudos to show your thanks!*
    While I used to be a Best Buy Employee, I no longer have any affiliation with Best Buy.
    My opinions do not in any way shape or form represent Best Buy's Official decisions.

Maybe you are looking for

  • Can parport be used in a applet?

    I have been trying to get parport to read and write in an applet but have had no success. It works fine at the command line but when used in the applet it stops my applet program when it comes to executing the read function. My first idea was keep th

  • Query on portalApp-project folder

    Hi All, We know that whenever a domain is created in Weblogic using say the domain configuration wizard, then by default 2 folders are created namely portalApp and portalApp-project. What I wanted to know is that whenever an application is accessed b

  • HT5576 My ipod just got stolen what should I do?

    How do i block my apple id and credit card info?

  • My Computer Keeps on Requesting my DELETED Email Password

    I deleted my gmail account off of the actual site of gmail, because I didn't wish to have that email anymore. Then I went into the account pane of Mail preferences and selected my Gmail from the list then I clicked the little minus sign in the bottom

  • Problem Installing BI Beans Catalog

    I am having a problem when executing either bi_installcatalog.bat or bi_installcatauto.bat. The error message is "Character Set Not Supported !!: DBConversion". I have Oracle9iDS Release 2 and the RDBMS is Oracle9i Release 1. Can anyone help me? Than