1,034 Posted Topics

Member Avatar for anbarblue

Shouldn't these be parsed: [code] Mort = answer.getText(); Int = answera.getText(); T = answerb.getText(); MonthPay.setText( "$" + (Int - (Mort * Int * T)) / (T*12)); [/code] T = Integer.parseInt(answerb.getText()); Also, don't you want to use doubles?

Member Avatar for anbarblue
0
265
Member Avatar for blackbabydoll
Member Avatar for blackbabydoll
0
241
Member Avatar for rockStar60608
Member Avatar for Frank0051

Can you not just create an AudioClip object with the corresponding URL and then call the play() method on it?

Member Avatar for Frank0051
0
186
Member Avatar for slobo7x

If you're working with strings this might work (not tested), but it looks like dragons solution is probably what your looking for. [code] bool find_string(ifstream& file, const string& search) { string line = " "; while( getline(file, line, '\n') ) { if (line == search) { return true; } } …

Member Avatar for perniciosus
0
464
Member Avatar for topito2

Few possibilities: You don't have the html to run the applet. The applet has one or more .class files and you don't have them all. There's security contained in the applet(for example, checking to see that it is run from the makers domain). I would say you don't have all …

Member Avatar for topito2
0
134
Member Avatar for dav555
Member Avatar for Dani
Member Avatar for Dani
0
214
Member Avatar for Ghost

java has a tutorial on it: [url]http://java.sun.com/applets/jdk/1.4/demo/applets/WireFrame/example2.html[/url]

Member Avatar for server_crash
0
124
Member Avatar for sahil_logic

So what's your question? I see nothing but a bunch of code in need of a few band aids, but no question.

Member Avatar for dwks
0
111
Member Avatar for iamthwee

You know there's a UI manager, right? Programs on windows platform should have the windows L&F, and so on. Where you get very, very, very ugly I don't know. Maybe it's just your design/layout/colors.

Member Avatar for jwenting
0
358
Member Avatar for ToySoldier

First off, I would suggest adding some tab characters "\t" instead of explicitly adding all the white spaces in. It makes your code really hard to read like it is.

Member Avatar for perniciosus
0
226
Member Avatar for baker011

I'm not too sure about this. It could be a thread timing out, or something blocking it. You'll probably have to wait until someone smarter than me posts.

Member Avatar for jwenting
0
155
Member Avatar for opfamily55
Re: Help

[QUOTE=opfamily55] I am learning JavaScript and am lost. [/QUOTE] Yes, you are lost. This is a JSP forum, not javascript. ;)

Member Avatar for opfamily55
0
125
Member Avatar for frack78

[QUOTE=frack78]I have written a binary search algorithm in java. I have a statement that when the search key is found it is printed to a terminal window. This statement when when called just keeps printing over and over and i cant figure out why :sad: . Can any one help? …

Member Avatar for server_crash
0
189
Member Avatar for nisaa15
Member Avatar for Narue

[QUOTE=Narue][edit] Bah! [/edit][/QUOTE] :eek: Abuse Reported.

Member Avatar for Dani
0
101
Member Avatar for Finalmadness

Take out the break statements if you want all them to execute, but that probably means your logic is flawed.

Member Avatar for Finalmadness
0
201
Member Avatar for Finalmadness

Loop not written properly. [Probably an infinite loop] for (int i=10; i>=0; i++) { } That would be an example.

Member Avatar for Finalmadness
0
285
Member Avatar for atrusmre
Member Avatar for vex
Member Avatar for server_crash
0
100
Member Avatar for Finalmadness

I don't think it would make sense to 'link' the classes, or at least the way you have written them it doesn't make sense. From what I can see, you need to make the 'CurrencyConvert' class nothing but methods and possibly aggregate that class into the Gift class. With what …

Member Avatar for NPH
0
219
Member Avatar for sudtuwup

What do you mean from a different context? To close: System.exit(0); To open: Just create an instance

Member Avatar for sudtuwup
0
179
Member Avatar for jack223

I'd say no, but there's no way to tell. The best thing to do is ask your teacher/professor. You can always do both and that way you won't have to worry.

Member Avatar for geekbutproud
0
2K
Member Avatar for iamthwee
Member Avatar for Quan Chi2
Member Avatar for chalimac
0
435
Member Avatar for nisaa15

Do you mean a tree? ;) I'd say use a map or something along those lines. If there's a java equivalent of the c++ multimap, then go that route.

