Forum: Java Aug 20th, 2009 |
| Replies: 3 Views: 261 Ok thank you for informing us about your need, hope you succeed in writing it. |
Forum: Java Jun 9th, 2009 |
| Replies: 7 Views: 1,146 I agree with VernonDozier, your code compiled and ran OK,
You should not be getting this problem unless and until you are using a Java compiler prior to release 1.2 (i.e a pre Java2 compiler cause... |
Forum: Java May 30th, 2009 |
| Replies: 4 Views: 354 Well just a quick Search of your code revealed that you have never created an Object of ExtendDVD so I guess its logical that nothing from it would be printed. |
Forum: Java May 11th, 2009 |
| Replies: 1 Views: 426 I do not know how to execute a macro, but what you could do is Query your MS-Access database and write the values from the recordset into a file CSV format (which can be opened in Excel) or... |
Forum: Java May 2nd, 2009 |
| Replies: 9 Views: 1,107 This (http://lmgtfy.com/?q=adding+images+to+a+JAR&l=1) should help. It was the first search result in Google. |
Forum: Java Apr 18th, 2009 |
| Replies: 5 Views: 1,440 The quick approach which comes to my mind is store a,b,c and d in an array say "coefficients" of size 4 and let the index at which the corresponding value is stored indicate the power of "x".
Ex:-... |
Forum: Java Apr 1st, 2009 |
| Replies: 6 Views: 329 Peter has already mentioned the cause of your problem, now just wanted to add a few notable things like :-
You never closed your connection, Its important to close your database connection once... |
Forum: Java Mar 16th, 2009 |
| Replies: 9 Views: 545 @blackcompe
Teach a person to fish, do not give him the fish, thats the purpose of this forum, You should have at least let the O.P. attempt to use and understand the TreeMap collection on his... |
Forum: Java Mar 8th, 2009 |
| Replies: 1 Views: 239 My Answer :- STFW (http://www.google.co.in/search?q=javadoc)
Exception Handling should be used for only handling "exceptional" situations. What you have mentioned can be done by performing... |
Forum: Java Feb 27th, 2009 |
| Replies: 12 Views: 668 So answering to this thread would be just showcasing my Java skills as opposed to helping anyone ????
or
Is this a way of disguising your homework ??
or
Is this an assignment which you... |
Forum: Java Feb 25th, 2009 |
| Replies: 2 Views: 1,153 Using the showOptionDialog()... |
Forum: Java Feb 22nd, 2009 |
| Replies: 13 Views: 747 You have many options here one is create a new class which has those two as its member properties and return a reference to this object from that method.
Second is put them both inside a "String"... |
Forum: Java Feb 19th, 2009 |
| Replies: 5 Views: 1,587 Why are you obsessed with printing memory addresses, when you can accomplish your linked list with "references" in Java.
<EDIT>
I willl just put a simple example here of how a simple node of a... |
Forum: Java Feb 11th, 2009 |
| Replies: 5 Views: 927 Eeep !!! Sorry Confused myself on that one, heres what I think is going wrong.
Now I just went through your code the problem seems to be a tad more deeper than I thought.
You see at the class... |
Forum: Java Feb 8th, 2009 |
| Replies: 9 Views: 926 Well to calculate days I would prefer a more simpler method like this :-
// Current day would store the index of the day in the Array
// 0 points to Sunday.
int currentDay = 0
String days... |
Forum: Java Feb 7th, 2009 |
| Replies: 15 Views: 651 Well I see that you have specified a line segment to have two end points.
Now to check if lines are collinear you will have to get their equations and solve them simultaneously.
Now the equation of... |
Forum: Java Feb 7th, 2009 |
| Replies: 7 Views: 837 Now I am going to make some assumptions here on your merge method, My main assumption is if your method is called as arr2.merge( arr1 , arr); then you want the contents of arr1 and arr merged and in... |
Forum: Java Feb 5th, 2009 |
| Replies: 5 Views: 394 Now assuming your File format is of the type :-
Albert Einstein 0
Stephen Hawking 3
You would need to add the following lines of code in your while loop before reading the grades like :- |
Forum: Java Jan 23rd, 2009 |
| Replies: 32 Views: 11,806 Actually to convert from .doc to .pdf via Java I could not find a direct method, But I found a two step process,
Access your Microsoft Format files using Apache POI (http://poi.apache.org/),... |
Forum: Java Jan 23rd, 2009 |
| Replies: 4 Views: 771 Insert all the Strings that the user enters in to the args[] string array, since this array is being passed to each successive call of main, So you will have a list of all entered keywords in this... |
Forum: Java Dec 14th, 2008 |
| Replies: 2 Views: 881 System.out.print(iterator.next() + " ");
The above code is your problem. Here you are printing the object and not its contents, hence the reason for getting those strange values in your output.... |
Forum: Java Dec 14th, 2008 |
| Replies: 5 Views: 1,160 My advice would be to confirm that really the file cannot be found. Take a look at the javadocs of File (http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html) class. It has an "exists()" method... |
Forum: Java Dec 3rd, 2008 |
| Replies: 4 Views: 1,690 CEO my foot, am pretty sure you are just lone programmer cum administrator cum janitor there.
And hope your so called firm goes bankrupt and rots in HELL. |
Forum: Java Dec 3rd, 2008 |
| Replies: 8 Views: 860 If you want to use the HTTP API the it is pretty straight forward, you will need to use the java.net.URL and java.net.URLConnection classes in Java.
Here is a Java tutorial on how to work with... |
Forum: Java Nov 30th, 2008 |
| Replies: 10 Views: 607 First of all let me congratulate you on the amazing indentation technique you follow. I think very few programmers in the world survive today who use your indentation technique ... complete left... |
Forum: Java Nov 24th, 2008 |
| Replies: 20 Views: 2,113 Ok... Now I am going to just assume how you wish the servlet should work, If you have an already registered user, you want to just display "You are a valid user" and if the user is invalid you want... |
Forum: Java Nov 22nd, 2008 |
| Replies: 7 Views: 964 Just a thought, instead of writing each object after serializing one by one to the file, why don't you just serialize the entire ArrayList and write it to a file.
And when you need to add any data... |
Forum: Java Nov 6th, 2008 |
| Replies: 2 Views: 592 Your button "output" doesn't work cause you haven't added an ActionListener for it like your JTextField
Also you have just one JButton object named "output" and you are first initializing here :-... |
Forum: Java Oct 16th, 2008 |
| Replies: 7 Views: 3,269 But the real question is why do you want to limit yourself to what you have already learned and not go a step ahead of the rest.
As far applications of regular expressions to your problem domain... |
Forum: Java Oct 15th, 2008 |
| Replies: 1 Views: 395 Amazing I found the exact problem solved right here (http://www.daniweb.com/forums/announcement9-2.html) and then you may look here (http://java.sun.com/docs/books/tutorial/java/javaOO/classes.html)... |
Forum: Java Oct 11th, 2008 |
| Replies: 7 Views: 772 Did you read this forum : http://www.daniweb.com/forums/forum72.html, you could check if anyone there wants someone on a per project basis like as an intern or something |
Forum: Java Sep 24th, 2008 |
| Replies: 5 Views: 657 public static void main( String args[] )
{
public String productName; // product name
public double number; // product item number
public double units; // number of... |
Forum: Java Sep 17th, 2008 |
| Replies: 10 Views: 1,011 Well I don't know if this would be an overkill (especially if you just need to start up) but when it comes to concurrency, I liked Java Concurrency in Practice By Brian Goetz |
Forum: Java Sep 13th, 2008 |
| Replies: 4 Views: 532 Check out the dispose() method of the JFrame class.
You can also check this tutorial (http://java.sun.com/docs/books/tutorial/uiswing/events/intro.html)to learn more about Event Handling in Java.
... |
Forum: Java Sep 11th, 2008 |
| Replies: 6 Views: 2,688 Buddy you really need to learn about your domain, basically what you want is to be able to read incoming messages received via a GSM Modem (and in this case your cell phone-> which internally... |
Forum: Java Sep 11th, 2008 |
| Replies: 4 Views: 522 Mark the thread as solved please ... I wanna increase my solved threads count :P |
Forum: Java Sep 4th, 2008 |
| Replies: 3 Views: 540 Man another *%$#@&* thread on mysql & swing created by kevinpeterson22,
what the hell is your problem ?
When some responds to any of your threads you just do not reply back.
Do you think just... |
Forum: Java Aug 29th, 2008 |
| Replies: 2 Views: 823 Here (http://www.daniweb.com/forums/announcement8-2.html) you go, this should do the job. |
Forum: Java Aug 28th, 2008 |
| Replies: 12 Views: 1,161 Do not make duplicate threads. This is the third thread with a similar topic, thats why I gave you the negative mark. You did not even care to respond to the people who tried to help you in the first... |
Forum: Java Aug 24th, 2008 |
| Replies: 2 Views: 737 Here (http://www.daniweb.com/forums/announcement8-2.html) you go, best of luck for your MCA. |