32,199 Topics

Member Avatar for
Member Avatar for gitech

Hai Friends. I want to download jar file from IIS serve(.Net) from to mobile device. in apache tomcat server i used mime as AddType text/vnd.sun.j2me.app-descriptor jad AddType application/java-archive jar in wordpad, with jar and jad. its working fine. i doknow how to use this mime in IIS, please help me …

Member Avatar for kvprajapati
0
110
Member Avatar for dhm.shyara

i want java code which find a day of a given date...eg......13 feb 1984(given date).........answer is monday...

Member Avatar for masijade
0
94
Member Avatar for gitech

Hai Friends, Iam using socketconnection in my project for server communications, its working fine in emulator , other nokia mobiles, but it does not working in Nokia 6600 mobile. but Datagram and httpconnection is working fine.

Member Avatar for peter_budo
0
86
Member Avatar for gsingh2011

How would I make a program that can insert text into a text field in another program? Or click a button in another program?

Member Avatar for gsingh2011
0
66
Member Avatar for dmanw100

Hello, I am trying to do something very simple but my dial up connection is making it hard to research so I'd like some help! I'm trying to store instances of classes I created in a file. Something along these lines: [CODE] class apple { int flavor; String color; apple(int …

Member Avatar for dmanw100
0
107
Member Avatar for JamesKox

Here's a question i got in my assignment... [QUOTE]Create a method with signature public String testWindDirection() that creates a local object of type WeatherReport using the constructor with no parameters, and returns its initial wind direction, e.g "ESE"[/QUOTE] I createrd it here... [CODE]public class Reporter { private WeatherStation ws; private …

Member Avatar for JamesKox
0
104
Member Avatar for tformed

I keep on getting the following error, I've tried modifying the constructor, but I can't get it to work. "C:\Users\Documents\NetBeansProjects\Assignment-1\src\Bank.java:34: cannot find symbol symbol : constructor Customer(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String) location: class Customer Customer customer = new Customer(last, first, street, city, state, z, acctNum); 1 error BUILD FAILED (total time: 0 seconds) " …

Member Avatar for tformed
0
235
Member Avatar for jayless

Hello, I need to find the code in netbeans where the name is stored as shown in the Title bar of the program and the taskbar of windows. Any ideas where to find that? ive been looking and searching for days now. I want to edit "Openbravo POS - 2.30beta" …

Member Avatar for JamesCherrill
0
316
Member Avatar for caps_lock

ArrayList arrayList = new ArrayList(); for (File g : f.listFiles()) if (g.isFile()) { arrayList.add(g); } I hope from the code above you can understand what Im trying to do. If a file is a file then add it to an arraylist. I dont know if this is the best one, …

Member Avatar for caps_lock
0
223
Member Avatar for nishant52

I'm doing a project on Bus Information System, [B]using JAVA[/B], which takes source and destination station from user and displays bus numbers between those two stations. Here two cases arises:- 1) Direct bus connectivity - in which case it displays the list of direct bus numbers between those stations. 2) …

0
64
Member Avatar for lardshow

i'm trying to call a method from a different class and i just cant get it to work.... code from method displayTutorGroup(): [code] /** * Displays the names and marks for the students * in the tutor group in the Display Pane */ public void displayTutorGroup() { for (String name: …

Member Avatar for lardshow
0
90
Member Avatar for kashn

Hi, I need help, to get the get working directory of the class file on a Windows system. I'm opening up a txt file to read from in the same folder as the class file, when I just enter the location of the txt file, it says: [CODE]java.security.AccessControlException: access denied …

Member Avatar for kvprajapati
0
162
Member Avatar for bluerose

When you click save in this program , it is saved nicely but the txt file being saved is all in one line. How can i overcome this matter? Just FYI, when anyone try to save, dun forget the file extension (*.txt) [CODE=java] import java.io.*; import java.awt.*; import java.awt.event.*; import …

Member Avatar for bluerose
0
134
Member Avatar for m_hustle

hi, i have the attached xml file and i wish to perform some xpath expressions in java which i have declared as follows. [CODE]final String xPathexp1 = "sbml_ns:sbml/sbml_ns:model/sbml_ns:annotation/rdf_ns:RDF/rdf_ns:Description/bqmodel_ns:is/rdf_ns:Bag/rdf_ns:li/@rdf_ns:resource"; final String xPathexp2 = "/sbml_ns:sbml/sbml_ns:model/sbml_ns:listOfSpecies/sbml_ns:species/sbml_ns:annotation/rdf_ns:RDF/rdf_ns:Description/bqmodel_ns:is/rdf_ns:Bag/rdf_ns:li/@rdf_ns:resource[starts-with(.,"urn:miriam:uniprot:")]";[/CODE] I have set the namespaces as follows: [ICODE]try { NamespaceContext ctx = new NamespaceContext() { @Override public …

0
63
Member Avatar for neutralfox

Hello friends, As usual .. when i have a problem ... daniweb.com is here ;). So I need some information from you. Ok, let me explain ... I am currently developing a chat application ! Ok ... everything works fine till now but I have doubts. My application uses 3 …

Member Avatar for JamesCherrill
0
147
Member Avatar for JamesKox

I'm was wondering if someone can check if this method produce the right result? [CODE] public int fileSize (String name) throws IOException { int charLength = 0; File file = new File("name"); Scanner input = new Scanner(file); while (input.hasNext()) { charLength++; } return charLength; }[/CODE] What this is supposed to …

Member Avatar for JamesKox
0
255
Member Avatar for cwarn23

Hi, I have been trying to get the Jsapi (Java Speech API) embeded into my web applet but have had quite a few troubles. The script for the Jsapi from what I can see was designed for .Jav files where as I am trying to make a .class file. So …

Member Avatar for cwarn23
0
189
Member Avatar for gabec94

for those of you not familiar with the rules they can be found [URL="en.wikipedia.org/wiki/Conway's_Game_of_Life"]here[/URL]: i am sort of new to java and i am trying to write the game of life, i have got the board made and how to randomly assign each cell a true or false (living or …

Member Avatar for gabec94
0
5K
Member Avatar for Grub

Hi, I have a JTable with a tablecellrenderer I have extended from the defaultTableCellrenderer. In my Table model on which the table is based, I have an algorithm that searches each cell making comparisons, when it finds rows with similar values, it adds colour A to an arrayindex and continues …

0
94
Member Avatar for weblover

hi all,how are u? ..i have an encryption project.. i have to implement some of the encryption algorithme in java but i have a problem ..it's the same in all the ciphers ..when i type the key and press encrypt the encrypted text is not right ..i make my calculus …

Member Avatar for weblover
0
96
Member Avatar for edwardtong694

Hi Guys Im having a problem. Im very new to Java and am using blueJ. I would like to displya a picture on a label when I click a button. At the moment all I can get it to do is to print a message when a button is clicked. …

Member Avatar for JamesCherrill
0
98
Member Avatar for djdanjo82

Hello All, First thanks for taking time to read my thread. My problem is I have created a Gui Class that contains multiple JPanels inside another JPanel or ContentPane. I have just now created another Gui2 Class in the same java project and I would like this new Gui2 Class …

Member Avatar for djdanjo82
0
138
Member Avatar for mrgregkid

Hello im quite new to java and have been writing this game for my computer science class. ive been getting this illegal start of expression error on line 215 which is my 2nd public class dice extends applet and can not figure out how to fix it. ive tried moving …

Member Avatar for peace_of_mind
0
82
Member Avatar for k1lguy

hello, i have a java game but i have a problem with healing i get the error client.java:2791: orphaned case case 315: ^ 1 error files compiled successfully! this is the code: [ICODE]public boolean healing() { boolean eat = false; int heal = 0; case 315: Message("You eat the shrimps."); …

Member Avatar for JamesCherrill
0
230
Member Avatar for farooq82

I am trying to develop a java program containing two threads that reads two files simultaneously. In a program, first thread reads data from file “Personal_Record.txt” and second thread reads the data from file “Academic_Record.txt”. When one thread reads a line from one file then it should allow another thread …

Member Avatar for verruckt24
0
155
Member Avatar for kvprajapati

I am confused about static class and nested class. Is there any difference to code and use of static & nested class?.

Member Avatar for JamesCherrill
0
166
Member Avatar for PhoenixInsilico
Member Avatar for verruckt24
0
148
Member Avatar for localp

i am trying to get an input from my mic, and amplify the sound, i started searching for sample source codes, and java sound amplifying tutorials, but i found none of them relevant. so how can i amplify the sound that i received as input from a mic. can some …

Member Avatar for kvprajapati
0
46
Member Avatar for anandarju

Im developing a J2EE project and also Using JBOSS 4.0.2 server,when i run the Servlet program im getting the error "The Selection Is Not Within A Valid Module". Please Reply...Thanks In Advance....

Member Avatar for kvprajapati
0
64
Member Avatar for sivak

if i click button in pqge 1 page 2 should refresh if i click page 2 button page 3 shoould refresh if i click page 3 button page 1 shoud refresh ... can any one tell me the javascript code for this plz

Member Avatar for kvprajapati
0
69

The End.