Indira Devi

Ranch Hand
+ Follow
since Feb 07, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Indira Devi

Hello everyone,
Is it possible to include ASP Code inside JSP?
If yes,Can u please show some source code?
Thanks in advance
Regards
Indira.
23 years ago
Hello everyone,
In my PC, How can i give/remove network sharing given to logical drives through a Java Program?
Source code would be highly appreciated
Thanks in advance
Indira.
23 years ago
Hee Frank Carver
Thanks a lot
Indira.
23 years ago
Hi Cindy,
How to actually compile new code on the fly and then execute it ?
Indira
23 years ago
Hello
Actually my system is used by 3 people.So when one of the other
two guys switches it ON, I possibly can't store it in a file.
Kindly suggest a solution in this case.
Thanks in advance
Indira.
23 years ago
Hello everyone,
I have got the follg code which when compiled gives the error
"Expected Instrument[] but founf javax.sound.midi.Instrument[]"
at the line
Instrument instrs[] = synth.getLoadedInstruments();

Can anyone please help me in this regard?
import javax.sound.midi.*;
public class Waves
{
public static void main(String[] args)
{
try
{
// Locate the default synthesizer
Synthesizer synth = MidiSystem.getSynthesizer();
// Open the synthesizer
synth.open();
// Get the available Midi channels - there are usually 16
MidiChannel channels[] = synth.getChannels();
// Get the synth's soundbank where all the sounds are stored
Soundbank bank = synth.getDefaultSoundbank();
// Load all the available instruments
synth.loadAllInstruments(bank);
// Get a list of the available instruments
Instrument instrs[] = synth.getLoadedInstruments();
Instrument seashore = null;
// Loop through the instruments
for (int i=0; i < instrs.length; i++)
{
// Stop when you find the seashore
if (instrs[i].getName().equals("Seashore"))
{
seashore = instrs[i];
break;
}
}
if (seashore == null)
{
System.out.println("Can't find the beach");
System.exit(0);
}
// Get the information describing the Seashore instrument - the
// patch contains the soundbank and program number
Patch seashorePatch = seashore.getPatch();
// Set 5 channels to use the Seashore instrument
channels[1].programChange(seashorePatch.getBank(),
seashorePatch.getProgram());
channels[2].programChange(seashorePatch.getBank(),
seashorePatch.getProgram());
channels[3].programChange(seashorePatch.getBank(),
seashorePatch.getProgram());
// Start the Seashore note on 3 different channels. By waiting a short
// time before starting the next note, you get a much more continuous sound
channels[1].noteOn(32, 127);
Thread.sleep(3500);
channels[2].noteOn(32, 127);
Thread.sleep(1500);
channels[3].noteOn(32, 127);
// Wait forever
for (;
{
try { Thread.sleep(999999999); } catch (Exception ignore) {}
}
}
catch (Exception exc)
{
exc.printStackTrace();
}
}
}

Thanks in advance
Indira.
23 years ago
Hi Pankaj
Thanks a lot.
Can i have some sample code to distinguish between adding objects to vectors at compile time and at run time?
Thanks once again
Indira.
23 years ago
Hee
I have got an application where there are DELL and NT systems , the former at the server side and later at the client side. For the intranet(T1 line) i need a response time <= 2 seconds and for the internet <=10 seconds.
Which technology among JSP,CORBA,SERVLETS,ASP and webservers(IIS,Apache etc) should be used to acheive this response time?
Please help me as i am in a hurry
Thanks in advance
Indira.
23 years ago
Hello
What exactly is meant by platform independance?
Is it that i take the class files created in one OS say Windows and run it in another OS say Linux where JVM for linux is installed and set the classpath in the second OS properly and it runs there properly?
Or is it something more than this?
23 years ago
Hello
Can anyone tell me what is meant by dynamic code changes in Java?
Thanks in advance
Indira.
23 years ago
Hello
How can i have a method whose return type is an array?
Can anyone give me some sample code?
Thanks in advance
Indira.
23 years ago
Hee
What is alpha channeling in case of 2D graphics?
Thanks in advance
Indira.
23 years ago
Hee
What are native methods?
Can anyone show some code as to how to include it in my java prog?
Thanks in advance
Indira
23 years ago
Hello everyone,
Can u please enlighten me about the follg?
1.What is granularity in code?
2.In the book "Thinking in Java" it is given
You can add objects to Vector without complaint at either compile time or at run time.
What is the meaning of saying adding objects at compile time and run time?
Thanks in advance
Indira.
23 years ago
Hello
Can anyone please tell me about the start() and stop() methods when we have init() and destroy()?
Thanks in advance
Indira.
23 years ago