3,927 Posted Topics
Re: And the assignment even says sample implementations are available - talk about lazy... | |
Re: try[code]try { // Create a URL for the desired page URL url = new URL("http://www.cinndev.com/testFile.txt"); BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream())); String str; while ((str = in.readLine()) != null) { System.out.println(str); } in.close(); } catch (MalformedURLException e) { } catch (IOException e) { }[/code] | |
Re: [QUOTE=kevinpeterson22;680566]Hi I am new to MYSQL DB and i am a fresher here i am having code which is perfectly run and the only thing is i have stored the data in file but now i want to stored the file in DB i mean i want to change file … | |
Re: If this is for your "email marketing campaign" (spamming), we're not going to show you how to scrape email addresses for your spam list. | |
Re: Also, don't make everything in your class static for no reason. | |
Re: Plenty for you to study here: [url]http://www.codeguru.com/java/tij/tij0075.shtml[/url] | |
Re: Never having used any GObject components, I don't really understand exactly what you are wanting to emulate. As far as other rendering strategies, it really depends on what you're doing now and what you're wanting to change about it. You might find some value in looking through the source code … | |
Re: That is just a method declaration, not a constructor. As already stated above, constructors do not specify a return type because they always return an instance of that class. | |
Re: You have made this a bit more complex than need be. For simple transformations, the Graphics2D methods rotate() and translate() will suffice (they additively modify the current AffineTransform of the graphics context) without any need to obtain or work with an AffineTransform object directly. I wrote this small example that … | |
Re: [QUOTE=Ene Uran;596659]Are prisons part of infrastructure? California needs lots more prisons![/QUOTE] They wouldn't if they stopped incarcerating for minor drug possession violations and if prison life were made much more difficult. Taxpayers already pay too much for needless or ineffective imprisonments. | |
Re: Well, the most noticeable thing right off the bat is wildly inconsistent naming and formatting conventions. Yes, they actually matter. [url]http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html[/url] | |
Re: No, simply no, you cannot load an external browser program into a JFrame. They are not Java components - they are standalone programs. | |
Re: Most likely you're not importing the class of the object being read. | |
Re: If you bothered to read the link he posted, in Drawing Geometric Primitives, they discuss the rounded rectangle and oval both. | |
Re: Why not just start the sound and then paint the image in the same thread? | |
Re: I'm just getting to the point I won't read code that isn't in code tags. I may reply that they need to post the code in tags, but if the code isn't formatted the question can go unanswered for all that I care. | |
Re: The link that I posted in your other thread about not displaying the image covers this... | |
Re: Have you looked at any of the tutorials and sample code in the Sun JMF section? There is a lot of information there for you to learn from. | |
Re: Your professor may have last compiled a "massive project" in 1970. :) My workstation compiles and jars a Java project of 869 source files in ~20 seconds. Incremental background compiles while editing are near enough real-time. | |
Re: [QUOTE=ravikiran032;677274]i don't understand how byte stream could read images. does it need help of applets or else.[/QUOTE] Images are comprised of bytes. You want to read them. Byte streams read bytes. You use a byte stream. ... | |
Re: [QUOTE=sittas87;674579]error in sentence: ...Its round, like a [COLOR="Green"]Apple[/COLOR][/QUOTE] Error in sentence: It's round like [I]an[/I] apple. (Since we're correcting things...) | |
Re: And you registered just to post that? Smells like spam to me... | |
Re: Well, I would think it unlikely that you are going to retrieve 10 images per second from an HTTP connection, but you could use a [URL="http://java.sun.com/javase/6/docs/api/javax/swing/Timer.html"]Timer[/URL] to repeat the HTTP GET requests on the connection on a set timing interval. | |
Re: If you have specific questions, post your current code in [noparse][code] [/code][/noparse] tags and your questions or errors. If you have no idea how to proceed and need someone to walk you through the whole thing you are probably out of luck. (And using 17 exclamation points does not get … | |
Re: See Chapter 7: Polymorphism here: [url]http://www.codeguru.com/java/tij/tij_c.shtml[/url] And please tone down the exclamation points a bit when posting. | |
Re: Most likely it's a resource location issue. You should use getClass().getResource(String) to locate the resource to load. You can read more about that here: [url]http://java.sun.com/docs/books/tutorial/uiswing/misc/icon.html[/url] | |
Re: [QUOTE=acejames1;674789]i would ask that all software developers make programs that work and do the job right the first time[/quote]Oh, well sorry, that goes against our desire to make programs that don't work and do the job wrong, just to laugh at your frustration with it. [QUOTE=acejames1;674789]i also think techies that … | |
Re: There is no specific method for that. Just use add() and remove() to switch their places. | |
| |
Re: Help yourself instead, by figuring this out and coding it. It's YOUR project and you are supposed to be learning something from this. What do you plan to do after you leave school when you have a project assigned to you? Ask people on the internet to hand you a … | |
Re: Yes, this would seem rather suspect in it's intent. | |
Re: [QUOTE=sciwizeh;673097]not the main loop, i get why you are using a loop there but why this: [code=java]while ( payrate <= - 1 ) { System.out.print ( "Please enter a positive number." ) ; payrate = input.nextDouble ( ) ; }[/code] all this does is keep taking in a number and … | |
Re: Place that code in a method of your ListTest() class rather than adding it directly in main(). main() should be performing operations on your ListTest instance and should not directly operate on any members of that class. | |
Re: You won't need much of anything in second year if you don't pay attention in class and pass the one's required in first year. Perhaps you should take a look at the "Starting Java" FAQ stickied at the top of this forum if you have no relevant class materials to … | |
Re: [quote]"Our world has grown weary of greed, exploitation and division, of the tedium of false idols and piecemeal responses, and the pain of false promises," he told the crowd.[/quote] So he's saying the world has grown weary of the church? | |
Re: 1) Put code between [noparse][code] [/code][/noparse] tags when posting it (There is a button that will surround highlighted text with code tags in the toolbar of the post editor as well) 2) Compiler errors tell you explicitly what the problem is and on what line it occurs. Read them. Post … | |
Re: [QUOTE=teh noobshow;668636]...<useless blather>...[/QUOTE] Nothing in that post could be construed as the least bit helpful to the original poster's question. | |
Re: I assume that was added automatically when code completion filled in a method or interface for you? If so, just replace that with your own code for the method. It's there as a placeholder so that if you don't fill in your own code, you will receive an UnsupportedOperationException when … | |
Re: It's not Java, obviously - it's gibberish. | |
Re: I didn't find much detailed documentation on the available parameters for code templates besides ${cursor} and ${selection} - even in the netbeans api docs themselves for the editor.codetemplates package. File templates use ${name} for that, but it didn't work in the editor code templates. | |
Re: It's not working for the reason that I mentioned at the bottom of your other "need help!!!!1!!!" thread on the same code. Obviously you didn't read it. | |
Re: Do you see a getSelectedItem() in the [URL="http://java.sun.com/javase/6/docs/api/java/awt/Checkbox.html"]Checkbox[/URL] API? Would such a method even make sense for a checkbox? Note, please place all code in [noparse][code] [/code][/noparse] tags when you post and give your threads a more descriptive title than "Help!" (as you seem to title all of your posts). | |
Re: You can't declare "_aboutAction" as Action unless it implements the Action interface or extends AbstractAction, which your AboutAction does not. | |
Re: Try [URL="http://poi.apache.org/"]Apache POI[/URL]. | |
Re: Be aware that you have re-declared all of your class-level component variables in your init() method, so if you refer to any of those outside of init() you'll find they are null and none of your listeners will work as you expect. | |
Re: The first time your wife sits into the toilet in the middle of the night after you left the seat up, you will [B][U]not[/U][/B] forget to put it back down again... :P |
The End.