1,034 Posted Topics

Member Avatar for ae1

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.

Member Avatar for anastacia
0
297
Member Avatar for RonnyDeWinter

Looks good to me. I like how you have recommended books with your topics.

Member Avatar for RonnyDeWinter
0
127
Member Avatar for nccliang

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.

Member Avatar for nccliang
0
152
Member Avatar for vex

[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); } …

Member Avatar for server_crash
0
197
Member Avatar for Shanrak

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()); …

Member Avatar for server_crash
0
296
Member Avatar for stupidenator

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.

Member Avatar for server_crash
0
225
Member Avatar for ! !
Member Avatar for martina74756
Member Avatar for Catweazle
0
177
Member Avatar for Dark_Omen

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 …

Member Avatar for Dark_Omen
0
143
Member Avatar for nilesh

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..

Member Avatar for server_crash
0
131
Member Avatar for nccliang

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.

Member Avatar for freesoft_2000
0
183
Member Avatar for maverick_79in

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 …

Member Avatar for freesoft_2000
0
219
Member Avatar for jigvesh

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().

Member Avatar for freesoft_2000
0
87
Member Avatar for nccliang

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.

Member Avatar for server_crash
0
96
Member Avatar for Ghost

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 …

Member Avatar for freesoft_2000
0
181
Member Avatar for Ghost

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.

Member Avatar for freesoft_2000
0
289
Member Avatar for miles11

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.

Member Avatar for flybet
0
135
Member Avatar for CoolHandLuke

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 …

Member Avatar for server_crash
0
99
Member Avatar for andy4u

It's against forum policy to do peoples homework for them. If you show a little effort we can help.

Member Avatar for Ghost
0
513
Member Avatar for trafficman
Re: Poll

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.

Member Avatar for Catweazle
-2
175
Member Avatar for ! !
Member Avatar for Real-tiner
0
231
Member Avatar for apcxpc

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. …

Member Avatar for server_crash
0
218
Member Avatar for Wrath

Did you override that method? If not you need to add this method in your class; [Code] public void actionPerformed(ActionEvent ae) { } [/Code]

Member Avatar for server_crash
0
214
Member Avatar for nisaa15

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 …

Member Avatar for server_crash
0
144
Member Avatar for JGee2005

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.

Member Avatar for JGee2005
0
97
Member Avatar for zeroth
Member Avatar for server_crash
0
451
Member Avatar for catherine1001

You need to have good english skills to start with. Then, get the book by kathy sierra and bert bates.

Member Avatar for server_crash
0
173
Member Avatar for spdman01

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.

Member Avatar for server_crash
0
170
Member Avatar for server_crash
Member Avatar for justbboying
-1
190
Member Avatar for Dark_Omen

[QUOTE=adityabakle] Note Java is case sensitive. in every terms.[/QUOTE] What about hexidecimal literals? :)

Member Avatar for Dark_Omen
0
260
Member Avatar for bucwyld
Member Avatar for server_crash
0
112
Member Avatar for foucault

Don't use the deprecated methods. You simply set the thread to null, and that will stop it from running. currentThread = null;

Member Avatar for mmiikkee12
0
225
Member Avatar for server_crash

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?

Member Avatar for jwenting
0
128
Member Avatar for Catweazle

[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 …

Member Avatar for moderate_rock48
0
161
Member Avatar for Kennedy_f

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.

Member Avatar for server_crash
0
230
Member Avatar for twocentwhoracle

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 …

Member Avatar for server_crash
0
71
Member Avatar for Kennedy_f

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.

Member Avatar for server_crash
0
195
Member Avatar for Shackbase
Member Avatar for Surfline

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.

Member Avatar for server_crash
0
239
Member Avatar for higherGround574

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.

Member Avatar for jwenting
0
103
Member Avatar for server_crash

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?

Member Avatar for DMR
0
518
Member Avatar for nisaa15

The AI involved will be extremely difficult. I wouldn't even know where to start.

Member Avatar for server_crash
0
49
Member Avatar for server_crash

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.

Member Avatar for server_crash
0
189
Member Avatar for redwheelbarrow

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.

Member Avatar for redwheelbarrow
0
163
Member Avatar for mikeandike22

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.

Member Avatar for server_crash
0
60
Member Avatar for markymarkb1000

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.

Member Avatar for server_crash
0
514
Member Avatar for Ghost

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]

Member Avatar for server_crash
0
156
Member Avatar for mikeandike22

[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 …

Member Avatar for mikeandike22
1
224
Member Avatar for populate

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.

Member Avatar for server_crash
0
157
Member Avatar for freesoft_2000

It seems like that's a bug. I've found pages saying it's a bug, but can't find a fix to it.

Member Avatar for server_crash
0
138

The End.