36,051 Topics

Member Avatar for
Member Avatar for Izzywizz

Hello I am a fairly new to Java, below I have created a program for calculating the distance between two cites that is inputed by the user. For the second part of my program I need to have a menu system and the constant SPEED value to change according to …

Member Avatar for Izzywizz
0
136
Member Avatar for kolibrizas

As i paint any figure in Java, the lines don't look smooth and I clearly see pixels. Any not very difficult solutions?

Member Avatar for kolibrizas
0
112
Member Avatar for divya2909

hi everyone divya hea..i'm new to java..i gotta do a inventory project in java..i've been told its simple..but i just dont seem to know how to do it..pls help..:Spls someone submit the code..i've attached the project details as images pls jus c it..thnx

Member Avatar for divya2909
0
76
Member Avatar for Nightryno

Hello, I've worked on some code for a project I have to do but I'm a little unsure about a few parts that I was hoping somebody could provide some clarity on. Here is the project that I'm working on with the code and question on it to follow: Write …

Member Avatar for GTJava
0
166
Member Avatar for topest1

Hello all, I m a newbie in java, I m writing code to change the text of the JLabel on the mouse over to the JButton I m facing some problem in Updating [B]Initial Label:[/B] [ATTACH]12891[/ATTACH] [B]After setText:[/B] [ATTACH]12892[/ATTACH] label.setText(); It doesn't update properly New text gets overwritten on old …

Member Avatar for topest1
0
611
Member Avatar for musthafa.aj

i successfully edited windows registry using java API... BUT THE PROBLEM IS whether i need to reboot os or not... because after editing it has no effect... if i need to reboot then how can i skip it(i strictly dont like to reboot...)... any java snippet available,, plz....

Member Avatar for kdkanishka
0
183
Member Avatar for cms271828

Hi, I'm building an application and I want to it to play mp3 files. I have it working, basically by installing JMF2.1.1e, and then I add its jmf.jar file to the build path of the project within eclipse. When I then jar up the project, and place on desktop, it …

Member Avatar for mlikesit
0
470
Member Avatar for aakaashjois

Can anyone mention all the math functions i require for making a scientific calculator. I am making a CUI version of it (The one which is opened in cmd).

Member Avatar for kdkanishka
0
126
Member Avatar for SORelena

please help me ^_^ I want using thread in this program but I don't know ..?? ____________________________________________________ [CODE]import java.util.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; //------------------------------------------------------------------------------------------------ public class MyApp extends JFrame { // Data static boolean stopped = true; // Is the counting stopped? (True or False) --> shared variable …

Member Avatar for SORelena
-2
102
Member Avatar for rahul8284

