19/07/2018 12:08
Kevin <javarox@bellsouth.net> horrified us with: CP'd over to comp.object without permission. Imagine that. :)

4 answersclick here to view

18/07/2018 12:08
hello all, I am new to java and java applets. i'm trying to interact with a javaapplet on a website. After loading the webpage that contains the applet intoa browser object (in visual basic.net) i was able to to make simple calls tothe java applet - calls such as .getcodebase and .getparameter along with afew others.
i decompiled the java class files for this applet (the web site stores themin a zip file on your local drive) and found that there's mountains offunctions that make up this.... read more

1 answersclick here to view

17/07/2018 12:08
Hi,I need some advise with a java applet. I am nearing completing of the project and am getting a little concerned how long it is taking for the applet to load. I have developed the java applet with Jbuilder using the JDK 1.1.8 as I need to support users with that haven't installed the latest version of the Java Runtime.
So I have been searching the internet trying to see how to speed up the loading process. I've notice that some applets on the web have a loader, that displays a nice.... read more

5 answersclick here to view

16/07/2018 12:08
Hi, I've made a class which extends polygon and implements mouselistener.
When i instantiate one of these classes onto a canvas, the mouselisteners for pressed, released, clicked etc all work fine on the filling of the polygon, however not on the stroke (border/outline).
This means if i have a rectangle with a height of 0 (i.e. it appears as a line) rolling the mouse over it fires no events.
Why is this, and more importantly, is there anything i can do about it? Ill post my code if its ne.... read more

2 answersclick here to view

14/07/2018 12:08
hi, i want to split a file containing username and emailids into 2 parts;and store them separately, in perl its written as,($user,$id) = split / s+/, $line, 2; How can i convert the code in java using regex?

4 answersclick here to view

10/07/2018 12:08
Hi, I have a pure java application which I want to run as a service. Anysuggestions on how to do it ? I saw some articles saying how to use JNIto do it along with C code. But I am looking for a pure Java solution.
Also, some said that -Xrs option of the 'java' command would help. Butwhen I ran the application with 'Xrs' option, I didn't notice anydifference from the run without the option.
Thanks.

2 answersclick here to view

09/07/2018 12:08
How do I make my count() method prettier?TIA fh public class ObjectCounter { Object a; Object b; public ObjectCounter() { Object a = null; Object b = null; } public int count() { if(a == null && b == null) return 0; else if(a != null && b !== null) return 2; else return 1; } public Object getObjectA() { return a; } public Object getObjectB() { return b; } public void setObjectA(Object a) { this.a = a; } public void setObjectB(Object b) {.... read more

3 answersclick here to view

08/07/2018 12:08
I didn't think this would be a trouble also, but apparently it is. I'vecreated a custom object myObject, which has some properties, and a methodInit() which makes all the variables be zero.
The constructor is empty, it's: myObject() {} So anyway, I've created an array this way: myObject[] test = new myObject[100]; No errors. Now, if I type myObject[55].Init(); I get an error (at runtime). I also get an error if I use any other methodfrom the class. However, if I don't create.... read more

2 answersclick here to view

06/07/2018 12:08
I am a new Java developer and I am getting an error when passing an int(primitive) to a method expecting an object: public void echo(Object str){....
} int i = 1;myclass.echo(i); Java complains, but I can send in strings, arrays, etc.
Is there a way to send in ANY type into a method? I would then be ableto determine type of parameter and handle in a switch.
Thank you,JJ

4 answersclick here to view

04/07/2018 12:08
Hardly a Java question, but I'll try my luck.
I've just installed JDK (JDK-1_5_0_04-windows-i586-p.exe) on a WindowsXP machine; or thought that I did. 'java'(.exe) is there in therelevant in directory. But no 'javac'? Am I going mad? TIA, Jon C.

3 answersclick here to view

03/07/2018 12:08
Hello all, I had another question this time regarding arrays. Ok, I understand that arrays are like strings(both of which are objects).I understand that arrays are always objects no matter if they hold either primitives or references to objects such as strings. However, since arrays are objects does that mean that if an element of an array is holding primitives such as integers, do you still need to reference it, is the actual value stored in a variable other than the element in the array. F.... read more

2 answersclick here to view

02/07/2018 12:08
Need a hand with some method logic here, I got all the code written but Iam having an issue trying to get this logic to work. These two methods aredesigned to simplify fractions and convert improper fractions to mixednumbers ( two seperate methods). Take a look and let me know what you guysthink. Thanks. -Joe Also, I am getting a compile error in the last method (simplifyFractions),compiler complains about a unresolved symbol for the variablenewdenomerator. Cant seem to figure out what the dea.... read more

1 answersclick here to view

01/07/2018 12:08
Is there a newsgroup that is dedicated to questions related to coding forand deploying to the Tomcat server?

2 answersclick here to view

30/06/2018 12:08
Hi,I am not sure if this is actually a JAVA issue but, I have written aprogram to parse strings from a log file. The log files are stored inBinary format. I read each line as a string and then split it up bychecking for spaces in between as follows public void SplitString(String x_input) { int start_pos =x_input.indexOf( ); while(start_pos !=-1) { this.m_output.add(x_input.substring(0,start_pos).trim()); this.m_length ++; x_input = (x_input.substring(start_pos)).trim(); start_pos =x.... read more

1 answersclick here to view

28/06/2018 12:08
The jar which ant creates appears to be flawed in some respect. Thejar isn't executable by double-clicking, nor by the command line.
However, the manifest, directory structure and source code appear ok tome. The source code is from Sun, I've only added packageatreides.java; to the first line. How do I narrow down the error,please? ////////////////command line////////////////////// C:>C:>antBuildfile: build.xml clean: [delete] Deleting directory C:javaclasses prepare: [mkdir] Cre.... read more

2 answersclick here to view

eDiscover
Helpforce eDiscover provides technical articles updated each day
Click the logo to go back to the main page
Java

Helpforce eDiscover RSS feed contains the latest technical articles in RSSWe have a vast archive of technical informationJava is a programming language developed by Sun Microsystems (which has since merged into Oracle) and released in 1995 as a core component of the Java platform. With many innovative features, Java is currently one of the most popular programming languages in use, particularly for client-server web applications, with a reported 10 million users.

Search eDiscover
  
Categories

Click an icon to go to that category

Helpforce eDiscover contains articles about Microsoft Windows Helpforce eDiscover contains articles about Apple products and MacOS Helpforce eDiscover contains articles about Linux and POSIX operating systems Helpforce eDiscover contains articles about Helpforce Helpforce has a large variety of technical information and articles for you to read Helpforce eDiscover contains articles about databases, MYSQL, SQL Server Oracle Helpforce eDiscover contains articles about Java, JVM and the JRE Helpforce eDiscover contains articles about the QNX operating system Helpforce eDiscover contains articles about Oracle Solaris and Open Solaris Helpforce eDiscover contains articles about RISC OS, Acorn and the BBC Micro Helpforce eDiscover contains articles about Amiga and AmigaOS