35,618 Topics

Member Avatar for
Member Avatar for grisha83

Hello, I was reading a book and it says that when we want to add new Node that is not in the Head we have make a selection i.e. selection.addNodAfter(element), before we initiate our method. The question is where do i have to do this "selection"? in my main or …

Member Avatar for BestJewSinceJC
0
122
Member Avatar for llemes4011

What are beans? I've seen references to them, but when looking up an explanation, I always get lost and confused.....

Member Avatar for JamesCherrill
0
40
Member Avatar for yas.alvarez

Hi everyone! I need your help!! :S I have an app that open a page(JSP) on a browser. I want it when i open the page, it executes some code and then close automatically. Can i do that?? if yes, how can i do that?? please i hope you can …

Member Avatar for hardik.rajani
0
59
Member Avatar for osirion666

Okay heres the problem i have stored Phone numbers from a check box into an array i want to replace #NUMBERS# in the String URL with a value from the array numbers[] example : number[1] = 0000 Before: url:[url]http://www.sendmessgae.com/send?#NUMBERS[/url] After: url:[url]http://www.sendmessgae.com/send?0000[/url] [code] String url = "http://www.sendmessgae.com/send?#NUMBERS" for (int i = …

Member Avatar for hardik.rajani
0
138
Member Avatar for kadamati

hi i have a problem with my java program.i can compile and run the java program if i keep them in jdk\bin folder, but i can only compile and can not run if i kept the java program in any other location. can anyone tell me where i'm doing wrong. …

Member Avatar for abbie
0
103
Member Avatar for lkw8888

This is chatting program using etherframe packet. I finished crc, gui , making packet and sending packet. but I can't implement stop and wait timeout resend... I can't implement it.. can anybody help me? import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; import java.io.*; import java.net.*; public class ChatJin implements …

Member Avatar for lkw8888
0
253
Member Avatar for rudypooh786

Write a Java application that creates an array of int initialised with the following numbers: 1 4 9 16 17 21 25 33 37 40 and reverses the contents of the array such that the value in the first element is the value that was at the last element and …

Member Avatar for verruckt24
0
144
Member Avatar for AirmanTheGreat

