36,051 Topics

Member Avatar for
Member Avatar for AndrewSD

Does anybody know any good tutorials on how to make a web crawler in Java. All I can find is a bunch of code that you have to figure out own your own! I am pretty new to the forums, and have a pretty good experience in java. So..... Any …

Member Avatar for KirkPatrick
0
95
Member Avatar for JKP()

Im new to java and I would like to participate in some small projects.. let me know and I'll be glad to work with yha..

Member Avatar for JKP()
0
95
Member Avatar for دموعي

Create a JAVA applet program that accepts and displays object‟s details on respective GUI components. The Applet consists of seven GUI components such as two labels Name and Price followed by two textfields of size 10 respectively. There are two buttons labeled as ADD and DISPLAY followed by a Textarea. …

Member Avatar for دموعي
0
101
Member Avatar for peter_budo

I'm trying to get hang of custom events and listeners. I found example of single event-listener, but I'm curious how to extend from single method to multiple that are related. [code=Java]public interface CountListener{ public void countEvent(int count); public void multiplyEvent(int multi); }[/code] [code=Java]public class Counter implements CountListener{ public void countEvent(int …

Member Avatar for svedrenne
0
3K
Member Avatar for arshi9464

i am unable to understand WHAT MAKES THE BYTECODE IN JAVA, MACHINE INDEPENDENT. I mean how does the bytecode built after compilation becomes machine independent, or what are the properties that make the bytecode machine independent? EXAMPLE:- If i compiled a program on a x86-64 machine and after sometime i …

Member Avatar for ~s.o.s~
0
170
Member Avatar for rkyakkala

Hi, Note:selected item is not seen in the drop down list its going to default one. In my jsp application i am having two drop down lists (contract and devicename) when i selected contract name proper device name is loading in the select list of device name But in contract …

0
69
Member Avatar for softswing

Dear Friends, Am using inifile management,want to read and update ini files, for this am using properties class methods (below). but settings in ini files are changed while am updating, properties.load(inputstream); properties.put(writeIDName, writeData); please tell me how we can update inifile with out affecting the exisiting content in ini file,if …

Member Avatar for parry_kulk
0
176
Member Avatar for Letscode

Hey, I'm new to Javascript and I have a frameset and I need to dynamically change the Sizes of each frame. How to I do that?? This is my frameset definition:: <frameset rows="8%,87%,5%" > <frame id="logo" name="banner" src="logo.aspx" noResize scrolling="no"> <FRAMESET cols="73%,27%"> <FRAME id="mainframe" name="mainframe" src="Default.aspx" scrolling="no"> <FRAMESET rows="8%,92%"> <FRAME …

Member Avatar for parith
0
179
Member Avatar for maria_megha

can you explain with a simple example what is jsp pagination? i ve been trying to understand the folowing code in a project..pls help ********** [code]if(appList!=null){ int pageNoPerPage=0; // Per page only 5 Page Numbers will display if(numPages%2==0) pageNoPerPage=numPages/2; // 9/2 => 4 page no per page else pageNoPerPage=(numPages/2)+1; // …

0
66
Member Avatar for abeautifulmind

Hi techies, i'm a final year student of B.Tech in C.S from India, for final year project i'v chosen e-commerce, the platform would be Java, using jsp for coding, dreamweaver for designing...n ms access for data base. Guys, pls help me out in deciding how should i go about it.....i …

Member Avatar for ahmed e-com
0
3K
Member Avatar for aligajani

I want to sort the getSal values in the myList. It should be a sorting algorithm implementation so that adding or removing objects does not affect the performance. [CODE]import java.util.*; public class payment { public String name; public int salary; void setName(String _name) { name = _name; } String getName() …

Member Avatar for aligajani
0
176
Member Avatar for khurram.1987

Hi, i am trying to connect to MySQL database [ICODE]mysql[/ICODE] using JAVA .. using code given below, [CODE]import java.sql.*; public class dbExample{ public static void main(String[] args) { System.out.println("Listing all table name in Database!"); Connection con = null; String url = "jdbc:mysql://localhost:3306/"; String db = "mydb"; String driver = "com.mysql.jdbc.Driver"; …

Member Avatar for khurram.1987
0
161
Member Avatar for hao90

i[CODE]mport javax.swing.*; public class ReverseArray { public static void reverse(int b[]){ int left = 0; int right = b.length -1; while(left<right){ //exchange the left and right elements int temp = b[left]; b[left] = b[right]; b[right] = temp; left++; right--; } } public static void main(String a[]){ } } [/CODE] how …

Member Avatar for hao90
0
114
Member Avatar for daudiam

Consider the following codes : File : C3.java [CODE]package G; public class C3 { protected int a=5; }[/CODE] File : R3.java [CODE]import G.C3; class R2 extends C3 { void doit() { a=7; } } class R1 extends R2 { void doit(R2 b) { a=8; b.a=1; // (1) } }[/CODE] It …

Member Avatar for daudiam
0
209
Member Avatar for ronnieaka

[B]intro: [/B]i'm a 19yr old in 3rd yr doing btech in computer science. i chose to graduate in that coz i was interested in computers and programming,not like other brickheads wanting to do mba after a technical graduation. ok, in the last 2 yrs i've progressed only as much to …

Member Avatar for absolute_zero
0
316
Member Avatar for pigmario

Hi.. can anyone understand this piece of flowchart,i dont understand. the flow cart is in the attachment. and below is my source code implementation [code]input int n; int i=0,a,b; if(n>0){ while(i<a){ if(n>i){ if(n>a){ if(b>a) b=1; }else{ n=a; if(n*b >i) b=1; } }else{ n=1; } i++; } }[/code] i dont know …

Member Avatar for febrilian samo'
0
742
Member Avatar for cms271828

Hi, I have 2 applet problems. 1) I uploaded a new jar file to server to replace old one. When I load web page in browser for that applet (on this pc), I keep getting the old jar file getting loaded as the applet (even on different browsers on this …

Member Avatar for Akill10
0
229
Member Avatar for ms88

Hi there, I have some problem with accessing API using PHP. Here is the story : I use PHP as my main script on my webserver. I want to retrieve data in database server (oversea). The database server provides API and it's available to download. So I download the API …

Member Avatar for mdew_47
-1
907
Member Avatar for hao90

[CODE]public class Human { private String name; public Human(String name){ this.name = name; } public String getName(){ return name; } public String toString(){ return "Human " + getName(); } } interface Electrician{ public String changeBulb(); } interface Plumber{ public String unplugDrain(); } class HandyPerson extends Human implements Electrician, Plumber{ public …

Member Avatar for hao90
0
113
Member Avatar for nikita.chandra

Hi i am using a popup calendar for my project which is in dd/mm/yyyy format and mysql database has the date format as yyyy-mm-dd, my issue is that when i insert date in the database following exception occurs : Exception foundcom.mysql.jdbc.MysqlDataTruncation: Data truncation: Incorrect date value: '29/12/2010' for column 'DateOfJourney' …

Member Avatar for Shanti C
0
88
Member Avatar for gedas

hey, i have been asking for help for almost a week and there is no reply what so ever. from anyone ... please help i am so so so stuck and i have been stuck for days.. i am creating web services in netbeans (ws-jax) i want to return array …

Member Avatar for gedas
0
126
Member Avatar for daudiam

[CODE]class R2 { final int t; void doit(){ t=7; } }[/CODE] Blank finals allow us to declare a final variable without explicitly initializing it. We can initialize it only once later. Then, why is th above code not working ?

Member Avatar for daudiam
0
162
Member Avatar for harry.jhone

Hi, I am new member. I am not from any technical background but still like very much on how to develop application software and doing research regularly. My question from expert like you is Is there any powerfully software available that automatically create software without and coding knowledge. still conceptualizations …

Member Avatar for kvprajapati
0
92
Member Avatar for WolfShield

Hey everyone, I'm programming (obviously) and have run into a challenge. I'll cut right to the chase, if someone would tell me how to compare a variable to each item in an array I would be very grateful. Thanks for the help! -[B][I]WolfShield[/I][/B]

Member Avatar for ~s.o.s~
0
92
Member Avatar for daudiam

I can understand that the subtype covariance relation should not hold for parameterized types, but why should it hold for arrays ? One of the books (Khalid Moghul) said [QUOTE]This relation holds for arrays because the element type is available at runtime[/QUOTE] How does the element type being available at …

Member Avatar for daudiam
0
171
Member Avatar for plasticfood
Member Avatar for jlovesfishiee

Does anyone know why the SessionBean in the netbeans keep disappearing? I did nothing but some hard coding. But when I go back to the design page, I realised that my SessionBean is no longer there. In fact it has happened several times and even resetting netbeans doesn't help. Is …

Member Avatar for jlovesfishiee
0
91
Member Avatar for jon.kiparsky

Has anyone got any clever tricks for determining the size of the contents of a directory without doing the obvious (descend recursively and count bytes)? I'm trying to make a progress bar happen for a recursive descend-read-and-load of a directory, and it would be cool if I could track it …

Member Avatar for jon.kiparsky
0
337
Member Avatar for prem2

Dear team, I have done some java programs .Still i am confused what is the difference between j2se vs j2ee vs j2me . Can any one explain what is the diffrence . I want to do sun certificate in java.Can any one have idea about the sun certificate. Thank you, …

Member Avatar for ~s.o.s~
0
1K
Member Avatar for bangor_boy

Few questions on over riding. I am interiting a method openRead from another class, the method is to be overridden so that the scanner class uses the provided delimiter pattern, which is referenced. I need to make use of the scanner method. method from another class [CODE]public boolean openRead() throws …

Member Avatar for pbl
0
111
Member Avatar for usiyalla

hai i want to embed browser in my java program i google and find JDIC.I dont know how to use it. So i really wanna ask can i use Jdic to emmbed browser in my java program. Is there any good tutorial. .

Member Avatar for usiyalla
0
127
Member Avatar for gedas

hey, how do you return array value from the server operation/method back to the client. i create operations in the server using the "design view" and by adding operation where i declare return value and parameters of the method. the project is created in net beans. please help i been …

0
89
Member Avatar for helpplx

Hello guys, this is my first jsp thread ever so excuse me if it's a bit retarded, anyways, me and my mate are creating a webpage in .jsp , a project in IntellaJ 10.0 and we've been using apache tomcat to view the progress of the webpage but now it …

Member Avatar for Shanti C
0
1K
Member Avatar for sijothomas

Dear friends... Here i am trying to use openCV in java using NETBEANS(windows XP).., For that i did the following .. [B]1-Install OpenCV-2.2.0-win32-vs2010.exe in C:\openCV 2-Then i put the javaCV and JNA in the library (System path.) 3-The i use thae following code in the netbeans[/B] [CODE] package samplejavacv; import …

0
70
Member Avatar for compaquser

Hi, I'm looking for some project ideas for my postgraduate studies.. am interested in embeded technologies with wireless data mining. Please could people suggest possible topic related the field am interested in.Reply me as soon as possible. The platform i plan to develop is Java. Thank you.

0
50
Member Avatar for xuexue

hi guys, i am generating a certain element using javascript inside a table.. now, my problem is that, inside a cell, i will input a text and a textbox.. if the sequence is like this, text textbox both displays in the screen, if it's like this, textbox text only the …

Member Avatar for xuexue
0
104
Member Avatar for bizzystar4ever

I am sorry again I have exam tomorrow this program like that exam questions I think so so I need to learn how I can do it program if someone help me and thank you so much Question:Train stations often provide ticket machines that print a ticket when a customer …

Member Avatar for Eric Cute
0
104
Member Avatar for bizzystar4ever

hi I need to this program I didn't understand this program and I couldn't anywhere someone is help me A Salesperson at a company receives a set salary each month plus commission based on the number of products sold during the month Create a Payroll Program that can do the …

Member Avatar for Eric Cute
0
148
Member Avatar for aligajani

Hi. I have this code but I want it to store the same data and function using objects. However, I would like to also know how to get information from the objects in an ArrayList. Currently the information is stored directly without the using of objects. I also want to …

Member Avatar for Eric Cute
0
171
Member Avatar for Mike516

Can anyone please give me an example of passing information FROM java to PHP and vise versa.

Member Avatar for jkon
0
152
Member Avatar for renovatiotr

I have a HW. It must be sent to the teacher in 12 hours. Any help would be great. I need to do this using JSplitPane: [URL="http://javafaq.nu/free-swing-book/Chapter8_files/image002.gif"]http://javafaq.nu/free-swing-book/Chapter8_files/image002.gif[/URL] There are moving balls in seperate panels(not imaages). Smaller the panel's area, faster the balls move. I did the JSplitPane and Panels but …

0
59
Member Avatar for cielle

Hi all, I am trying to apply Hamming window on my lengthy sound data soundSample[1000] with window length 100. Then proceed with FFT. And i found that java does have the package for Hamming window and FFT. As below, [url]http://code.compartmental.net/minim/javadoc/ddf/minim/analysis/FFT.html[/url] [url]http://marf.sourceforge.net/api/marf/math/Algorithms.Hamming.html[/url] But i hardly find an example that illustrate how …

Member Avatar for quuba
0
1K
Member Avatar for rakesh4java

[CODE]import java.io.*; import java.text.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class getname extends HttpServlet { public void init(ServletConfig config) throws ServletException { super.init(config); } public void destroy() { } public void doPost(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException { String name = null; PrintWriter out = response.getWriter(); if(request.getParameter("txtname") != null) …

Member Avatar for rakesh4java
0
25K
Member Avatar for bibiki

I am working on this exercise: Write an application that asks its user to type a complete sentence on one line. The application then displays in the console window the words in the sentence, one word per line, less any punctuation. I have the following code: [CODE] import javax.swing.*; import …

Member Avatar for bibiki
0
148
Member Avatar for axa121

Hi, I've decided to make a hangman game. I made this in Python last year, however I'm a little bit stick in Java, since I'm quite new to as well as Swing. Anyway, the problem I'm having is that my while loop keeps terminating if I enter 1 incorrect letter, …

Member Avatar for axa121
0
236
Member Avatar for bleedi

Hey, I'm trying to get a random number for a small game which lights up random lights. I can't figure out a way to get the number random. I've tried seeding the Random() function with current time, but it's not working. It always lights up the third light. Here's my …

Member Avatar for ~s.o.s~
0
2K
Member Avatar for maria_megha

In a login page of a jsp project which is almost nearing completion I created a link to google..While clicking it says page cannot be displayed?.What can be the posible reasons?

Member Avatar for javaAddict
0
59
Member Avatar for daudiam

Consider the following code : [CODE]class R2<E> { E a; E get() { return a; } void set(E a) { this.a=a; } } class R3 { void doit(R2 a) // (1) { a.set(new Integer(5)); } }[/CODE] When I compile the file containing class R3, it rightly gives an unchecked warning …

Member Avatar for daudiam
0
167
Member Avatar for sthanner
Member Avatar for Akill10
0
66
Member Avatar for emilybose

Hi, I want to read an xml file thru java..all examples in google r of same type.... my xml file shows <?xml version="1.0" encoding="UTF-8" ?> - <checkstyle version="5.3"> - <file name="C:\Checkstyle\Junit\LLU.java"> <error line="2" column="8" severity="error" message="Unused import - java.io.FileWriter." source="com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck" /> <error line="3" column="8" severity="error" message="Unused import - java.io.IOException." source="com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck" …

0
35

The End.