32,199 Topics

Member Avatar for
Member Avatar for suzy_naresh
Member Avatar for javaAddict
0
80
Member Avatar for Acidburn

Hey guys, I've got an input stream from the keyboard and wanting to know how much time passes between when the user enters something to when the user next enters something. That makes sence? Ive got a class called Timer [code] public class Counter implements Runnable { boolean startTimer = …

Member Avatar for Ezzaral
0
77
Member Avatar for new_2_java

Hi all, I would like to execute an OS command like "cls" from my Java program, and am getting the following error: [code] D:\ext>java FileExtractionConsole Exception in thread "main" java.lang.NullPointerException at FileExtractionConsole.startExtraction(FileExtractionConsole.java:46) at FileExtractionConsole.main(FileExtractionConsole.java:33) D:\ext> [/code] Here's the snipt of my code: [code] public class FileExtractionConsole { public static void …

Member Avatar for new_2_java
0
258
Member Avatar for fatjoy25

import java.awt.*; import javax.swing.*; import java.awt.event.*; import javax.swing.event.*; import javax.swing.event.*; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class MyPaint extends JApplet implements Runnable { /* Declaring the variables.*/ JPanel panel; JPanel textAreaPanel; JTextArea drawTextArea; JScrollPane drawScrollPane; JLabel line, color, paint,kid,cil; JButton circle, rect, poly, ellipse; JComboBox cbLine, cbFill; GridBagLayout g; …

Member Avatar for jwenting
0
73
Member Avatar for KimJack

Hello All, I have absolutely no experience with linked lists. I have an array of Animals that I am trying to reference from a linked list located in another class. Can anyone point me in the right direction for starting this program? Any assistance would be appreciated. Thanks

Member Avatar for ~s.o.s~
0
96
Member Avatar for ajithraj

haiii friends... pls help me to solve this... I have a listbox set to multiple. I can't get the values from this listbox. <html:select property="relationalOperator" multiple="true" size="9" styleClass="LABEL"> html:options collection="relationalOperatorCombo" labelProperty="name" property="id"/> </html:select> And, i want to get the value of selected one....During a single click it will go to …

0
53
Member Avatar for fatjoy25

import java.awt.*; import javax.swing.*; import java.awt.event.*; import javax.swing.event.*; import javax.swing.event.*; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class MyPaint extends JApplet implements Runnable { /* Declaring the variables.*/ JPanel panel; JPanel textAreaPanel; JTextArea drawTextArea; JScrollPane drawScrollPane; JLabel line, color, paint,kid,cil; JButton circle, rect, poly, ellipse; JComboBox cbLine, cbFill; GridBagLayout g; …

0
49
Member Avatar for reiyn17

hey guys.. can you help me explain this code? public Boolean insertAfter (double key, double dd) { Link current = first1 while (current.dData != key) { current = current.next; if (current == null) Return false; } Link newLink = new Link(dd); if (current == last) { newLink.next = null; last …

Member Avatar for reiyn17
0
129
Member Avatar for ehrugo

This applet I'm supposed to write needs to have a class that checks the range from the low number entered to the highest and gets and prints all the prime numbers found, as well as the whole number square roots, as well as the sum of the whole square roots …

0
51
Member Avatar for Shveetis

Hello every1... I am developing a project in JAVA.. My project is APPLICATION MONITORING WIZARD..!!! Can I get any help..?? Even if I get an idea as to how I start off, will be QUITE helpful.. The applications that I am planning to monitor include : 1.JVM 2.Tomcat server 3.Website …

Member Avatar for Ezzaral
0
83
Member Avatar for balaguru

i need a simple mini project using oracle 9i and java connectivity pls suggest me some topics and ideas ...give some other ideas than usual hotel ,hospital ,student managements ...pls i am in desperate need of it!!

Member Avatar for manu9719198933
-1
83
Member Avatar for fatjoy25

import java.awt.*; import java.lang.Math; import javax.swing.*; import javax.swing.event.*; import java.awt.event.*; import java.awt.Graphics; import java.applet.Applet; /* <APPLET CODE=draw.class WIDTH=600 HEIGHT=200 > </APPLET> */ public class draw extends JApplet implements ActionListener, MouseListener, MouseMotionListener { Button bDraw,bOval, bRect, bRounded,bHeading; Point dot[] = new Point[1000]; JComboBox cbLine,cbFill; Point start, end; int dots = 0; …

0
68
Member Avatar for paurik

i devlop a java application which is intranet application. my appication is is clent-server application. but i have no idea how how can i deploy a jar file on client machine through remote machine.

Member Avatar for schoolsoluction
0
90
Member Avatar for missileh

Hi. I have a JAR file and want it to be executed on another machine in the network. I want to write an application that takes an IP address of a machine in the network and executes the JAR file on that machine. How can i do this??

Member Avatar for jwenting
0
70
Member Avatar for lyndzxnacole0o7

I'm having the hardest time trying to get java to compile in the command prompt, I am using jedit. I have both jre1.6.0 and jdk 1.6.0_10 downloaded

Member Avatar for jwenting
0
40
Member Avatar for sach_ak47

Hi i have read generic collection and its very good and usefull I understand the concept also but i need some real time example where collection is suitable for use please give me some example where we can use collection

Member Avatar for jwenting
0
52
Member Avatar for ashkan3030

Dear My Friends, I made an exclusive choice group like this: choicegroup.append("ADD",null) choicegroup.append("SUB",null) (I abstract the codes) The problem is that I want to say when I click e.g. OK button([B]commands[/B]) it do the adding action if I choose ADD or Subtract if I choose SUB. What should I do …

0
81
Member Avatar for eleonora

Hello, when it asks to place the elements of an unsorted array to a binary tree does this means a heapsort implementation ????? Another thing how can i take two numbers and print all the values between them ?? i mean in the heapsort ? Thanks in advance

0
67
Member Avatar for Dio1080

I been trying to import the list in the text file to the word doc, the thing is, is that I can only get the last line on the text imported while I'm missing the rest of the top. Can somebody help please? [code] import java.util.Scanner; import java.io.*; import java.util.*; …

Member Avatar for iamthwee
0
160
Member Avatar for ladyjade555

[code=java]public class Formal2{ String name; double longitude; double latitude; double distanceFrom; public double getLongitude(){ return longitude; } public void setLongitude(double longitude){ this.longitude = longitude; } public double getLatitude(){ return latitude; } public void setLatitude(double latitude){ this.latitude = latitude; } public String getName(){ return name; } public void setName(String name) { …

Member Avatar for javaAddict
0
104
Member Avatar for obscured47

Hi guys, I have a hexagon class that given the side and the angle of the hexagon, it draws it on the screen (using Polygon class). I need to fill that hexagon with an image. It works if i have a .gif file with a hexagon and place it on …

0
59
Member Avatar for Questions???

Hello, I am a student. In my Java class we are learning about classes and objects this week. To me this has been very difficult. I have written the following bit of code for the program but I cannot get it to run. The piece of the program is designed …

Member Avatar for ~s.o.s~
0
93
Member Avatar for fufu123

the program works and all but i dont want my qts,dms,nks,pns to be in a decimal form i keep changing it but then it doesnt wotk can anybody help me pleasee i really appreciate it am not sure how to improve it..thank you so much.... import java.util.Scanner; public class Program1 …

Member Avatar for fufu123
0
173
Member Avatar for Webbsta

Is there a way i can run a single void from my java class when using a shell/batch command or does it only run the main void when using a command such as "java MYCLASS" I have tried commands such as "java MYCLASS.VOID" or anything similar but im not sure …

Member Avatar for Webbsta
0
109
Member Avatar for eleonora

Hey i want to create a method which counts the nodes from a binary tree that have exactly one child i did that but it returns error :S Can anyone tell me what's going wrong ?? Thanks in advance [CODE] //Count nodes from BinaryTree1 that have exactly one child public …

Member Avatar for eleonora
0
97
Member Avatar for dragon99x

I had this crazy idea of creating a media player using java that would stream files from from my desktop computer, which I would set up some sort of server app for, and talk to a portable client app that I could download on any of the other computers on …

Member Avatar for Phaelax
-2
532
Member Avatar for manushetty_2005

please help us in getting information regarding working of internet browsers(in general IE or Mozilla etc).... API's involved.. we want to develop a server tool that monitors and logs the users internet activity such as sites visited, on client machines in LAN.

Member Avatar for jwenting
0
65
Member Avatar for ashkash

I need to get the current date in the format MM/DD/YYYY and compare it to another string in the same format to see if the current date is greater than the string date. What is the best way of doing this? thanks.

Member Avatar for Ezzaral
0
101
Member Avatar for Webbsta

I'm getting further and further to figuring out how my java program can read from my console application written in vb.net, i have some of my class here that i found on a site: This is mainly to do with reading numbers from input but il change it later. [CODE=java] …

Member Avatar for Webbsta
0
299
Member Avatar for eleonora

Hey, I have to create a program which will accept two lists of words and place the contents of the first list to an [B]unordered [/B] array, to an ordered tree and to a hashtable. then each word in the 2nd list shall be checked whether it is contained in …

Member Avatar for Ezzaral
0
85

The End.