Hello, I seem to have encountered a problem with this code. [code=java] try { String changeC1 = JOptionPane.showInputDialog (null, "Change the dimensions of silo 1? (y/n)"); } catch (NullPointerException e) { String changeC1 = "n"; // probably also be a good idea to log the fact an exception occured. } …

Member Avatar for AirmanTheGreat
0
175
Member Avatar for freddiecool

Hi, i made a calendar program but now i need to import- export my events with iCal/vCal, any ideas on how to go about. I cant find any tutorial or documentation on it

Member Avatar for Ezzaral
0
214
Member Avatar for number87

I am doing a game and I need to reset the graphics back to its original picture once a new game begins, however when I click the new game button, everything else resets but the graphics do not even though I called repaint. I have included the code for my …

Member Avatar for BestJewSinceJC
0
2K
Member Avatar for ramborambo

Hey need lots of help on arrays! this is the exercise... 1. Write a Java application that creates an array of int initialised with the following numbers: 1 4 9 16 17 21 25 33 37 40 and reverses the contents of the array such that the value in the …

Member Avatar for BestJewSinceJC
0
128
Member Avatar for gabec94

hi! i have written a program that takes a random number from 0-999, 10000 times. I have the program calculating how many times each number comes up randomly, and finds the mode. But my program doesn't include how to find multiple largest numbers, ex. 2 and 4 each come up …

Member Avatar for gabec94
0
248
Member Avatar for puk

Hi, I have a line chart that iv created using jfreechart. The graph has six lines.when the graph comes up, there are no lines on it.This is delibrate. Iv also made six check boxes. The problem i have is that when the check boxes are checked, the lines are supposed …

Member Avatar for BestJewSinceJC
0
87
Member Avatar for jrobw

hi! i have to write a gui window, which draws sierpinskys triangle recursively, i have one main class: [CODE]package triangleMod; import java.awt.Dimension; import java.awt.Frame; import java.awt.Point; import javax.swing.JFrame; public class Main extends Frame{ static Point a; static Point b; static Point c; static Triangle tryAngle; static JFrame frame; private static …

Member Avatar for quuba
0
398
Member Avatar for ramborambo

Hey guys! i need help on reversing numbers in descending order. public class ArrayExercise1 { public static void main(String[] args) { int[] values = new int[10]; values[ 0 ] = 1; values[ 1 ] = 4; values[ 2 ] = 9; values[ 3 ] = 16; values[ 4 ] = …

Member Avatar for ramborambo
0
263
Member Avatar for giri.pankaj

Have written an unscrambler in java. This takes in a scrambled word for input and returns the unscrambled word. The way it works is that it creates all permutations of the provided word (I have borrowed the permutation generating code from daniweb i guess) and compares each word to an …

Member Avatar for iamthwee
0
1K
Member Avatar for TaubBaer

I had been creating 5 files and I kept hitting the wall. Hope that you will be able to help me pinpoint the problems. (I am not an programmer by the way.) I had been researching for more details on those problems, no luck. Enclosed are 5 files that I …

Member Avatar for TaubBaer
0
554
Member Avatar for raghuprasad

hi, I am able to display a single image from the database on a webpage using the following code: rs1 = st1.executeQuery("select image from pictures where id='5'"); if(rs1.next()){ int len = imgLen.length(); byte [] rb = new byte[len]; InputStream readImg = rs1.getBinaryStream(1); int index=readImg.read(rb, 0, len); System.out.println("index"+index); st1.close(); response.reset(); response.setContentType("image/jpg"); …

Member Avatar for kvprajapati
0
784
Member Avatar for shahbaz5144842

Hi to all ! Im new to java n i m working on Project of Web base Image Annotation Tool using jsp and java i have to save n retrieve image in to database which im using is mysql How i can store image in to database not the refference …

Member Avatar for deepalihanand
0
107
Member Avatar for KirkPatrick

I have been having a little trouble getting my program to output the results I am wanting. At first I was having trouble with a cast exception at this line: [code]out = (ParseResult[]) ipHostsFound.toArray();[/code] The cast exception was: [code][Ljava.lang.Object; cannot be cast to [Lfilelocation.struct.ParseResult;[/code] So I ended up changing it …

Member Avatar for BestJewSinceJC
0
92
Member Avatar for murrple_1

Hey All, I've been working on this code for a while now, but can't quite come up with a working solution. I'm trying to make a specially designed ImageButton, which extends JButton. Basically, it replaces the regular JButton image with another image. I've figured out everything except this. Every button …

Member Avatar for murrple_1
0
149
Member Avatar for ebosysindia

I have data in ms-access database.I want to export it to Excel on click of a button which is in front end developed in core java. I am working on frames NOT applet. I developed a macro in access to export data to excel. But i dont know how to …

Member Avatar for stephen84s
0
146
Member Avatar for newcook88

can some one help me to develop the code for the following methods [CODE]private void add(Bucket bucket) { // is the bucket in the table? // can it be added to the table? // can the bucket be added at its hashed index? // what is to be done if …

Member Avatar for BestJewSinceJC
0
126
Member Avatar for freddiecool

Hi, i am making an event calender but i'm stuck with making sure that a user choose a valid date (a user should'nt be able to choose a start date that is after the end date). Could anyone point me in the right direction please? My code is still a …

Member Avatar for BestJewSinceJC
0
155
Member Avatar for Der_Kaiser

Hey there folks,I've been takinga course in data communications, which for the most part has been completely over my head, but anyway, for a project I need to write an instant messenger program. Prof as very vague about the detais, so I think It can be as simple as possible, …

Member Avatar for BestJewSinceJC
0
168
Member Avatar for chaituu

I am trying to implement dynamic rows paging.just imagine for a particular booking id lets say 22 records are there in the database. per page i am displaying 10 records.if u see the HTML code as per sample its showing only 3 records .but in real it will display 10 …

0
67
Member Avatar for bokz06

i have a mydata.txt file with this in it: [ICODE]B.Friedel 38 LRC usa 20 1 1 1 21 410 300 300 300 18 0 1673 0 76 26 0 0 0 0 0 0 0 0 M.Fulop 26 LRC hun 17 1 1 1 26 308 300 300 300 1 …

Member Avatar for bokz06
0
5K
Member Avatar for suse17

I have my Tomcat Server running (port 8080), I also set up the password "tomcat" during initial configuration. Now when I try to open the internet explore using [url]http://localhost:8080[/url] the page is not loaded. I mean to say that server is running but the page is not being displayed. What …

Member Avatar for osirion666
0
155
Member Avatar for javedali

I am developing e-library for visually challenged people, in this system i kept a utility to add book from one interface. I want to store the location of the actual book in the database while adding a book. For e.x. I am storing the book at c:\books\pdfbooks\bookname.pdf this location c:\books\pdfbooks\bookname.pdf …

Member Avatar for BestJewSinceJC
0
213
Member Avatar for lazarus_5

I am trying to put together a simple inventory program for my class, but I keep running into one error that I just cannot seem to correct. Here is my code: public class DVD extends Product { // channel that the show was on private String channel; // constructor public …

Member Avatar for BestJewSinceJC
0
117

The End.