Click here to Skip to main content
15,897,371 members
Home / Discussions / Java
   

Java

 
GeneralRe: javax,microedition does any one have it ? Pin
williamroma28-Mar-11 23:30
williamroma28-Mar-11 23:30 
GeneralRe: javax,microedition does any one have it ? Pin
TorstenH.28-Mar-11 23:39
TorstenH.28-Mar-11 23:39 
GeneralRe: javax,microedition does any one have it ? Pin
williamroma28-Mar-11 23:51
williamroma28-Mar-11 23:51 
GeneralRe: javax,microedition does any one have it ? Pin
TorstenH.29-Mar-11 20:00
TorstenH.29-Mar-11 20:00 
Questionerror with recording the file Pin
jayashree.v28-Mar-11 3:44
jayashree.v28-Mar-11 3:44 
AnswerRe: error with recording the file Pin
TorstenH.28-Mar-11 3:52
TorstenH.28-Mar-11 3:52 
GeneralRe: error with recording the file Pin
jayashree.v28-Mar-11 5:18
jayashree.v28-Mar-11 5:18 
GeneralRe: error with recording the file Pin
jayashree.v28-Mar-11 5:26
jayashree.v28-Mar-11 5:26 
public static Line getLine(Line.Info info) throws LineUnavailableException {
LineUnavailableException lue = null;
List providers = getMixerProviders();


// 1: try from default mixer for this line class
try {
Mixer mixer = getDefaultMixer(providers, info);
if (mixer != null && mixer.isLineSupported(info)) {
return mixer.getLine(info);
}
} catch (LineUnavailableException e) {
lue = e;
} catch (IllegalArgumentException iae) {
// must not happen... but better to catch it here,
// if plug-ins are badly written
}


// 2: if that doesn't work, try to find any mixing mixer
for(int i = 0; i < providers.size(); i++) {
MixerProvider provider = (MixerProvider) providers.get(i);
Mixer.Info[] infos = provider.getMixerInfo();

for (int j = 0; j < infos.length; j++) {
try {
Mixer mixer = provider.getMixer(infos[j]);
// see if this is an appropriate mixer which can mix
if (isAppropriateMixer(mixer, info, true)) {
return mixer.getLine(info);
}
} catch (LineUnavailableException e) {
lue = e;
} catch (IllegalArgumentException iae) {
// must not happen... but better to catch it here,
// if plug-ins are badly written
}
}
}


// 3: if that didn't work, try to find any non-mixing mixer
for(int i = 0; i < providers.size(); i++) {
MixerProvider provider = (MixerProvider) providers.get(i);
Mixer.Info[] infos = provider.getMixerInfo();
for (int j = 0; j < infos.length; j++) {
try {
Mixer mixer = provider.getMixer(infos[j]);
// see if this is an appropriate mixer which can mix
if (isAppropriateMixer(mixer, info, false)) {
return mixer.getLine(info);
}
} catch (LineUnavailableException e) {
lue = e;
} catch (IllegalArgumentException iae) {
// must not happen... but better to catch it here,
// if plug-ins are badly written
}
}
}

// if this line was supported but was not available, throw the last
// LineUnavailableException we got (??).
if (lue != null) {
throw lue;
}

// otherwise, the requested line was not supported, so throw
// an Illegal argument exception
throw new IllegalArgumentException("No line matching " +
info.toString() + " is supported.");//line 459

what could be the error
}
GeneralRe: error with recording the file Pin
TorstenH.28-Mar-11 19:39
TorstenH.28-Mar-11 19:39 
QuestionWebCam record in java Pin
Fatema gabr27-Mar-11 11:34
Fatema gabr27-Mar-11 11:34 
Questionhow to record a video in java? Pin
Fatema gabr27-Mar-11 11:03
Fatema gabr27-Mar-11 11:03 
AnswerRe: how to record a video in java? Pin
ankitjoshi245-Apr-11 10:21
ankitjoshi245-Apr-11 10:21 
AnswerRe: how to record a video in java? Pin
Adrabi Abderrahim12-Apr-11 11:39
Adrabi Abderrahim12-Apr-11 11:39 
AnswerRe: how to record a video in java? Pin
csanuragjain16-Apr-11 21:59
csanuragjain16-Apr-11 21:59 
Questionhow to open a website when i press a button in Java Pin
williamroma26-Mar-11 14:22
williamroma26-Mar-11 14:22 
AnswerRe: how to open a website when i press a button in Java Pin
Richard MacCutchan26-Mar-11 21:53
mveRichard MacCutchan26-Mar-11 21:53 
AnswerRe: how to open a website when i press a button in Java Pin
DaveAuld26-Mar-11 22:41
professionalDaveAuld26-Mar-11 22:41 
GeneralRe: how to open a website when i press a button in Java Pin
Richard MacCutchan27-Mar-11 0:52
mveRichard MacCutchan27-Mar-11 0:52 
AnswerRe: how to open a website when i press a button in Java Pin
TorstenH.28-Mar-11 1:19
TorstenH.28-Mar-11 1:19 
QuestionSwing JDialog bug? [modified] Pin
amit ofer26-Mar-11 1:03
amit ofer26-Mar-11 1:03 
AnswerRe: Swing JDialog bug? Pin
TorstenH.28-Mar-11 1:25
TorstenH.28-Mar-11 1:25 
QuestionCrash in java.exe Pin
schki0225-Mar-11 13:31
schki0225-Mar-11 13:31 
AnswerRe: Crash in java.exe Pin
TorstenH.28-Mar-11 1:16
TorstenH.28-Mar-11 1:16 
Questioncolor fade animation for grid cells in swing Pin
amit ofer25-Mar-11 5:30
amit ofer25-Mar-11 5:30 
QuestionGluing JLabels to a contentPane Pin
kurt124-Mar-11 12:30
kurt124-Mar-11 12:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.