35,619 Topics

Member Avatar for
Member Avatar for mutazzaki

hi all plz i need java code to read avi header information such as frame rate and hight and file size tks

Member Avatar for mutazzaki
0
60
Member Avatar for mudi12

Hello I am student of BSCS 4th Semester. we studied basics of java in OOP subject i want to make a 3D Paint in java simple free hand diagrams by using sphere.. drawing on different coordinates.. [CODE]/** * * @author MuDi */ import com.sun.j3d.utils.geometry.*; import com.sun.j3d.utils.universe.*; import java.util.Scanner; import javax.media.j3d.*; …

Member Avatar for mudi12
0
263
Member Avatar for masterofpuppets

Hi all, Here's the problem I have. I am designing a website in HTML and I want to include a chat system using a Java applet. I have written a small example applet that just connects to my server and gets the users that are currently online. The applet works …

Member Avatar for masterofpuppets
0
291
Member Avatar for stevanity

I was reading Programming with java for Dummies 2nd Edition and came across this piece of code. I tried to read a chrachter using scannerobj.findInLine(".").charAt(0) method. But I get an exception saying theres no such method. And even nextLine, nextWord isnt working. Please help. I have pasted the exact code …

Member Avatar for stevanity
0
441
Member Avatar for Nirmeen Ased

Hi every body .. i got these problems with my code when ever i choose "no" as an answer .. it requires me to create an a count while i don't want to create one .. another problem occurs when i use the Acounte_Number to be the ID for the …

Member Avatar for Nirmeen Ased
0
305
Member Avatar for Bubbleboy

I recently wrote a java jar file that takes the current date and time and puts it into a text file. What i want to do is put this into a users startup folder so i know when they got on to the computer. However, if the jar is in …

Member Avatar for Bubbleboy
0
3K
Member Avatar for masterofpuppets

Hey, I am not sure whether this is the right place to ask this but I figured that maybe someone here has used JFileUpload for uploading files to a server. I just downloaded the applet and tested it out on my server and uploading works as long as the files …

Member Avatar for masterofpuppets
0
258
Member Avatar for warlord902

Something similar to it is cross-posted here : [url]http://stackoverflow.com/questions/6275685/problem-getting-shared-status-of-gtalk-using-xml[/url] I am not getting replies there so posting it here again. I'm using smack 3.2 I have two queries: 1) How can we get the nick name or the name actual name of the user not the JID that is logging …

Member Avatar for warlord902
0
266
Member Avatar for amalwit

[CODE]class A{ A a=new A(); void method(){ System.out.println(a); } public static void main(String args[]){ A b=new A(); b.method(); } }[/CODE] This code gives a run time error.What is the wrong with this code

Member Avatar for JamesCherrill
0
163
Member Avatar for wolfrain62

So I am kinda new to java and was given a program to do. a. Create one or more arrays to hold the names of the months and the number of days in each month. Assume that February always has 28 days. b. Display the contents of the array(s). c. …

Member Avatar for wolfrain62
0
109
Member Avatar for yatin.baraiya

Hy all, i use the following code for displaying the image. i am sending the image file from the my HTML page... the following code is working for the image having name without any space example like:-test1.jpeg, but the following code is not working when i send the image having …

Member Avatar for Sadun89
0
131
Member Avatar for pvsairam

How To Convert .java to .jsp file ??? can any one help me out... its very urgent..!!

Member Avatar for Sadun89
0
110
Member Avatar for ceyezumma

Hello. I hava DAO classes to access tables of a Derby db. My DAO's all implement there own interface. I knew I would need to learn what this was. Is anyone farmiliar with how an application would use an interface for the DAO classes ? I use xml properties to …

Member Avatar for ceyezumma
-1
167
Member Avatar for Zwinky

