Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

ShaKri
Identifying index of a Button array in a Java program?
So say I have an array of buttons, lets call it btnArray. Now I am adding them onto a frame using a loop.
So the code would go...
for( ... )
{
btnArray[i] = new Button();
btnArray[i].addActionListener(this);
btnArray[i].setBounds( ... );
frameWindow.add(btnArray[i]);
}
Now my question is in actionPerformed( ) how do I find out which button from that button array was pressed? And no - the # of buttons in that array is NOT a constant so that I can say...
if(evt.getSource() == btnArray[0])
{ ... }
I need a function or some method to identify which button from that array was pressed using its index. Please help! :)
Thanks.
Cheers
2 AnswersProgramming & Design1 decade agoHow to record phone calls made by PC to mobile phones?
Hey all. Whats the best s/w (free obviously!) to record phone calls made by using s/w apps like Skype or VOIP to mobile phones around the world? I would like it to save as an MP3 or wav or something similar. Kindly help. Thanks!
4 AnswersSoftware1 decade agoHow to compare 2 strings in Java to find out which one is greater ?
Let us assume there are two strings - String1 = "Nicolas" and String2 = "John". How can I now compare the two so that I can tell that 'J' comes before 'N' ... as in to have a way to compare the "greateness" between the two to see which one of them is the "lesser" in the sorting order as is the case in numbers? Kindly help. Thank you.
6 AnswersProgramming & Design1 decade agoImplementing a simple graph (XY-Axis) chart in Java AWT?
How does one implement a simple XY-Axis chart (like the ones in Excel) in a Java AWT interface? Is there a built in class we can use that can take values and generate a small graph inside a Panel or something? Kindly help. Thanks.
3 AnswersProgramming & Design1 decade agoCalling a cellphone from a PC for free?
What is the best way to call a cellphone in India using a PC from Denmark? Kindly suggest and I will be ever grateful! :)
Cheers,
SK
2 AnswersSoftware1 decade agoHow to replace text on page load in Javascript?
OK. So I have a code fragment as below...
<blockquote>ಇದು ನ</blockquote>
Now, I want the & symbol to be replaced with nothing, or in other words I want to delete the & word from that code chunk when the page loads. What is the Javascript that can help me do this?
Many thanks!
SK
1 AnswerProgramming & Design1 decade agoCreating drop down boxes dynamically using Javascript?
OK. So what I need is an interface that looks something like this.
There is a button (or a hyperlink) on a form which, when clicked, dynamically produces a drop down with the same # of options each time. So imagine the drop down contains the values - ABC, XYZ and AAA. Clicking on the link (which could be called "Add new person" will add a dropdown box dynamically for the user to choose from. So once he might choose ABC, another time XYZ and once more AAA etc. Something like making a wish list which keeps popping out a new textbox every time the user clicks on an option "Add New Wish".
I hope that made sense!
Thanks.
SK
1 AnswerProgramming & Design1 decade agoInserting path of the file in the footer of a word document in Word 2002?
How does one insert the physical location of a file as part of the footer by clicking a custom Macro in Word? The deal is, my boss is having difficulties knowing where he saved a document given his work load. Hence would like an option where by clicking a button, the location of that file gets printed ON the document somewhere. I personally don't see a realistic use of that since you'd have to know WHERE the file is to open it. But well - just wondering if a solution is ready to use.
Thanks!
SK
3 AnswersSoftware1 decade agoThe BEST and free compression software out there?
Which one is the BESTand free compression software for files? I tried a few like WinZip and ZipWiz but they hardly compress at all! A 17.5MB file remains so even after compression! Any inputs ?
Cheers,
SK
2 AnswersSoftware1 decade agoMAGRIPPALFCOSTERTIVMFECIT - Written on the Pantheon in Rome. What does it mean?
I was in Rome recently and found the text - MAGRIPPALFCOSTERTIVMFECIT - which was on the Pantheon. Does anyone know what that means?
Thanks.
6 AnswersLanguages1 decade agoWhich is the BEST website hosting service out there?
I am willing to pay but the service has to be excellent and the web hosting company should also provide a good amount of storage. Any pointers here?
Thanks!
SK
10 AnswersSoftware1 decade ago