3,927 Posted Topics
Re: You can serialize the entire object to file in it's current state by implementing the [URL="http://java.sun.com/javase/6/docs/api/java/io/Serializable.html"]serializable[/URL] interface. Here is a technical doc on that: [url]http://java.sun.com/developer/technicalArticles/Programming/serialization/[/url] | |
Re: [QUOTE=iDeveloper;646388] Are most companies like this? I guess it'd be excusable for small companies, but there is like 100 people in this department, about 20 are developers. Honestly, cannot wait to leave this place. I mean, there were times when i was literally depressed for weeks at this place.[/QUOTE] Most? … | |
Re: [URL="http://java.sun.com/docs/books/tutorial/uiswing/components/table.html"]How To Use Tables[/URL] in the Swing tutorial. | |
Re: The books "[URL="http://books.google.com/books?id=5VTBuvfZDyoC&dq=Head+First+Java&pg=PP1&ots=aojCHE6UAV&sig=ywLAlAc8XNMZrnD4HK-hGyc5RFQ&hl=en&sa=X&oi=book_result&resnum=4&ct=result"]Head First Java[/URL]" and "[URL="http://www.amazon.com/Core-Java-I-Fundamentals-8th-Sun/dp/0132354764"]Core Java: Volume 1[/URL]" are both good places to start if you want to go the book route. They'll provide more detailed step-by-step explanation of things than most individual tutorials you'll find on the web. | |
Re: Though a few versions out of date, this free online book has a lot of thorough explanations of these things and is still very relevant to most of the basics: [url]http://www.codeguru.com/java/tij/[/url] | |
Re: [QUOTE=CoolGamer48;643832]C++ is powerful. [/QUOTE]And Java is powerful and so is Assembly. [QUOTE=CoolGamer48;643832]As was mentioned, the JVM was written in C++.[/QUOTE]It couldn't be written in Java, now could it? This is irrelevant. [QUOTE=CoolGamer48;643832]If you can't do something in another language, do it in C++.[/QUOTE]Or some other language. Take your pick, there … | |
Re: jasimps suggestion of using a List is generally the best way to handle a collection like that where the number of elements in unknown. | |
Re: Why are you so concerned that it's not explicitly null? dispose() is sufficient for all practical purposes that I can think of[quote]Releases all of the native screen resources used by this Window, its subcomponents, and all of its owned children. That is, the resources for these Components will be destroyed, … | |
Re: I see the same behavior occasionally with Firefox on threads with absolutely huge code posts. | |
Re: I really wouldn't recommend trying to keep accurate time information by incrementing your own variables, since you have little control over things like processor time-slicing and garbage collection. This portion here presents an additional unknown[code] ActionListener al = new ActionListener(){ public void actionPerformed(ActionEvent e){ finishTime++; } };[/code]That listener code will … | |
Re: Have you bothered to look them up? [URL="http://java.sun.com/javaee/"]Java EE[/URL] and [url]http://en.wikipedia.org/wiki/J2EE[/url] [URL="http://en.wikipedia.org/wiki/JavaScript"]JavaScript[/URL] | |
Re: You can use [URL="http://java.sun.com/javase/6/docs/api/java/lang/String.html#valueOf(long)"]String.valueOf(long)[/URL] to get a long into a string. | |
Re: Since you are using Runtime.exec() to execute it, the standard output is already redirected to the parent process, which is probably why nothing is getting written. Take a look at the [URL="http://java.sun.com/javase/6/docs/api/java/lang/Process.html"]Process[/URL] API for info on handling that output. You should be able to just get the [URL="http://java.sun.com/javase/6/docs/api/java/lang/Process.html#getInputStream()"]output as a … | |
Re: It's much easier to use a GeneralPath for drawing arbitrary shapes such as a graph. It is basically just a series of connected points. Here is the tutorial link for it: [url]http://java.sun.com/docs/books/tutorial/2d/geometry/index.html[/url] It accomplishes the same thing as many drawLine() calls between all of the points. | |
Re: You might want to consider translating your origin to a point in the middle of the selected component of your drawing before you render it and positioning the viewport over that new origin. You would also need to ensure that the JPanel gets sized such that all of the drawing … | |
Re: Well, you could pipe the command line output directly to a file with just the OS syntax, but if you want your program to do the file writing just add use a second arg as the the output file path and use a [URL="http://java.sun.com/javase/6/docs/api/java/io/BufferedWriter.html"]BufferedWriter[/URL] to write the output similar to … | |
Re: Um, you realize this site isn't a book, right? There's little to tell about the site that should be in a book report - since those usually report on, well, books... | |
Re: Perhaps you should be more concerned with attending to your studies than whether your phone is "trendy and expensive looking" or "out of fashion". | |
Re: Sure, it's stickied right at the top of this forum. labeled "Read Me: Starting Java": [url]http://www.daniweb.com/forums/thread99132.html[/url] | |
Re: Try[code]String userName = System.getProperty("user.name");[/code] | |
Re: There is a [URL="http://sourceforge.net/projects/jmagick/"]Java interface to ImageMagik[/URL] that you could use if you want a third-party solution. Other than that, you would need to perform the image analysis yourself to isolate the sub-region and create the new image from it. The [URL="http://java.sun.com/javase/technologies/desktop/media/jai/"]Advanced Imaging API[/URL] would be useful for that. | |
Re: Does your book not have any examples at all? No code, just descriptive text? [code]public void oneParamMethod(int firstParam){ ...[/code] [code]public void threeParamMethod(int firstParam, double secondParam, String thirdParam){ ...[/code] | |
Re: Stick with the first suggestion - use DecimalFormat. | |
Re: If I get some time later in the day, I may be able to fiddle around with this a bit, but in the mean time, here is a very extensive FAQ on generics and type erasure that might help: [url]http://www.angelikalanger.com/GenericsFAQ/JavaGenericsFAQ.html[/url] | |
Re: The "starter code" is doing two separate things which seem to be at odds from one another:[CODE]import java.io.IOException; import java.io.FileReader; import java.io.PrintWriter; import java.util.Scanner; /** * This program concatenates contents of several files into one file. */ public class CatFiles { public static void main(String[] args) throws IOException { [B]// … | |
Re: Use [URL="http://java.sun.com/javase/6/docs/api/java/lang/Integer.html#parseInt(java.lang.String,%20int)"]Integer.parseInt(java.lang.String,int)[/URL] with a radix of 16 if you need to convert the hex string back to an int. | |
Re: [QUOTE=ranam;640058]please give a reply.i need the software[/QUOTE] What software? What are you talking about? | |
Re: And if you look through the Read Me: Getting Started thread stickied at the top of the forum you will find more help info and links on this. | |
Re: Actually you post your question here: [url]http://www.daniweb.com/forums/forum114.html[/url] in the Python forum. | |
Re: That exception occurs when you try to call a method on an object variable that is null. Look at the error message and it will tell you which call caused the error. Then you must figure out why that variable is null at the point you are trying to use … | |
Re: Though most of it probably won't get parsed and there is no telling how it will display. The HTMLEditorKit which does the rendering for Swing components is pretty simplistic and limited in it's capabilities. | |
Re: If you want reasonable answers from adults, you need to make the effort to communicate like one. Do you want career advice from teens only? | |
Re: It's a little thin, but here is the Sun tutorial link on this: [url]http://java.sun.com/docs/books/tutorial/2d/geometry/strokeandfill.html[/url] | |
Re: You can use [URL="http://java.sun.com/products/javawebstart/"]Java WebStart[/URL] or write your own updater that connects to a server and downloads new files as needed. | |
Re: You can have as many jar files as you want in your application's classpath. Add it just like you did for the mysql connector. | |
Re: There is no such thing as a "simple speech recognition application". It involves complex signal processing and analyzing algorithms. If you find a library for speech recognition, it will have it's own API and documentation for usage, which you will have to learn for yourself. This is not information that … | |
Re: What is your question about it? Surely you don't expect us to just fix the code for you based on how we think it should work? Post specific questions or errors that you are receiving. | |
Re: You would be better served checking the "nbusers" mailing list archives or posting a message to it: [url]http://www.nabble.com/Netbeans---Users-f2605.html[/url] | |
Re: [QUOTE=rriiddaa;636948]thxs all and i said i need some help here since i know the loops and String and Array and many many thing[/QUOTE] Start writing it then and post your code and questions when you have difficulties. We are not here to walk you through the entire thing. | |
Re: You really must be at your wits end.. because you posted this in the Java programming forum instead of the Javascript forum which is clear over here: [url]http://www.daniweb.com/forums/forum117.html[/url] | |
Re: There is a full tutorial on creating a 2D "Space Invaders" game in Java here: [url]http://www.cokeandcode.com/node/6[/url] There is also a 3D "Asteroids" tutorial on the same site. | |
Re: Some might say they are worth just as much as most online degrees. | |
Re: The scanner that you are initializing in the read() method is not the same one the rest of the class is using. You have declared a new Scanner with the same name that is local just to that method[code] public void read(Scanner console) throws FileNotFoundException { String input = console.next(); … | |
Re: Horizontal wheel scrolling currently it isn't supported, though it's in a request for enhancement: [url]http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6315717[/url] You would need to write JNI code for it for the time being. | |
Re: No one is going to give you a completed project. It's pathetic that you would even ask this. You need to complete your coursework on your own. | |
Re: [QUOTE=sciwizeh;637688]looking back at the code i remember why i used the Object for the loop, in the constructor for the class i pass the ArrayList and could not use the Generics for passing it, if you know a way it would be appreciated the only thing it holds it OLine's[/QUOTE] … | |
Re: Use search. There are a thousand posts here about the exact same thing. | |
Re: [URL="http://java.sun.com/javase/6/docs/api/java/lang/String.html#matches(java.lang.String)"]String.matches[/URL]("[a-zA-Z]*"); Will return true for a blank field or a string consisting of nothing but letters. You can tailor that [URL="http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html"]pattern[/URL] to allow spaces, certain punctuation, fail a blank entry, etc. to suit your needs. |
The End.