AddActionListener(this) what does that mean
addActionListener(this) what is this used for ??
thanxs
here is my whole code just want to add another button that will - total from another number impoted by the used
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class calculator2 extends Applet implements ActionListener
int total;
Label label1, label2,label3,label4;
TextField text1, text2,text3, text4;
Button clicker;
public void init()
label1 = new Label ("Input Rent");
label2 = new Label ("Input Bills");
label3 = new Label ("Input mobile bills");
label4 = new Label ("Input food bills");
text1 = new TextField (5);
text2 = new TextField (5);
text3 = new TextField (5);
text4 = new TextField (5);
clicker = new Button("Calculate");
add(label1);
add(text1);
add(label2);
add(text2);
add(label3);
add(text3);
add(label4);
add(text4);
add(clicker);
clicker.addActionListener(this);
} // end init
public void paint (Graphics g)
g.drawString ("The total is " + total, 50,100);
} // end paint
public void actionPerformed (ActionEvent e)
total = Integer.parseInt(text1.getText()) Integer.parseInt(text2.getText()) Integer.parseInt(text3.getText()) +Integer.parseInt(text4.getText());
repaint();
} // end actionPerformed
} // end class
anyhelp would be great thanxs
Similar Messages
-
I keep getting this error message: ITunes was unable to load data class information from Synch Services. Reconnect or try again later. What does that mean? Can I fix it? or do I have to wait for the next update?
See TS2690: iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert.
tt2 -
i plugged my iphone in for the first time to my itunes account and it now reads that this device is already associated with an apple id. what does that mean. i only have one apple id. and do i chose cancel or transfer?
Hello there, Shellywms09.
The following Knowledge Base article points out why you are receiving that message on your iPad:
iTunes Store: Associating a device or computer to your Apple ID
http://support.apple.com/kb/ht4627
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro -
I just downloaded itunes onto my new laptop and I am trying to burn songs onto a cd that I had purchased previously and I am getting an error message that states I must authorize this computer. What does that mean?
If the computer's running Mac OS X, move the cursor to the very top of the computer's screen, click on Store, and choose Authorize this Computer.
If the computer's running Windows, press the Alt and S keys and choose Authorize this Computer, or click here, follow the instructions, click on Store in the menu bar, and choose Authorize this Computer.
(95452) -
I keep getting this "text" saying, "It's time to change your ringtone". What does that mean? I can't get this other ringtone to download to my new iPhone 5s. Wjosten's earlier suggest didn't help. Sorry. I tried what he said to do, but I could not get the ringtone "coqui" to download to the phone after connecting it to the iTunes stores and backing it up. The ringtone in question is in my library, but I cannot copy it or move it to my iPhone. Hope somebody can help.
I keep getting this "text" saying, "It's time to change your ringtone". What does that mean? I can't get this other ringtone to download to my new iPhone 5s. Wjosten's earlier suggest didn't help. Sorry. I tried what he said to do, but I could not get the ringtone "coqui" to download to the phone after connecting it to the iTunes stores and backing it up. The ringtone in question is in my library, but I cannot copy it or move it to my iPhone. Hope somebody can help.
-
Whenever I go to make an in-app purchase, a message pops up saying "this is not a test user account." What does that mean and how can I get rid of it so I can purchase things?
Try a soft-reset and see if it works after your phone has restarted (it seems ot have fixed the error for a number of people on here) : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the equivalent of a reboot.
-
On PowerBook G4 OS 10.5.8 my chess App tells me "You can't open the app 'chess' because it is not supported on this architecture. It has worked before. What does that means? What can I do to get it working?
It sounds like you might have accidently copied Chess over from an Intel Mac, or an Intel Mac's installer DVD. The architecture typically means it is designed uniquely for either Intel or PowerPC. Be sure to extract Chess from the 10.5 Retail installer disc that looks like * and not any other disk. http://www.charlessoft.com/ 's Pacifist lets you extract individual applications from installers without having to reinstall everything.
-
When I start to download Firefox, I get a message that says "This type of file can harm your computer. Do yiu want to keep Firefox...p7.0.1.exe anyway? What does that mean and in what way can it harm my computer? Do I download it anyway?
You get that message any time you download an executable file. It is safe to open as long as you download from http://www.mozilla.org/en-US/firefox/new/
-
I Have a exclamation red mark next to my inbox. what does that mean? This is on my ipad
It means that one of your messages has been unable to send. Tap on it and try resending when it goes the mark should go away
-
i purchased dvd studio pro and im trying to install it but when i go to click continue it gives me this "you cant open the application gestalt tool becasue powerpc applications are no longer supported" what does that mean and how can i fix this ?
I note this information from Wikipedia: "DVD Studio Pro was a high-end software tool published by Apple Inc. to allow users to create DVD masters to be sent out for replication at production houses. Its tight integration with other Apple applications allows users to take Final Cut Pro and Motion projects and render them into the DVD format without encoding to intermediary formats. This streamlines the production workflow and reduces overhead."
If that is your intent, finding a substitute program that will run on your Mac may not be as efficient. Others can advise you on alternatives, or you can post a new thread specifically with that question.
BTW: what Mac and what version of OS X?
If it is important to you to continue to use DVD Studio Pro, consider the option of installing Snow Leopard (with Rosetta) into Parallels on your Mac:
[click on image to enlarge]
Full Snow Leopard installation instructions are here. -
iphone 4S showed a message "low on resources" wth! what does that mean, never did that until this lastest upgrade of ios?
Double tap home button and then at the bottom of the screen it shows what's apps you have open. Hold finger on one of those apps till they wiggle and then tap on the X for just those apps at the very bottom of the screen. This closes them but does not delete them. See if that helps
-
While trying to purchase an app I get message that I must first purchase the app that this is, what does that mean?
Click here and search the article for '2 out of 3' without the quotes; this generally involves either a message being sent to your rescue email address or contacting the iTunes Store staff directly.
(74327) -
When trying to install updates, I get this message:The operation couldn’t be completed. (NSURLErrorDomain error -1102.)(102). What does that mean?
It appears Apple’s download servers are ‘overwhelmed’ today. I couldn’t download the newest iTunes update or IOS 7 and there are a lot of discussions today about not being able to download. One poster said they had chatted with App Store support who confirmed the problem.
What updates? Here is a link for iTunes which worked for me.
iiTunes 11.1.0 -
I keep getting this message " the maximum number of free accounts have been activated on this iPad " what does that mean and how can I fix it
It's a really bad idea to post your iPhone's serial number and I've asked the Hosts to remove it.
Any one device can create only three iCloud accounts. As you have apparently already created three accounts (or if it's a used phone the previous owner did) you cannot create any more one it. This is tied to the hardware, not the account, and there is no way round it.
You can create a new iCloud account on another iOS device or on a Mac, and then you will be able to sign into that on your iPhone. -
On my ipad when I go to settings, music, turn on iTunes Match it is telling me it is going to replace the music on this device ? What does that mean and what will that do to the music on my ipad now?
Hi Kuhl54,
If you have questions about turning on iTunes Match on an iOS device, you may find the following article helpful:
iTunes: How to add a computer or iOS device to iTunes Match
http://support.apple.com/kb/ht4913
Important:
When enabling iTunes Match on your iOS device, the music library on your iOS device will be deleted and then replaced with your music in iCloud.
Syncing music with iTunes will be disabled while iTunes Match is enabled on your iOS device.
Regards,
- Brenden
Maybe you are looking for
-
I ordered my Macbook Air with Aperture two years ago. I now have an iMac - can I use that with Aperture in any way? I appreciate that it is a different computer but I am now the end user of both devices and I was just wondering if it was possible. Th
-
I can't post to Craigslist....it gets stuck "loading"
I'm unable to post an ad on Craigslist. The posting process stops and just displays "loading" and I'm unable to go to the next step.
-
BAPI_ACC_DOCUMENT_POST for Clearing (F-30)
How can we use BAPI_ACC_DOCUMENT_POST for Account posting with Clearing(F-30). I am able to do it for normal GL postings(FB01).I want to use this BAPI for clearing the Open items for a given customer... Thanks Rajesh
-
Using the " character in a to be executed command (EMM)
Hi, I ran against a small challange building a feature in a EMM based menu. I would like to have an user to change the number dialed in a chat-script but the chat-script command uses the character " in it's command. The same character " is also used
-
Missing E1KNVLM segment in DEBMDM IDOC TYPE
Dear Experts, When we run mdmc transaction to create idocs for customer master data, The debmdm idocs is geeting created with out E1KNVLM segment. We need to retrive LICNR from the E1KNVLM, we are on ECC5.0, Appreciate your valuable help. Thanks and