comp.lang.java.help
  Home FAQ Contact Sign in
comp.lang.java.help only
 
Advanced search
December 2008
motuwethfrsasuw
1234567 49
891011121314 50
15161718192021 51
22232425262728 52
293031     1
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.java.help Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  java.telephony         


Author: dsv250
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
  unable to compile class for JSP..         


Author: maya
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
  Generating a Poisson Random Variable         


Author: David 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
  override         


Author: ArunDhaJ
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
  JavaGolmine site has been updated http://javagoldmine.by.ru/index.html         


Author: Labyrinth
Date: Dec 25, 2008 00:25

JavaGoldmine site is updated.

http://javagoldmine.by.ru/index.html

It contains over 50k articles in 50+ categories on all Java topics,
including code snippets, examples and expert views and opinions.
no comments
  java.util.Scanner alternative         


Author: niv
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
  Generating GUI for text based interface?         


Author: anon
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
  array in gui         


Author: anon
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
  Re: How to detect right-click on hyperlink in JEditorPane?         


Author: Mark 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
  Re: Getting started with NetBeans and JSF         


Author: Mark 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
1 2 3 4 5 6 7 8 9