32,204 Topics

Member Avatar for
Member Avatar for hidash_in

hi all, i am using the below code to open a n application by specifying the file path response.setHeader("Content-Disposition", "attachment; filename="+ java.net.URLEncoder.encode(filePath) +""); but while opening the application the path changed as D%3A%2FPrepress%2F5_Production%2FJournals%2FBalaban%2FPI10000044%2FBban_MWMS_100005%2FData%2Fset+header[3] with special characters because of the filepath changed i cant apple to use the save button. i …

Member Avatar for hidash_in
0
103
Member Avatar for jellyfish888

I have a homework in which our teacher asked us to write a code in which the user can add, delete and edit his wishlist...I can only do add and delete...I am sure that there is a lot of problem for edit so please help me to make it work...I …

Member Avatar for ~s.o.s~
0
145
Member Avatar for mrityunjay22

i am running jsp page in netbeans 6.0 it says that access not authorised set username and password in servce manager in netbeans 6.0 plz tell me how to set password and username from netbeans 6.0

Member Avatar for ~s.o.s~
0
90
Member Avatar for EMUGOD

[CODE] int[] h0 = new int[] {0,0,0,0,0,0,0,0}; int[] h1 = new int[] {0,8,8,0,0,8,8,0}; int[] h2 = new int[] {0,8,0,0,0,8,8,0}; int[] h3 = new int[] {0,0,0,6,9,0,0,0}; int[] h4 = new int[] {0,0,0,9,6,0,0,0}; int[] h5 = new int[] {0,8,0,0,0,0,8,0}; int[] h6 = new int[] {0,8,8,0,0,8,8,0}; int[] h7 = new int[] {0,0,0,0,0,0,0,0}; int[][] …

Member Avatar for EMUGOD
0
101
Member Avatar for jellyfish888

I have a homework to get the average of x number...I was thinking that in order to get this I should just ask the user to input all the numbers that that want to get and using comma as separator...unfortunately, I don't know how to do this...below I have my …

Member Avatar for darkagn
0
432
Member Avatar for shkl_javed

