|
|
Up |
|
|
  |
Author: dsv250dsv250
Date: Dec 26, 2008 15:32
I've been away from java programming for a while but today I noticed
that there is a specification defined for a java.telephony package. I
would like to write a program that would connect to my telephone line
and make a phone call (part of a security system). Does anyone know the
details of obtaining the java.telephony package? Does it come with any
of Sun's developer tools? Can you download it from anywhere for free?
Has anyone ever used it?
|
| |
|
| |
no comments
|
|
  |
Author: mayamaya
Date: Dec 26, 2008 09:10
hi,
I'm using Tomcat/1.5...
all of a sudden am getting this error:
org.apache.jasper.JasperException: Unable to compile class for JSP:
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
[ etc... ]
this error gives ZERO info as to what is cause of error, since it
doesn't mention any of my code.. I know this error occurs when you
don't have correct version of SDK installed and things of this sort, but
I haven't changed A THING in this respect, have also not changed Tomcat
installation, config, etc... (I also just removed "work" dir in tomcat)
I have not changed ANYTHING that could have caused this error since last
time I loaded this same JSP a few days ago...
thank you..
|
| |
|
| |
2 Comments |
|
  |
Author: David EntwistleDavid Entwistle
Date: Dec 26, 2008 05:38
Hi,
I'm afraid I'm not a professional Java programmer, nor a mathematician,
but I'd like to be able to generate a set of integers with a Poisson
distribution around a starting value (lambda). The application for which
I wish to do this is deriving confidence limits for analysis of radio
meteor observations.
< http://www.radiometeor.plus.com/>
The method I'm using, derived from "Simulation and the Monte Carlo
Method", by Rubinstein and Kroese works well for small starting values.
But, as the text of this book the algorithm becomes slow for large
starting values of lambda. In my case, the algorithm becomes
impractically slow as Lambda increases above about 745. Some radio
meteor observers have hour counts which exceed this value.
Does anyone have code to implement any alternative method to derive a
Poisson random variable?
Many thanks.
|
| Show full article (1.95Kb) |
|
6 Comments |
|
  |
Author: ArunDhaJArunDhaJ
Date: Dec 25, 2008 06:33
Hi,
I'm overriding methods of a class while creating objects like
OuterClass o = new OuterClass() {
public void myMethod() {
}
}
Here I'm overriding the myMethod method. How can I create a temporary
constructor for that class, so that it runs during initialization. I
need some thing like this
OuterClass o = new OuterClass() {
public constructorMethod() {
}
public void myMethod() {
}
}
Thanks in Advance !!!
Regards
ArunDhaJ
www.arundhaj.com
|
| |
|
6 Comments |
|
  |
|
|
  |
Author: nivniv
Date: Dec 24, 2008 23:12
hi all,
I am new to java, and I am taking a course that uses java.util.Scanner
to input user choices, this is only available after java 1.5
I am using my Nokia 800 pda to write and debug my code on the bus. I
could only find this free compiler jikes 1.22
it has a version build to run on arml cpu and works well on my pda.
how ever it seems it is missing the java.util.Scanner class
is there a way I emulate this so I can still input keystokes?
Niv
|
| |
|
1 Comment |
|
  |
Author: anonanon
Date: Dec 24, 2008 19:49
Hi,
Following on from my previous post, I needa little more help then I
think i should be good to run with it.
I have a program that simulates a call center.
Now I need to add a GUI to it but I don't really know how to use swing.
As far as I can tell a GUI program has 3 main sections, the section
itself that declares the app, adds the buttons, code etc, then the main
section which just calls the app code, then the action handler part.
Here's my code from the non-gui prog:
import java.io.*;
import java.util.*;
import java.text.SimpleDateFormat;
public class Main
{
public static void main(String[] args) //main section. reads in data
file and loads into vector. then displays menu
{
Calendar Cal = new GregorianCalendar(); //creates a new calendar
Cal...
|
| Show full article (22.72Kb) |
|
7 Comments |
|
  |
Author: anonanon
Date: Dec 24, 2008 12:19
Hi,
I am trying to create a GUI interface for a past assignment.
For academic purposes it uses several vectors and I need a way to show
these vectors visually. I have the basic GUI interface setup.
Would a JTextArea be suitable to display the vectors? And if so, how do
I set that up?
Thanks in advance.
|
| |
|
5 Comments |
|
  |
Author: Mark SpaceMark Space
Date: Dec 24, 2008 09:24
Simon wrote:
> How can I detect a right-click on a hyperlink in a document displayed by
> a JEditorPane (or, more precisely, a popup triggering click)?
>
> I have searched the Web and several people seem to have this question,
> but the best I came up with was to use HyperlinkListener.ACTIVATED and
> ENTERED to keep track of which link is under the cursor and react
> apropritately in a MouseListener, but this appears to be a bit clumsy to me.
>
> Any better ideas?
>
> Cheers,
> Simon
Not ignoring you, I checked this myself briefly and couldn't come up
with any better either. It seems clumsy but it appears to be the only way.
|
| |
|
no comments
|
|
  |
|
|
  |
Author: Mark SpaceMark Space
Date: Dec 24, 2008 09:21
Ken T. wrote:
>
> Does anyone know a simple step by step method to get NetBeans to work
> with JSF, to set up a reasonable development environment?
You might try starting here:
< http://www.netbeans.org/kb/trails/web.html>
I think for more help, we'll need more information. The actual error
message would be a start. Even better would be a short, self-contained,
complete, compilable example that demonstrates the problem. With out
some way to reproduce this, it's hard to guess.
< http://sscce.org/>
|
| |
|
no comments
|
|
|
|
|