32,204 Topics

Member Avatar for
Member Avatar for aveek

i have written a program in which i am drawing using a mouse. however while drawing a new line the previous ones are still being shown. i have called repaint every time the mouse is moved. Can anyone please help.

Member Avatar for BestJewSinceJC
0
85
Member Avatar for joshmo

I have a code that calls a method, but after this call, any code after it is not executed....here is the method call skeleton [code=java] if(//some condition){ //some code myMethod(//some variables); //some code/*not executed*/ }[/code] the calling is done well but the code stays in that method i.e code following …

Member Avatar for joshmo
0
133
Member Avatar for Acegikmo

I don't get where to insert the code and such; I could really use some help with this. :) Here's my java file: (I removed irrelevant stuff) [code=java] package projectprojectile; import java.applet.*; import java.awt.*; import java.io.File; import java.util.Calendar; import java.util.LinkedList; import java.util.List; import javax.swing.JOptionPane; public class Main extends Applet implements …

Member Avatar for Acegikmo
0
464
Member Avatar for cutedipti

A university has few seats vacant for the new academic yea in the various departments. Students from all over the country send in their applications to the admissions department. The applications will be processed & students who have cleared the test criteria will be admitted to the department. It has …

Member Avatar for JamesCherrill
0
109
Member Avatar for sharao

presently iam running my application using the following url [url]http://127.0.0.1:8080/project[/url] without giving the above ip address & port number, can any one suggest alternate way like [url]http://daniweb/project[/url] thnx rajesh

Member Avatar for sharao
0
2K
Member Avatar for MxDev

hi, I've a bug in the following code, i don't know where it is?? is it in the design itself, or the code needs threading especially in the "Swing". The following code is a part of simple word game that display a word with it's correct meaning among wrong ones, …

Member Avatar for MxDev
0
121
Member Avatar for palavi

Hi all, I have a core java application, I am getting the below exception when ever i run this application. I have a java file named Oracpt.java which takes all variables like username password and url from setttings file which from config file. becoase of this below exception im not …

Member Avatar for kvprajapati
0
362
Member Avatar for cutedipti

consider the following snippet: import java.sql.*; public class test { public static void main(String args[]) { try { Class.forNameI"sun.jdbc.odbc.JdbcOdbcDriverManager"); Connection cn; cn=DriverManager.getConnection("jdbc:odbc","username","password"); Statement st=cn.createStatement(); st.executeQuery("select * from emp"); System.out.println("Succeed"); } catch(Exception e) { System.out.println("Faild"); } finall() { system.out.println("Always"); } } } what will be the result

Member Avatar for peter_budo
-1
113
Member Avatar for cutedipti

Which JDBC driner is used to connect a java client application to a database over aTCP/IP connection?

Member Avatar for peter_budo
0
77
Member Avatar for malugirl4

I have to create a maze in which a robot has to follow the set of directions given and I'm so stuck on how to make the robot go through the maze. I have most all of it done but I'm still getting errors. The maze includes 1.safe place 2.chasm …

Member Avatar for VernonDozier
0
97
Member Avatar for sravan953