hi all, i made a web application through netbeans and in its web.xml file i set the session timeout as according to my requirement(let's say 1 min.)and then i made a class implementing sessionlistener and in its session destroyed method i removed the atribute(say empno) from session. The whole application …

Member Avatar for parry_kulk
0
79
Member Avatar for ishlux

Hi all, I have connected the mysql database......but if i run my jsp code, it is giving an error..........whats the main reason for this. I have gone through some cases based on database connection, in that they said we have to copy mysqlconnector.jar file in lib folder of jdk.... but …

Member Avatar for peter_budo
0
91
Member Avatar for bonzi200x

I need to implement a huge array of 2100000 integer elements. I have to find duplicate elements in this array which means there will be lot of search. Can you please suggest me an efficient way to implement this? What collection to use and how to search.

Member Avatar for JamesCherrill
1
113
Member Avatar for aarya

i have experience in php but i need to persue my career in JSP. Anybody suggect the site where i get jsp freelance project. i am ready to project free also.i have very good knowledge in j2ee application(swing.struts,ejb,javabeans) and have very good knowledge in web technology.

Member Avatar for peter_budo
1
179
Member Avatar for may781

Hi I am very new to java as its part of my course and I am stuck I have written part of this basic code below [code] import java.util.Scanner; import java.io.File; import java.io.IOException; import java.awt.image.BufferedImage; import javax.imageio.imageIO; import.java.awt.Color; public class FinalExam { public static void main(String [] args) throws IOException …

Member Avatar for javaAddict
0
106
Member Avatar for Solani

Hi, I was just wondering why my program wouldn't output the elements that I entered. Thanks in advance. [CODE]//Scanner utility import java.util.Scanner; public class A4 { public static void main(String[] args) { //Reads user input. Scanner inputReader = new Scanner(System.in); //Declares an array,size of the array is 10. int[] elements=new …

Member Avatar for masijade
0
117
Member Avatar for adams161

I was planning on releasing the source of my applet but I wanted to wait till i was done to do that. It got decompiled before i was ready. Is there any practical way to prevent decompiling? i googled and all the articals said how easy it is to decompile …

Member Avatar for dleskov
0
94
Member Avatar for lil_panda
Member Avatar for gregoryalussier
-1
732
Member Avatar for jehad

hi i am not famelier with this site and i dont know how to ask for help i want to implement breadth first and depth first search for solving 8 buzzel problem may you help me?

Member Avatar for kvprajapati
0
126
Member Avatar for soeppp

Hi all..i make a program use javascript to call VB.Net function..but it doesn't work...can somebody help me to check this code... [code=vb.net] Imports System.Runtime.InteropServices <ComVisible(True)> _ Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load WebBrowser1.ObjectForScripting = True WebBrowser1.DocumentText = "<Script language='JavaScript'>" & vbCrLf …

Member Avatar for shazi786
0
139
Member Avatar for intelnf09

Hello I have an assignment that is due and am in need of some dire help. I would appreciate all the help that I can get. Please bear with me. I am new to Java and Daniweb. I have to create a java application that displays the product number, product …

Member Avatar for intelnf09
0
1K
Member Avatar for vinaykumar1690

I recently downloaded the Eclipse(Ganymede) EE editor.I also downloaded the web application server community(WASCE 2.1) edition from IBM. I started off with a simple HelloWorld web application.i just displayed the msg in the default index.jsp page. When I deploy the application on the WASCE server the web browser is showing …

0
57
Member Avatar for sah701

Hi all, I'm a computer science student in my last year. I need an idea for my graduation project. I prefer JAVA as a programming language. I'm trying to implement a web browser but I think a web browser is a traditional idea so I am looking for a new …

Member Avatar for peter_budo
-1
33
Member Avatar for xen2676

I have to write a class names Hexagon that extends the superclass GeometricObject. This is what I have could anyone help me pleas? [code] public class Hexagon extends GeometricObject{ private double side; /**Construct a no args constructor with a defaukt side*/ public Hexagon(){ //Implement it } /**Construct a Hexagon with …

0
40
Member Avatar for ronakp25

Hi I have a requirement in my project to show a dynamic tree on the left hand side of the page and on clicking on tree node, content will be displayed on the right hand side as the main body.Also there is one submit button+ pagination support on the table …

0
59
Member Avatar for farag
Member Avatar for Katark

Hello, Im studying java in high school. Im building a project that containts ZBuffer so I have a problem impleting it with 3D models cuz I have a problem getting all of the pixel in a face that is made of 3 dots could some one suggest an algorithim for …

0
55
Member Avatar for reyarita

enter 5 nodes if there is a number "3" entered, a number "4" is automatically inputed at the right side of number "3". if there is a number "2" entered, a number "1" is automatically inputed at the left side of number "2". can you help me dudes you see …

Member Avatar for BestJewSinceJC
0
79
Member Avatar for Spirate

I already have the application run on my first server... and now i want try to run this application on the backup server. I have installed the tomcat 6.0.14, sql server 2005 and jre1.5.0_12. when i try to run this application this error was come... Can somebody tell me what …

Member Avatar for masijade
0
164
Member Avatar for kekekerush

If this isn't the right place to ask about JVM, then please direct me to the correct place, thank you. :) Anyways, I was wondering about the arraylength command. Would I be able to use that in order to find the length of rows and columns in a predefined matrix? …

Member Avatar for BestJewSinceJC
0
92
Member Avatar for RoflNinja

Hello again, got another Java question. I am trying to draw an oval from the Alien class to the Canvas in the Game class. Here is the code [CODE]import javax.swing.*; import java.awt.*; /** * The Evil Ovals! * * @author Eric Foertsch * @version Nov 2009(1.0.0a) */ public class Alien …

Member Avatar for adams161
0
565
Member Avatar for Philip435

Hey I need some help with my java game Im making. I wont to have an menu with 4 options, startgame, highscore, option and quit. They quit button is easy I just setVisible(false) but when i click on the other buttons I wont to remove the buttons and include new …

Member Avatar for Ezzaral
0
116
Member Avatar for smoothe19

welll it is just a program that generates 2 random numbers for the user...the user inputs their answer and if it is correct it adds 1pt to their score. But then it is also supposed to generate a new problem, but I do not know how to code that in. …

Member Avatar for smoothe19
0
135
Member Avatar for starboy

Hi, everybody. i want to get file name from html file input form using jsp. my codes are followed as: [CODE] <table> <tr> <td > <input type="file" id="csvfilebrowse" name="csvfilebrowse" value="" width="400px" style="width:400px; height:20px" onChange="getcsvfilename();"> <script type="text/javascript"> // <![CDATA[ function getcsvfilename() { var v_csvfileName = ''; v_csvfileName += document.getElementById('csvfilebrowse').value; getCSVFileContents(v_csvfileName); }; …

Member Avatar for peter_budo
0
159
Member Avatar for smart.java6

Hi! Dear Friends.. Can you please help me to answer : Can mutation testing be successfully used in an industrial environment? Thanks!

Member Avatar for gusano79
0
78
Member Avatar for Nagarajan.M

please tell me the reason for the error.[code]new Double("25D"); // Ok new Long("25L"); // Error[/code]

Member Avatar for majestic0110
0
80
Member Avatar for schandru

I need java program for SHA message digest and encrytion and decryption in RSA

Member Avatar for UIT
-3
129
Member Avatar for MxDev

Hi guy, I writing a simple syntax highlighting code which has loop due to comparisons of the reserved keyword against the input text , the code is a little bit processor hungry so, I decided to put the expensive loop on a separate thread, but with no good, in addition …

Member Avatar for masijade
0
91
Member Avatar for emcee123

Guys newbie here, I need your help. I need to create a program that will compute for the following entered values and will determine the equivalent grade: Formulas: Midterm Quizzes = 30% Midterm CS = 20% Midterm Exam = 50% Final Quizzes = 40% Final CS = 10% Final Exam …

Member Avatar for emcee123
-1
115
Member Avatar for Ryujin89

I have an program that allows a user to input their employee name and number and then their hourly wage and their total number of regular hours and overtime hours. Then writes out the data to a binary file. The program I need assistance with reads in that file, adds …

Member Avatar for AndreiDMS
0
248
Member Avatar for Nightryno

Hello, I am hoping that somebody can help to provide some guidance on this for me. I am tasked with writing this class for a Java class I'm taking: Write a class encapsulating the concept of coins, assuming that coins have the following attributes: a number of quarters, a number …

Member Avatar for JamesCherrill
0
231
Member Avatar for bthug211

Please help me ... a NullPointerException appears here's the codes import java.util.Random; public class Dice { Random r =new Random(); int sides; //constructor public Dice(int s){ sides = s; } //roll method depending on sides on top public int roll(){ return r.nextInt(sides-1)+1; } } // end of class public class …

0
89
Member Avatar for adams161

I"ve thought i have noticed some strange behavior after compiling. most of the time i compile the class files update with my changes. Now and then i feel i need to delete my class files in the folder and do essentially a rebuild all to make the program start working …

Member Avatar for masijade
0
108
Member Avatar for andypop

Hello Daniweb, I am working on a program, a basic poker game. I've run into a problem I can't seem to solve for the life of me, after hours of googling I thought I'd ask here. I have a Dealer class that basically controls the back end of the came, …

Member Avatar for BestJewSinceJC
0
3K
Member Avatar for JavaOwnsMe

Hey guys and gals, So for my Java class, (which I have been struggling all semester with) we are supposed to break down a code and say which park of the code does what and why. I selected a simple program that creates a bar graph. If anyone could give …

Member Avatar for BestJewSinceJC
0
160
Member Avatar for Murderality

Hi there, I'm relatively new and I'm making a program that reads reads a txt. file stores it in an array, validates and finally displays back. However I'm not getting the desired display when I tell my program to display txt. file contents, I get some of the correct content …

0
62
Member Avatar for Himerz

Hi all, I cant get my brain around the logic of making a check box add a specific color when it is checked. Also, when the other boxes are check, it will add that color to the selected color as well. here is my code: [CODE]import java.awt.BorderLayout; import java.awt.Color; import …

Member Avatar for adams161
0
100
Member Avatar for joewazen

Hello, I have an interface containing a table, i need to link that table to the DB Table so that it will automatically reflect the changes done in the DB Table to the Interface table. i.e: if someone (manually or another WEB Application) updated the DB table i want the …

Member Avatar for MxDev
0
146
Member Avatar for YingKang

I am writing a java applet that calculate heat index and wind chill. it requires the user to input temperature , wind speed and humidity, and then let the user choose either Metric ( kph, °C) or English (mph, °F) I have some problems with the code. First, the Calculate …

Member Avatar for YingKang
0
123
Member Avatar for glenlivet

I'm pretty new to java but have lots of coding experience with ruby, c and gui with gtk2 and qt. I'm trying to understand (and get rid of) the dead space to the far left portion of the window. The split panes have white backgrounds to separate it from the …

Member Avatar for glenlivet
0
188
Member Avatar for arunjassiar

Hi Guys, any one can reply me on if we can do some thing like in java or not sure for example [url]http://www.screentoaster.com/[/url] click on ?start recording?. [url]http://screenr.com/[/url] click on ?Record your screen cast now? [url]http://www.screencast-o-matic.com/[/url] click on ?Create? button. , basically i want transparent frame on top of any …

0
54

The End.