Member Avatar for jim mcnamara
0
210
Member Avatar for vicky_dev

I'd say it's platform independant. Most platforms have a lock on files that are in use, and you can't delete them: [code] #include <cstdlib> #include <cstdio> int main(int argc, char * * argv) { remove(argv[0]); return EXIT_SUCCESS; } [/code] If that doesn't work, then as someone already mentioned, then it's …

Member Avatar for WolfPack
0
221
Member Avatar for bluegoo06

If I remember right, the vector class is very slow when inserting elements to the front, or any place except the back. So, if there is a method push_front() then you probably shouldn't use it.

Member Avatar for server_crash
0
132
Member Avatar for freesoft_2000

Thanks guys ;) If anyone loves me then just send me a gift($$$$) via paypal.

Member Avatar for extreme90
0
162
Member Avatar for frogshooter

If I understand correctly, you can set the visibility: Component.setVisible(false); Or even better, set the editability: Component.setEditable(false);

Member Avatar for server_crash
0
86
Member Avatar for Dee_Dee

You could simply loop through I guess: [code] bool anyNegatives(int nums[], int size) { for (int i=0; i<size; ++i) { if (nums[i] < 0) { return true; } } return false; } [/code] Pretty simple. If you encounter one, then you can break.

Member Avatar for SpS
0
267
Member Avatar for catherine1001

[QUOTE=catherine1001] But guys Java, J2EE ,.Net is currently on demand. [/QUOTE] I'm sure ALL programmers who know Java, just don't know Java.

Member Avatar for server_crash
0
134
Member Avatar for tgreer
Member Avatar for Asif_NSU

Alienware ALL the way. I wouldn't buy anything else. I have a Dell which is had nothing but SERIOUS problems ever since I bought it. Their tech support is decent under warranty, but the quality is crap. We actually have two of the same Dell laptops. One with major issues, …

Member Avatar for Asif_NSU
0
140
Member Avatar for vex

I'd personally rather use setLocation(int x, int y). I like using the setSize() property for the overall container and using setBounds(int,int,int,int) for inner containers.

Member Avatar for server_crash
0
113
Member Avatar for Daishi

I don't know much, but I think your best bet would be consumer credit counsiling to see what they say. If you do think about filing bankrupcy, then at least take a look into the chapter 13 plan. Not sure if that will help or not. I don't know much …

Member Avatar for Daishi
0
282
Member Avatar for Montrell274

What do you mean use a data file, text file and the other stuff? An interface is implemented like this: [code] class Test implements MyStackInterface { //now it must override the methods } [/code]

Member Avatar for NPH
0
107
Member Avatar for Lexani
Member Avatar for server_crash
0
153
Member Avatar for nanodano

Pretty cool. I actually started writing a console connect four game in c++ this morning. I'm done with it, but it's only two player. Shortly I'll be working on it for human vs computer.

Member Avatar for server_crash
0
185
Member Avatar for Robson13

Never heard of a vaw file? If you mean raw, then it can't be much more than using an File object, FileOutputStream, BufferedReader, DataInputStream, or something along those lines.

Member Avatar for server_crash
0
137
Member Avatar for shaji

Here's an excellent article on tuning the GC: [url]http://java.sun.com/docs/hotspot/gc1.4.2/[/url]

Member Avatar for hooknc
0
181
Member Avatar for jasmin_java
Member Avatar for George2

Probably whatever is the most efficent...Like if you have a small program that could be accomplished with an iterative loop, it would NOT be good practice to use recursion.

Member Avatar for Gargol
0
413
Member Avatar for techied
Member Avatar for etechsupport
0
158
Member Avatar for SmoothieQueen
Member Avatar for phani8123

Do you mind telling us the steps you've taken? It would be easier to diagnose a problem that way.

Member Avatar for phani8123
0
148
Member Avatar for Kennedy_f

[QUOTE=Gargol]Are you talking about Java?[/QUOTE] Kathy Sierra and Bert Bates book is the best in my opinion. You read that about 2 or 3 times and you'll make at least 75 or 80.

Member Avatar for server_crash
0
252
Member Avatar for gokul
Member Avatar for gokul
0
172
Member Avatar for tbrinkman

[QUOTE=tbrinkman]yes but it is a java problem ;)[/QUOTE] Ummmm.....Are you trying to use the "new" construct to instantiate an abstract class???? The root cause error should give it away.

Member Avatar for jwenting
0
325

The End.