1,034 Posted Topics
Re: I'm suppose to do 15 hours of non-profit work for the high school scholars program. I haven't found anything yet, but if your interested let me know. | |
Re: Looks good to me. I like how you have recommended books with your topics. | |
Re: It's probably looking for the classes to be packaged in a jar file instead of your current configuration..I could be wrong about that, but I'm thinking that's what it is. Why don't you post the FULL error message or grab a screen shot of it. | |
Re: [QUOTE=vex]Is there a simple way to change a positive number to a negative number??? float d = 1.0f; How can I flip d between pos. and neg.? Thanks in advance[/QUOTE] [Code] if (d > 0) { d = -(d); } else if (d < 0) { d = Math.abs(d); } … | |
Re: You have the escape sequence backwards..That shouldn't even compile. Here is a small example of what you should have: [Code] import java.util.*; public class TestTokenizer { public static void main(String[] args) { String tokenizeThis = "a cat is \"not\" a dog"; StringTokenizer st = new StringTokenizer(tokenizeThis); while (st.hasMoreTokens()) { System.out.println(st.nextToken()); … | |
Re: If the other computers have the JVM you can run the applications, but most likely you'll want to use some program that will package it like dark suggested. | |
| |
Re: Call M$ and explain...At least that the only legal way to do it. | |
Re: Just as I thought. Some older versions of java are funny about how things are added. You actually have to include a call to get the content pane even thought you shouldn't. Change this Line: [Code] add(pane); [/Code] to this [Code] getContentPane().add(pane); [/Code] I would suggest getting into the habit … | |
Re: The stop method will stop the sound completely, not at a specific. You need something that will actually pause it, instead of stoping the audio.. | |
Re: Look up the InetAddress class: [url]http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAddress.html[/url] There should be a method in there that suits your needs. | |
Re: I wrote a very simple one not too long ago, actually, it was simpler than what your wanting. If you don't know much about programming, then you definitely have some work ahead of you. As for the tutorials you'll need to read, there's a lot! You will want to read … | |
Re: setBackground() might take an image object as one of it's parameters, but I don't know. If not, in the paint method you could use drawImage(). | |
Re: There's like 65000 ports(if I remember correctly) to choose from, but remember to be careful about selecting one that doesn't have major process running. | |
Re: I did this once in my text editor. It was for text, but the code my help out a little: imported statements for transerfable: [Code] import java.awt.datatransfer.Clipboard; import java.awt.datatransfer.ClipboardOwner; import java.awt.datatransfer.Transferable; import java.awt.datatransfer.StringSelection; import java.awt.datatransfer.DataFlavor; import java.awt.datatransfer.UnsupportedFlavorException; import java.awt.Toolkit; [/Code] get an instance of the system clipboard [Code] Clipboard clipboard … | |
Re: I got your PM, but I really can't help that much. Check out these sites and see what you can get from them: [url]http://www.developer.com/java/other/article.php/2105421[/url] [url]http://forum.java.sun.com/thread.jspa?threadID=607247&messageID=3319050[/url] [url]http://java.sun.com/products/java-media/jmf/2.1.1/guide/JMFCapturing.html[/url] I don't know if those will help or not, but I really don't know how to do this. Sorry I couldn't help more. | |
Re: You should be able to easily do this with add() or remove(). Are you remembering that a Menu must have JMenuItems and not buttons? Also, if your getting an error, post it. | |
Re: You could always put it into a StringBuffer and reverse it: [Code] import java.util.*; public class ReverseTest { public static void main(String[] args) { int reverseThisNumber = 12345678; StringBuffer sb = new StringBuffer(""+reverseThisNumber); System.out.println(sb.reverse().toString()); } } [/Code] Or you could use a recursive String reverse method: [Code] public String reverse(String … | |
Re: It's against forum policy to do peoples homework for them. If you show a little effort we can help. | |
Re: I'm not. I don't believe in gambling, but I don't condone people who do. I'm sure there are millions of people who would be interested though. | |
Re: Are you guys talking about the subdermal chip that is implanted in the skin? | |
Re: There was a few problems. I've got a working version below that you can look at. If you have an older version of java it may not run correctly. Now, you'll have to extend JFrame to get some of the methods I'm using, which I prefer to extend JFrame anyways. … | |
Re: Did you override that method? If not you need to add this method in your class; [Code] public void actionPerformed(ActionEvent ae) { } [/Code] | |
Re: Since it involves nodes, then you could probably use a binary search tree. If you know how the algorithm works and everything you might not have too many problems, but this program will still be very tuff. If I had further advice/code snippets/suggestions I would give them to you, but … | |
Re: I wouldn't waste my time writting some method to create a parabola like that. Use drawPolyline(), it's much easier. You could use a Timer object to keep track of how long, and then just increment the variables and call a repaint. | |
Re: file sharing networks. I think 50% of files on kazaa are corrupt. | |
Re: You need to have good english skills to start with. Then, get the book by kathy sierra and bert bates. | |
Re: Sort the freakin array, then get the first freakin element(min), then the freakin last(max), then freakin loop through and keep count, then freakin average it. It's not that freakin hard, and don't post homework questions again unless you show some effort. | |
| |
Re: [QUOTE=adityabakle] Note Java is case sensitive. in every terms.[/QUOTE] What about hexidecimal literals? :) | |
Re: [QUOTE=bucwyld]heres an easy one..how do I make it... rob[/QUOTE] Program it? | |
Re: Don't use the deprecated methods. You simply set the thread to null, and that will stop it from running. currentThread = null; | |
I started over with reading my certification book, and I'm now on page 113. It says that an interface can extend one or more other interfaces.....I thought you could only extend one thing, or do they mean the interfaces that the extended interface extended? | |
Re: [QUOTE=Catweazle]Whilst I do not support piracy, I really believe that people should have the right to make working copies of the fragile CD and DVD discs they spend hard-earned money on. but it seems that our ability to do so is seriously under threat. The oldest of the DVD copying … | |
Re: I have an extremely good book. [url]http://www.amazon.com/exec/obidos/tg/detail/-/0072226846/qid=1116930539/sr=8-1/ref=pd_csp_1/104-4773591-4255936?v=glance&s=books&n=507846[/url] It covers everything, and includes some really tuff questions and practice tests. | |
Re: I'm not completely sure you can do this, but if you can, an extra class that extends Thread should work: Have the normal class make the calls to the thread class: [Code] public class b { public b() { new ThreadClass(socket,2001); new ThreadClass(socket,2002); } } public class ThreadClass extends Thread … | |
Re: look on amazon for cathy sierra and bert bates(think i got those names right) java certification book. BEST book I ever bought. It covers a lot of crap you don't get from most books. I've had it for a long time and still haven't got through the whole thing. | |
Re: How can a blind person even see a text based browser? | |
Re: Personally, I would'nt use all those classes. You could use one class and it still be just as efficent. Plus, I would use buttons and set the label of the button to either x or o, which will make it much easier to tell wether someone has won or not. | |
Re: This book: [url]http://www.amazon.com/exec/obidos/tg/detail/-/0072226846/qid=1117416881/sr=8-1/ref=pd_csp_1/103-6351424-5749444?v=glance&s=books&n=507846[/url] It covers everything. | |
I somehow go this virus on my computer that stole my desktop, and wont let me chang it. I think it's called "Trojan-Spy.HTML.Snitfraud.c"....I've tried everything to remove it. I've ran avg, adaware, and spyware doctor, and neither one could remove it. What else should I do? | |
Re: The AI involved will be extremely difficult. I wouldn't even know where to start. | |
Does anyone have a few good sites that give you some practice java questions? I'm not tallking about java certification questions, just regular old java questions about the language. I need a lot of them, so please post as many sites as you can. | |
Re: The first doubt should go with the system, although it's not likely. Has a problem ever arised like this before? My guess is that it's probably the student, but when it's his word against the system, there's not much you can do. | |
Re: You can use email spoofing from the command line, although you can easily tell they are fake by looking at the header info. Then most ISP disallow such action. | |
Re: Your trying to reach non-static contents from a static method. You can't do that. Either make your method public, or you'll need to create an instance of what your trying to get. I would just declare it public. | |
Re: Yes, it's very possible. You'll need to create a BufferedImage out of the graphics. Take a look at this link, it describes it better than I can. [url]http://javaalmanac.com/egs/javax.imageio/Graphic2File.html[/url] | |
Re: [QUOTE=dlh6213]You didn't mention that before :) How about 'Who invented the internet?' Hint: it was [B]not[/B] Al Gore. [/QUOTE] I invented the internet. Anyways, the internet started out as some military experiment and now is an everday lifestyle, so that's what I would choose. Of course there is the invention … | |
Re: I haven't coded in C#, but I know it's catching on pretty fast. I have done some VB.NET and liked the feel of it. | |
Re: It seems like that's a bug. I've found pages saying it's a bug, but can't find a fix to it. |
The End.