I have made a Java prog which will accept a word and a sentence, and then prints the number of times the word occurs in the sentence... Here is my code: [CODE]class check_number_word { void check(String w, String s) { int l=s.length(),n=0,d=0; String s1=""; for(int j=1;j<l;j++) { s1=s.substring(d,j); if(s1.equalsIgnoreCase(w)) { …

Member Avatar for BestJewSinceJC
0
161
Member Avatar for BestJewSinceJC

What would be the best way to implement dynamic search? So, for example, given the words: the, then, behemoth, abchemto Typing in 'he' would return all of the above words since they all have he in them. Is the best way to do this using a Trie?

Member Avatar for BestJewSinceJC
0
372
Member Avatar for KirkPatrick

I'm using CsvReader/CsvWriter to read and write my data to csv files. And I have a question about appending lines of data to other certain lines. Lets say I have some data already saved, now I open my other program which has more info that I would like to add …

Member Avatar for KirkPatrick
0
3K
Member Avatar for malugirl4

I have to create a maze in which a robot has to follow the set of directions given and I'm so stuck on how to make the robot go through the maze. I have most all of it done but I'm still getting errors. The maze includes 1.safe place 2.chasm …

Member Avatar for VernonDozier
0
113
Member Avatar for whiteyoh

Hi All, im trying to get an example to work on a main class passing variables to a class to then return the value. This is the method for variables to be passed too [code] import java.lang.Math; class CalcTest { private int area; public int getArea(int height, int width) { …

Member Avatar for PopeJareth
0
108
Member Avatar for the_swan

Hi everybody I interested in mobile application ….. and I want to find some ideas to do them I've heard about making some maps for the world , apply office like (word,eccess,powerpoint..etc) and controlling the devices through mobile but actually I did not like one of them .. So can …

Member Avatar for the_swan
0
181
Member Avatar for suretd

Hi All, I have to compile a servlet WebStocks.java. It does not compile in TextPad as it cannot locate the javax.servlet packages. I have done my homework, so I know, that the servlet package I am looking for is loaded in Tomcat in my directory: C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar I …

Member Avatar for suretd
0
170
Member Avatar for gitech

Hai Friends, i want read data from on ejar file to another jar file during runtime with out uisng network connections(like UDP, Tcp etc) and also with out creating external files, is there any way to read data? please help me.

Member Avatar for gitech
0
141
Member Avatar for wxoklp

Iam doing my comp engg in india...we arent taught C in extreme detail in our univ...is it crucial or wil it make things very simple for me in the future if i make sure i get a high level training in C at this initial stage?

Member Avatar for csurfer
0
195
Member Avatar for Debby0424

Why the functionality of a java based app with file access and file processing methods valuable for this type of business....? I believe that it is valuable because it allows the business to handle mutliple files from all over the wolrd and process them in a timely fashion. Say for …

Member Avatar for sillyboy
0
118
Member Avatar for Iamkishan

HI i am new to programing in general, currently I trying to learn java, but I am having trouble getting the compiler to work I keep on getting this message " 'javac' is not recognized as an internal or external command, operable program or batch file. " I have been …

Member Avatar for di2daer
0
83
Member Avatar for multicoder

Hi, I have an application which is about harvesting the data from html pages, contains an interface. I had implemented it for (like customization of it) some html page to harvest. But jvm hitting me with - [ICODE] Exception in thread "main" java.lang.ExceptionInInitializerError Caused by: java.lang.RuntimeException: Uncompilable source code - …

Member Avatar for multicoder
0
431
Member Avatar for Anish66

hi i m gonna do a project on inventory management ...i dont to how to start up...pls help me

Member Avatar for ithelp
0
41
Member Avatar for sreeram01

Hi all, I want to read the data from the browser what i opened in my browser using java.if can any one knows pls help me.... Thanks all in advanced.... Regards, sreeram

Member Avatar for peter_budo
0
108
Member Avatar for Web_Sailor

Hi I am having trouble reading a file inside constructor from a method. Here is my code:- I can compile my code but I am getting runtime errors. Error [CODE]Exception in thread "main" java.lang.NullPointerException at java.io.FileInputStream.<init>(FileInputStream.java:133) at java.io.FileInputStream.<init>(FileInputStream.java:96) at java.io.FileReader.<init>(FileReader.java:58) at Testwow.readFile(Testwow.java:25) at Testwow.<init>(Testwow.java:13) at Testwow.main(Testwow.java:45) [/CODE] fh = new …

Member Avatar for kvprajapati
0
116
Member Avatar for johndb

Hello I am not an experienced programmer, and I entered some code from a book I am following, to see if it would work but unfortunately I have run into some difficulty. This program prompts the user for the red, green, and blue values, and then fills a rectangle with …

Member Avatar for johndb
0
4K
Member Avatar for gsingh2011

I need to log in to a website with Java, its an https(SSL) site. I have some code that doesn't give me an error but it doesn't log in. I've tried a similar program in python and it didnt login either. I think I'm missing some basic concept about this... …

Member Avatar for gsingh2011
0
173
Member Avatar for jaque322

i have an arraylist, that stores objects from a class called prematricula and every object stored has name and province how i can do to pass the name of the province and the method return the names of the students sorted alfabethically... please if someone can help me....

Member Avatar for jaque322
0
110
Member Avatar for KirkPatrick

Alright my program is giving me a hard time and I will have to briefly explain what it does and when the exception is thrown to give you a better understanding. My program goes off and reads a csv file, once it reads it, it adds the information to my …

Member Avatar for KirkPatrick
0
127
Member Avatar for aakaashjois

How do I create a Java based game??? This is a school assignment given to me. I want to use simple Java programming and create this game?? If you have any ideas please reply... Thanks

Member Avatar for masijade
0
29

The End.