35,618 Topics

Member Avatar for
Member Avatar for eddy556
0
46
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
78
Member Avatar for hani1987

hello I am a BE computer student and needed information for my BE project. The project is as follows We are developing a web application for a company. This involves setting up a wi-fi hotpot for the company. So whenever a user enters the wi-fi area , he should be …

Member Avatar for electron33
-1
78
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
271
Member Avatar for shiyamala

Hi i know hw to read the textfile using filereader and stringtokenizer used to split the data into token,now i want to know hw to assign the readed value into vector and display it in to the jsp. anybody can help me. thankyou [code=JAVA]import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import …

Member Avatar for electron33
0
133
Member Avatar for wolverine_ramir

i don't know how to discuss it clearly but i'll try.. my problem is when my index page loads, the current value of my variable year is null.. so it displays the word null.. ahm, only if i click the submit button that's the time that a value is inserted …

Member Avatar for electron33
0
90
Member Avatar for usman.munir

Hi, I am using a simple code to retrieve values from database. but i am getting error while i retreive an Integer value on line number 3 , 4 5. [CODE] <% line1 while(rs.next()){ line2 String productname = rs.getString(1); line3 int productprice = rs.getInteger(2); line4 int cartid =rs.getInteger(3); line5 int …

Member Avatar for usman.munir
0
92
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
74
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
97
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
54
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
50
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
130
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
52
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
85
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
84
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
69
Member Avatar for Ankita B

hi, im making login page using jsp.user names and password entered are matched wit the db. have placed db connection code in a java classlogin.java...The directory path is webapps->myfolder->all jsp and html files webapps->myfolder->WEB-INF->classes->test->login.java I entered the url in browser also perfectly fine..[url]http://localhost:8085/myfolder/mainpage.jsp[/url] i set the PATH and CLASSPATH variables …

Member Avatar for ~s.o.s~
0
178
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
92
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
72
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
41
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
53
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
82
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
68
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
161
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
106
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
60
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
95
Member Avatar for durahman

I am doing the following process using forms and javabeans: 1. User enter data using a HTML form 2. The form is submiited to form handler for validation using Java bean. 3. If validation is ok data will be inserted into the appropriate table. When tested data entry and validation …

Member Avatar for ~s.o.s~
0
166
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
174
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
111

The End.