[code]import java.awt.*; import java.awt.event.*; public class DataEntry { public static void main(String[] args) { Frame frm=new Frame("DataEntry frame"); Label lbl = new Label("Please fill this blank:"); frm.add(lbl); frm.setSize(350,200); frm.setVisible(true); frm.addWindowListener(new WindowAdapter(){ public void windowClosing(WindowEvent e){ System.exit(0); } }); Panel p = new Panel(); Panel p1 = new Panel(); Label jFirstName …

Member Avatar for stultuske
0
92
Member Avatar for asterix15

what is the use of making a variable public. After all the client is provided only with the .exe code So now whats the actual use of maling a variable private?

Member Avatar for stultuske
0
102
Member Avatar for ronnieaka

i tested the php version of the autocomplete example in ajax using PHP from here: [URL="http://www.w3schools.com/ajax/ajax_aspphp.asp"]http://www.w3schools.com/ajax/ajax_aspphp.asp[/URL] i tried the PHP veriosn, not the ASP version. It worked fine. Now i want to implement the same thing in JSP, and so i translated the PHP version of source file (which has …

Member Avatar for ronnieaka
0
235
Member Avatar for Mr. pen

Hii all :D How are you ? Hope Everything is gr8 first ,sorry for any language mistakes , but English is not my native language :) This is my Code which has 5 class 1. district. 2. region. 3.MinsteryOdEducation 4.main 5.SchoolGroup all the codes are below .. I design it …

Member Avatar for Mr. pen
0
187
Member Avatar for arka.sharma

Hi All, I am trying to write a program that will take a straight line,circle,square or some regular geometric shape as an image.And tell which geometric figure it is.Anybody give me some idea where to start. Thanks and Regards Arka

Member Avatar for JamesCherrill
0
134
Member Avatar for arka.sharma

Hi, Can anyone tell me that given a set of co-ordinates but not the centre and program will test whether these points are on the locus of some circle. Regards Arka

Member Avatar for JamesCherrill
0
71
Member Avatar for bangor_boy

Can someone please explain break statements to me, as far as i understand a break statement leaves the loop before it has ended. But i run this code and expect to get "Zero" "One" But I get "Zero" "One" "One" "Unknown number" [CODE] for (int i = 0; i < …

Member Avatar for stultuske
0
181
Member Avatar for warlord902

I have some doubt regarding how class variable gets initialized, both static and non static. I mean, suppose I have a class like below. [CODE] public class MyClass{ public static HashMap<String,Buddy> buddiesMap= new HashMap<String,Buddy>(); public static ArrayList<String> buddiesList=new ArrayList<String>(); public static HashMap<String,ImageIcon> avatarMap=new HashMap<String, ImageIcon>(); public static ServerConnection con=new ServerConnection(); …

Member Avatar for thekashyap
0
579
Member Avatar for winecoding

I am learning to use mahout by starting with a example copied from the book. However, the eclipse compiler gives me the following message: [QUOTE]Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.apache.mahout.cf.taste.impl.model.file.FileDataModel.<clinit>(FileDataModel.java:119) at mia.recommender.ch02.RecommenderIntro.main(RecommenderIntro.java:18) Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at …

Member Avatar for thekashyap
0
204
Member Avatar for marsangel

Hi! I just want to ask if anyone knows how to partition a USB? Any other forums would reply and tell me to use a 3rd party software which is not very helpful since I need to develop my own program. Research says that in order to partition a USB …

0
64
Member Avatar for sunnynight

Dear Friends, This is my homework, I have a text file containing the following content: [QUOTE]0 12 1 15 2 6 3 4 4 3 5 6 6 12 7 8 8 8 9 9 10 13[/QUOTE] I want to read these integers from data.txt file and save the two …

Member Avatar for hfx642
0
199
Member Avatar for vomhaus

I wrote a method to read in a txt file and then return the value(s) line by line. However, the value(s) are being returned as such - [Ljava.lang.String;@6f579a30. I would have expected something different. The .txt file I'm reading in has value(s) in the file like this... A B C …

Member Avatar for NormR1
0
150
Member Avatar for winecoding

I am trying to save an integer matrix to the csv file. My code is listed as follows. [CODE]try { FileWriter writer = new FileWriter("test.csv"); for(int i = 0; i < row; i++) { for (int j=0; j<(column-1); j++) { writer.append(Matrix[i][j]); writer.append(','); } writer.append(Matrix[i][j]); writer.append('\n'); writer.flush(); } writer.close(); } catch(Exception …

Member Avatar for hfx642
0
120
Member Avatar for warlord902

Suppose I have four classes in a package named T namely Main, A, B and C The class Main contains public methods which the classes outside package T access and Main class in turn communicate with other three classes and let some function to happen. Now I want only a …

Member Avatar for warlord902
0
172
Member Avatar for netci

hi, my arraylistS in a covering arraylist behave like the same instance. i manupulate one of them with [CODE]i=0; manupulate(myarrofarrs.get(i));[/CODE], and all the sub arraylists have become effected of the manupulation. i googled a little but in google it was said: "create new instance with myvar=new myobject()" i have already …

Member Avatar for JamesCherrill
0
202
Member Avatar for webmasts

HI, I need some help on using the math.pow() function to solve the following problem: a^n = p(1+ r)^n how would I translate it using math.pow() Thanks for your suggestions and any help!

Member Avatar for Donkerster
-1
1K
Member Avatar for raghujosh

I have an application which accesses a catalog of items which can then be added to a cart. When a user selects the item(s) which could be "n" number by checking a checkbox and clicking the "Add to cart" button, the data has to be posted to a cartservlet. I …

0
57
Member Avatar for stevanity

I created the following package AccBal. [CODE]package AccBal; public class AccountBalance { private String Name; private double Balance; public void setData(String name, double balance) { Name=name; Balance=balance; } public void displayBalance() { System.out.println("The Account Balance of " + Name + " is $"+Balance); } } [/CODE] Then I created a …

Member Avatar for stevanity
0
243
Member Avatar for neutralfox

Hello friends, I am having a small problem, i have already designed a chat application, the chat works fine over a local network but now I want to use it over the internet. Logically the program should but what happened is that to get the IP I have used [code] …

Member Avatar for kumarprabhug
0
6K
Member Avatar for htmler

Hey everyone, I am having a small problem with sorting objects. I have a method called organizeTank. It should sort the fish in the tank such that: (1) all dead fish come first sorted according to size in descending order, (2) all live fish come next such that herbivores come …

Member Avatar for stultuske
-1
94
Member Avatar for shamusk

Hi everyone, I am new to java enterprise edition and used Eclipse previously. I need to integrate apache maven with my eclipse. I saw a few tutorials like the one [url]http://www.eclipse.org/m2e/[/url] , and i tried to follow it but i could find the other option in the import dialogue. I …

Member Avatar for peter_budo
0
276
Member Avatar for bibiki

hey there, I have this java 3D home assignment I need help with. I would greatly appreciate it if someone could direct me to a solution. I need to build create a 3 D digital clock and add some key navigation to it. I managed to add the key navigation …

1
102
Member Avatar for PHIPH

Hello, i tried to hack my USB MODEM so that i have unlimited INTERNET connection but i failed, any one having an idea on how to do it?

Member Avatar for stultuske
-5
93
Member Avatar for jemz

Hello can you help me please... can you help me how can i retrieve the data from my database ms access i want to display this in the table...is it possible to use the JTable or not?...please help me thank you in avdvance and i am hoping for your positive …

Member Avatar for NormR1
0
80
Member Avatar for Knoxx

i am a new programmer trying to make a program, which askes the user for a string input and searchs for the string in an array, and prints "Found: ("string") and the position of the string in the array. this is what i have done soo far: [code]import java.util.Scanner; public …

Member Avatar for JamesCherrill
0
3K
Member Avatar for khaled_jawaher

hi,i am using haxws to build webservice in java that returns an object not a primitive type.when return primitive type every thing is going well, the error that i am receiving is: [ERROR] javax.xml.bind.JAXBException: class endpoint.data nor any of its super class is known to this context. org.apache.axis2.AxisFault: javax.xml.bind.JAXBException: class …

0
79
Member Avatar for vanzhyme

when i run my project in java. i keep getting this stuff. No Console ..... I dont know how to get console in eclipse. here is my code. [code] import java.io.*; public class WordGame { public WordGame() { } public static void main (String args[]) { String WordGuess; WordJudge gm …

Member Avatar for JamesCherrill
0
439
Member Avatar for autorunman22

first of all, thanks for the suggestions lately where im asking to avoid flicking of the ball.. now its working smoothly :)) but i want now to add some more balls.. like 2 - 3 balls.. how can i do that ? i dont have an idea.. thanks guys..

Member Avatar for JamesCherrill
0
308
Member Avatar for deecoup

Hii I am New in SalesForce CRM and i am facing big problem with Salesforce Web To lead form what i did i have created landing page and in which one lead Collection Form connected to Sales Force CRM now what is the problem i am facing is when i …

Member Avatar for peter_budo
0
174
Member Avatar for anand01

hi all, I am new to jsp i want to import applet class into jsp file . am using netbean IDE how can I define code base. <applet CODE ="app.class" codebase="http://localhost:8080/proj/build/WEB-INF/classes/" width="804" height="512"> </applet> thanks in advance

0
79
Member Avatar for mohamedmo'men

I have counter increase by one every once (round in loop) when the counter equal 100 am need it to go back and count down from 100 to 0, how i can make counter count down again ? [CODE]int i = 0; if(i<=100) {i-- ;) // that false else {i++ …

Member Avatar for hfx642
0
88
Member Avatar for caswimmer2011
Member Avatar for hfx642
0
175
Member Avatar for thato21math
Member Avatar for stultuske
0
118
Member Avatar for sumeetdesaeee

Hi.. I have a query regarding accessibility of top level class from member inner class. I have just read the reason why local or anonymous inner classes can access only final variables.The reason being JVM handles these two classes as entirely different classes and so, if value of variable in …

Member Avatar for sumeetdesaeee
0
139
Member Avatar for amalwit

[CODE]class A{ void method(){ System.out.println("Hello world"); } } class B{ void myMethod(){ A.method(); } }[/CODE] Can anyone tell me why I am getting this error.( non-static method method() cannot be referenced from a static context).Reffering context is not static.:?:

Member Avatar for amalwit
0
228
Member Avatar for mith_cool

I have been assigned a task to develop an online store.I am facing a problem at the time of insertion of records into SQL Database. I am using Type4 driver. The name of the DNS is SQL. here is my servlet code [CODE] protected void doPost(HttpServletRequest request, HttpServletResponse response) throws …

Member Avatar for mith_cool
0
131
Member Avatar for ErickN

I read some of the threads on calculators, but couldn't find anything related with what I need. We have this swing calculator project, that uses buttons and/or a textbox for input, and a different textbox for output. I have done most of it, and is working ok. The problem I …

Member Avatar for NormR1
0
208

The End.