3,927 Posted Topics
Re: [quote=balagangadharm;457669]cool dude dont get simply moved away.And u dont have anything to say about someone's attitude.If u then ur mind will definetly points about ur attitude wen give such responses.Just try to deal the things softly.Iam sorry if I hut u[/quote] This is not even decipherable. | |
Re: Why not just use Applet->database? I think you may have to sign the applet, but you can use JDBC within an applet. | |
Re: There is no need to create an .exe. If your jar has specified the Main-Class property in the manifest.mf file, it can be executed on it's own. The other jars and dll libraries can be simply packaged in a /lib folder and the whole app bundled as a zip or … | |
Re: [quote=Panarchy;457149]PS: Hopefully I will get the code soon![/quote] Hopefully you will use Google soon then, instead of pestering people here to give you code. | |
Re: You need to re-examine the basic structure of your class. This will not compile. Your main() method is not declared correctly. Several methods and even the class itself has no end brace. At least go through and make sure the methods are properly structured before you worry about putting any … | |
Re: Sure, that's great.. unless you are the eagle and don't wish to exist in a surveillance society :P | |
Re: Just like you would identify any other character in a string: look for "\r\n" or "\n" (system dependent). | |
Re: There are apps that will do that, but why do you feel that you need to? You give up portability and tie your program to a single native compiler, which may be slower than newer JIT compilers. If you think you need an exe, know specifically why your app absolutely … | |
![]() | Re: [quote=Mongooseman;456306]Linux Air Disgruntled employees of all the other OS airlines decide to start their own airline. They build the planes, ticket counters, and pave the runways themselves. They charge a small fee to cover the cost of printing the ticket, but you can also download and print the ticket yourself. … |
Re: [quote=balagangadharm;456529]hi cany anyone help me how to upload and download an audio file using jsp[/quote] Perhaps you should be posting all of these questions over in the JSP forum instead of the Java forum. | |
Re: There are two different ways you can approach drawing the spiral. 1) Using [URL="http://java.sun.com/javase/6/docs/api/java/awt/geom/GeneralPath.html"]GeneralPath[/URL] to define the path from a fixed coordinate system in which you define the coordinates of the segments to be drawn on a fixed x-y plane. 2) Using coordinate transformations ([B][URL="http://java.sun.com/javase/6/docs/api/java/awt/Graphics2D.html#translate%28double,%20double%29"]translate[/URL], [/B][B][URL="http://java.sun.com/javase/6/docs/api/java/awt/Graphics2D.html#rotate%28double%29"]rotate[/URL][/B]) to alter the coodinate … | |
Re: Um, no. If you can't understand homework code that you have copied, that would be your own problem. If you have a [U]specific [/U]question about some operation that it is performing then post it. | |
Re: Edit: This probably doesn't apply now based upon the example code you posted while I was responding. You mentioned using those two hashtables in other classes without qualifying them by name, which is not what your example indicates. Of course it will cause ambiguity. The only way to use them … | |
Re: There isn't a specific function for that, but all you need to do is walk the tree and collect the parent references if node.isLeaf() is false. | |
Re: Labby, please remove the advertising from your post as well. It has no bearing on your question and is not approriate for the forum. | |
Re: You don't show what code is getting that "s" object [inlinecode]s.getStudentID()[/inlinecode] but "s" is not getting cast to Student. It's still just Object, as indicated by the error message. | |
Re: Read the error in its entirety, especially the name of the class it reports and the line number. Try to figure out why the compiler cannot see that class. | |
Re: [quote=masijade;454551]By reading the documentation, maybe?[/quote] Yep, sounds like a good bet to me. They put that documentation in there for a reason :) | |
| |
Re: [url]http://exampledepot.com/egs/java.nio/ReadSocket.html[/url] | |
Re: Read your Eclipse documentatioin for how to set the class path for libraries you are using in your project. | |
Re: [quote=jwenting;450978]If you have a decent creditcard it is charged to your bank account every month, and has a low limit that's no more than you can (normally, if you don't do stupid things) pay off each month. Yes, many people get tons of credit cards to lead a high life … | |
Re: Verify that you have the main class set. There is an an entry in the jar manifest.mf file [inlinecode]Main-Class:[/inlinecode] that specifies the main entry point class when the jar is run. If you have specified the main class in your project properties, this entry will be made automatically when you … | |
Re: 1.) Look at the API for File. 2.) Look at the API for BufferedWriter. | |
Re: Well, you are probably right on the bloat. It all depends on how your menu items need to be used. If you have a single menu for the app, then just create a single menu bar class that manages those items. If you need to share those menu items among … | |
Re: It's going to be hard to set those name and value properties if you don't ever declare them. | |
Re: Closer, but still off by one. The methods are using a and b directly, instead of the array parameter :P You probably don't even want to define those array at the class level. They aren't related to the calculations themselves. Just define them in main() and use the methods for … | |
Re: No, it's not correct. You need to re-examine the basics of class structure. You don't even have the class, constructor, and main method defined correctly. This is just cobbled together pieces of UI creation code with no methods to actually do any computations. Even if it did compile it wouldn't … | |
Re: I'm not clear on what you want to do with the subtrees when you say "get the subtrees". If you select a node, you essentially have that subtree via it's children collection. What you do with that collection depends on your needs, so perhaps a bit more info would help. | |
Re: Your class path needs to include the location of DateComponent. | |
Re: Sure. 1) Learn the basics of the sort algorithm. 2) Learn the basics of a "double ended list" (doubly linked list you mean perhaps?). 3) Write code to perform the sort. 4) Post your code and questions if you encounter problems. | |
Re: Are you compiling against JDK 1.5 or 1.6? Generics were introduced in 1.5 and if your JDK is older it won't like that declaration. | |
Re: [url]http://java.sun.com/javase/6/docs/api/java/io/File.html#lastModified([/url]) | |
Re: No, because the button has no concept of what it is next to. That depends on where you put them, so you have to code your own method to determine what "next to" should be. Of course, the component does know things like it's local coordinates, which could certainly be … | |
Re: Well, as the message says [inlinecode]File not found: Computer.java[/inlinecode]. Make sure that the file is actually in that directory and you have not misspelled the name. | |
Re: This search might yield a good starting point. [url]http://www.google.com/search?q=simple+%22name+disambiguation%22+&btnG=Search&hl=en[/url] As you might imagine, it can get fairly deep pretty quickly depending upon your expectations. | |
Re: The compiler gives you more information than just "errors". Post the errors and what you think might be the reason for them. You need to learn how to interpret those messages and deal with the cause. Throwing up your hands and saying "I have errors!" won't get you too far. | |
Re: [quote=sawant_nitesh;450830]What is the future of JAVA ? JAVA was overcoming Microsoft's .net because of it's platform independence. As in coming couple of years , Microsoft is going to launch a version of .net that will support all platforms like windows, unix, linux etc. Then will .net become trouble for JAVA … | |
Re: What have you been covering in class lately? I'm sure your instructor has given you some idea as to how he wants you to approach it. | |
Re: Well, "...." doesn't give much insight into what you are doing with your lists, but to perform math operations on the elements you will need to cast them to Integer types. If you are using Java 1.5 or 1.6, auto-boxing will let you add them directly. Otherwise you will need … | |
Re: If you first run the text through an expression that separates the uncommented code sections from the commented out sections, you can then parse only the uncommented sections. | |
Re: What components are in your button[] array? Are they not the JButtons? If they are, you aleady have the button reference - it's button[i]. If that's not what you have in button[], then you can call getComponentAt() on the frame or panel that contains the buttons to get the component … | |
Re: Just post your code and ask about the parts you don't understand. All you have posted here is your assignment. | |
Re: [quote=omi.jain;449794]plz send me inventory management project in java immedietly[/quote] No. Where do you get off demanding code from anyone? Do your own work or fail. No one here will shed a tear. | |
Re: Actually, it complains that grade [I]might not have been[/I] initialized. "grade" is only given a value in the switch statement, which is a conditional. This means it's possible that grade might not get any value assigned and your later code which uses the variable may fail. The compiler warns you … | |
Re: Also, never throw exceptions from main(). | |
Re: [quote=nschessnerd;448827]As far as i know getText doesnt have any parameters. you would just say [code] String x=box.getText(); Long l= Long.parseLong(s);[/code][/quote] Well, yes, mostly correct, except you want "long" not "Long" and the parameter should be "x" instead of "s". It also needs to deal with the potential NumberFormatException[code=java] JTextField txtField … | |
| |
Re: Ok, it's pretty close but missing one important step: actually showing something in your text area. The listeners change your displayBooks index, but you still need a method to show the current book. I would make a method that takes a book index value as a parameter and shows (or … |
The End.