i need to know we can use fuzzy logic in determination,manipulation &identification of wave characteristics eg signal generated by voice ,brain waves etc. if yes ineed to know where i can find this concept.plz help me regarding this (i came to know that voice recognition in cell phones exists but …

0
62
Member Avatar for ceyesuma

I was inquiring about the button group in the outlook panel where the buttons collapse. Does any one know what that code looks like. Could you send me someathat? Thanx Merry x-mass

Member Avatar for masijade
0
37
Member Avatar for curt22

I'm new to Java and I'm wonder if someone can help me with this. I have a class that's constructor makes a Gui window, and it's main calls this constructor. The problem is the event handling doesn't work because the event handling code can't access the GUI window variables (It …

Member Avatar for parthiban
0
117
Member Avatar for Drags111

Hey guys! This is my first post, as im new here :S I have a simple problem for a big program. We have a .sh to install it, but when I run the .sh in terminal like i should, It says the class is not found. I believe it has …

Member Avatar for eggi
0
110
Member Avatar for nljavaingineur

Dear fellow developers, Below is code calculating your weight on different planet using Enum type, from the book of Java Tutorials. Can anyone tell me what does `"%"` mean in `"%s"`, `"%f"` and `"%n"`? How does all three managed to get in the for-each loop without being declared explicitly before …

Member Avatar for nljavaingineur
0
120
Member Avatar for suriname0

I have a rather vague question on Applets. Is there some way for the Applet to communicate back with the JavaScript that runs it? I use the PARAM tag to send information (cookies with username, settings, etc.) in, but I want to be able to get information back out of …

0
48
Member Avatar for energizer100

Hey. I'm having some difficulty in Array lists. I have to find the average of all the numbers in an array list. That's my first task. My second one is to find the mode of all the numbers, meaning the number that shows up the most. And the third one …

Member Avatar for bops
0
123
Member Avatar for neow

hi there everyone! :D i'm new here and i'm wondering if you can help me with my java programming. actually it is my project and i'm having a difficult time with it. here is is my code. its about array computation, 1st you will input how many operators you will …

Member Avatar for neow
0
105
Member Avatar for gaowei

I don't understand it mean? Who can help me explain it?Thanks in advance! for example this programe: [code=java] public class score{ public static void main(String args[]){ int a[]={90,98,97,67,89,68,76,69,96,66},sum=0; double ave; for(int i=0;i<a.length;i++)sum+=a[i]; ave=sum/10.0; System.out.println("Average="+ave); for(int s:a)System.out.printf("%4d",s); System.out.println(); for(int s:a)System.out.print("%4d",(s-(int)ave)); } }[/code]

Member Avatar for darkagn
0
81
Member Avatar for bops

I am trying to implement a feature when the user clicks a specified shape (trigger) on the screen that an event is triggered. The following code is a class that I have written that implements mouse picking. [code=java] class Picker extends PickMouseBehavior { private PickCanvas pickCanvas; private Node trigger; private …

Member Avatar for Ezzaral
0
189
Member Avatar for sivaslieko++

Hi everybody, I am new at GUI and I need your help.. I have a JPanel, named "holdAll", layout of which is set to BorderLayout. I have implemented all other JPanels in different class files. For example, I have TopPanel, LeftPanel, etc. as shown below LeftPanel myLeft = new LeftPanel(); …

Member Avatar for bops
0
102
Member Avatar for The Dude
Member Avatar for Sandeep arya
Member Avatar for FSinister

RE: my earlier stupidity... MY CREATION LIVES!! its 06:15 friday morning here in Dublin, and my cmd line program _successfully_ 1. Returns whether input.txt of up to about 70KB is written in French or English 2. Based on 2 letter digram segments now all I have to do is write …

0
77
Member Avatar for mentallybroken

i need a program that asks for one number and output like this: 1234 123 12 1 12 123 1234 [COLOR="Red"][B][U]NOTE:[/U][/B][/COLOR]: in the example above the input given is number 4. requirement doing this in using nest FOR loops. i started coding it bu i dont get the algorithm or …

Member Avatar for mentallybroken
0
109
Member Avatar for sillyboy

Hey guys, I am writing a desktop app to interact with XML. It reads the XML fine using the DocumentBuilderFactory, but when I try to save any changed to the XML file (e.g. setNodeValue()) the changes do not save. As an example here is some code I tried, just to …

Member Avatar for sillyboy
0
98
Member Avatar for chr.kj

Hi. I´m having some trouble with my search code. I'm trying to make it search in either my varenummer field or varenavn field. My method to do so looks like this: [code] public KasseInterface søgVare( String varenummer, String varenavn ) { System.out.println( "Søger efter vare med varenummer: " + varenummer); …

Member Avatar for chr.kj
0
217
Member Avatar for jellyfish888

Can anyone please help me with my sorting Array...my teacher asked me to do a code for sorting array using html and servlet. I don't know how to start this program since I am still new in java...please help me...if you can provide example code then that would me appreciated...

Member Avatar for ~s.o.s~
0
480
Member Avatar for vishal_suri

Can anybody please tell some way to access MS Access database from a jar. I am using the following line of code: ClassLoader.getResource(databaseName); But its not working. Can anybody please help? Thanx, Vishal

Member Avatar for Ezzaral
0
62
Member Avatar for patmagpantay

We currently have a working JSP script that can add and average integers, now our professor wants us to make the same script but using a different language, she wants us to program it using "java servlet". Our script is currently posted at [url]http://www.patrickmagpantay.com/wishlist.html[/url] . Please help us :(

Member Avatar for peter_budo
0
177
Member Avatar for patmagpantay

I coded a script, Currently I can add and delete items to the database but I cannot edit the data. Here's my 3 paged script : Christmasswishlist.java import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.sql.*; /** * Servlet implementation class for Servlet: ChristmasWishlist * */ public class ChristmasWishlist …

Member Avatar for patmagpantay
0
138
Member Avatar for web4

[code=java] import java.io.*; import java.util.Scanner; class heh {public static void main(String[]args)throws Exception { BufferedReader input=new BufferedReader(new InputStreamReader(System.in)); Scanner me =new Scanner(System.in); int a[]= new int[20]; boolean find = false; int b; int c; System.out.println("Enter 20 numbers:"); String read=input.readLine(); String token[]=read.split(" "); for (b=0; b<20;b++) {a[b]=Integer.parseInt(token[b]);} System.out.println("Enter No. u want 2 …

Member Avatar for web4
0
75
Member Avatar for 71monaro

Can some one please guide me on creating a JSpinner that only supplies value on MouseRelease Events. As dont want to send the intended application updates as spinners contents while rapidly changing. (there needs to be a timeSinceRelease accounted for.) but Its what i need to write like the particular …

Member Avatar for Ezzaral
0
791
Member Avatar for FSinister

Hi, I'm new here, but you'll probably be seeing too much of me before long ;) My names Daniel. I have this sort method for sorting (essentially) an array, but it does strange things that i can't quite figure out, and it doesn't sort. the array is a feature of …

Member Avatar for FSinister
0
151
Member Avatar for Danii

hi I have created the discard method in my player class and play is a Card[] so i type currentCards.discard(numOfCard); and then it says "it cant invoke discard(int) on the array type card[]" any help is appreciated thanks

Member Avatar for Ezzaral
0
100

The End.