Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
57% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
4
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
4 Commented Posts
~29.4K People Reached
Favorite Tags

42 Posted Topics

Member Avatar for Seijuro

What you MIGHT want to do is, create a class that extends JPanel, it is not so hard, forget about the paint and update methods, keep them default. In the constructor of the new JPanel class, send your JFrame's handle, and add a BACK button, which calls on a function …

Member Avatar for JamesCherrill
0
8K
Member Avatar for sach_ak47
Member Avatar for arpandixit

Isn't it kind of obvious? :D You dont have the javax.speech package, for that you need to download the JSAPI.jar, I dont think you are allowed to post download links here, but either ways some simple googling would suffice. In order for you to use it properly though, you might …

Member Avatar for modistm2
0
843
Member Avatar for WargRider

Well, I have used TortoiseSVN a lot previously in Windows XP, and in previous years, it has always been working well and the context menu never had a problem etc. (Btw, for those that dont know I am talking about the right click menu). Either ways, in Windows 7, I …

Member Avatar for aupadhye
0
736
Member Avatar for puneetkay

that is pretty small code for a Java game, but it is simple :) . You might want to include the images, because it is completely useless unless people have the images, unless someone can make it themselves :). Either ways, I am not here to use the code, but …

Member Avatar for Dawenlomo
0
1K
Member Avatar for WargRider

Dear Community, So I am making a 3D game using UDK and I have implemented / scripted everything I have wanted in the same so far. Then it occured on me today, why not have some cool speech recognition, so for those that dont know UDK (Unreal Development Kit) gaming …

0
86
Member Avatar for jjhames

Ahh bubble sort :), never fails. Either ways, nice post but you should really be telling this guy to at least try it himself instead of posting code, but w/e you already posted it, just throwing that out there :D

Member Avatar for jjhames
0
740
Member Avatar for VJTechno

Ok, well, first of all, yes you cannot go around REQUESTING code to be solved willy nilly, but I could help you out by saying that the Strings API has very easy to use and useful methods like String.splitString (I think forget the name though) and String.subString() which could REALLY …

Member Avatar for VJTechno
0
161
Member Avatar for WargRider

Well, I am writing a game / engine in 2d in , and I have gotten quite far, my problem is I was reading some stuff about the engine Slick2D, which is pretty much one of the most popular 2d engines in Java, I noticed that the creator said he …

Member Avatar for WargRider
0
314
Member Avatar for WargRider

I was testing out a networking script of mine, and it worked fine locally. It is basically a replica of a very bare bones multiplayer game network, where multiple clients connect to a master server, each client can say anything that it wants, and the server redirects that message to …

Member Avatar for WargRider
0
2K
Member Avatar for charat

I would suggest using a for loop instead of that while loop, just adding my 2 cents to the story :). Good Luck!

Member Avatar for WargRider
1
146
Member Avatar for Web_Sailor

I believe his question is that the label does not SHOW when the button is pressed, is that right? If what I am saying is the question, then post the entire code, because sometimes it could be a simple mistake like forgetting to ADD the Jlabel to the contentPane of …

Member Avatar for Web_Sailor
0
3K
Member Avatar for TheComputerGuy

Ok, so you have the following [CODE]String.charAt(string.length() - 1)[/CODE] This about this logically, you know that the LAST character is always the suit, and you know the length of the string, this cannot get any easier :). Look at it like this: 0 1 - INDEX 2 D - STRING …

Member Avatar for TheComputerGuy
0
187
Member Avatar for P00dle

You can definitely rename a file in Java, use this: [CODE] public class Rename { public static void main(String[] argv) throws IOException { // Construct the file object. Does NOT create a file on disk! File f = new File("Rename.java~"); // backup of this source file. // Rename the backup …

Member Avatar for P00dle
0
120
Member Avatar for ashwiniku

Sometimes, googling is your best friend. I dont hesitate to give out code, it is just you really should try yourself. My suggestion again, use an IDE like Eclipse and take advantage of the auto-completion, it lists for you the API of a class and what each method does. Here …

Member Avatar for jon.kiparsky
0
612
Member Avatar for beanboy

There is nothing to say here, you just said you finished Software Engineering, you have been playing around with code for a year, Create a project on your own, I am making a custom game engine in Java, full networking, if you are VERY interested in networking, try and write …

Member Avatar for WargRider
0
108
Member Avatar for Sunshineserene

yes, you need to either rename your class DynamicProgramming into Cell or change the word Cell into DynamicProgramming. You cannot create a constructor for one class in another. Use ECLIPSE IDE and it will show you why you get these errors, try to use IDEs when writing programs :)

Member Avatar for WargRider
0
220
Member Avatar for aditya027

Ok, listen, even though i1 = 9 on the first line, it is not FINAL. Java will not recognize this, and in it "mind" (bad work here), I should say in the JVM, it recognizes this as a potential source of error. In a regular program, non-final variables are changed …

Member Avatar for WargRider
0
136
Member Avatar for dylgod

NormR1 is definitely correct. But on top of his suggestions, let me add to this some code. It is not the SOLUTION, but it what you need to find one :). The 4 numbers that you get, if you know you will get 4, do this: [CODE] int[] nums = …

Member Avatar for WargRider
0
117
Member Avatar for bonett09

to Convert a string to an integer use: Integer.parseInt(string here); Hope it helps ;) good luck and google first :D

Member Avatar for WargRider
0
95
Member Avatar for blueman:-0

you have to have nested JFrames. I am assuming you are wanting to do something like photoshop, where a new document is made, but it is just a floating form inside the photoshop window. For that, you have to add the JFrame of the form you want to open, into …

Member Avatar for WargRider
0
172
Member Avatar for venkata krishna
Member Avatar for WargRider

Hey, well I have this problem, I am making a game in Java and it is getting really far. If anyone saw my last problem, that is resolved and I finished my networking code. Here is the problem, to start a new game window in my code, one would write …

Member Avatar for NormR1
0
107
Member Avatar for WargRider

I am creating a custom 2d turn based game engine in Java, and so far everything works great. Currently, I have come to the dreaded networking :), and I made a test code, prototype of the network that I would like to create. It uses Java's MulticaseSocket class, DatagramPackets and …

Member Avatar for WargRider
0
363
Member Avatar for WargRider

Well, I am actually making a custom 2d turn based gaming engine in Java. So far I have actually gotten a solid based down, the ability to load a seamless game world (no instances) as well as a layered world, with a terrain layer, buildings layer, unit layer then an …

Member Avatar for moutanna
0
156
Member Avatar for WargRider

Hey everyone, I have a pretty big problem. I need to develop a program that when opened(CONSOLE), targets a certain process and send the Shift+\ key to it, basically, I need it to type (|) the pipeline character I have tried everything, SendMessage, Postmessage, VM_KEYDOWN, VM_KEYUP and all that stuff. …

Member Avatar for WargRider
0
322
Member Avatar for Kami3

The best thing to do in my opinion at least, is to have the client have 2 sockets connect on different ports, and the serer program have TcpRecievers on 2 ports and jsut use the separate ones to communicate, if not that, then the 2 TcpClients can connec ton ONE …

Member Avatar for chan_lemo
0
271
Member Avatar for WargRider

Hello everyone, so I am going to be developing a website for a friend of mine. He owns this business that allows people to come to his store, pay 20 dollars and play some games. He wants on his website, a paying system, where users can pay 15$ instead of …

Member Avatar for WargRider
0
79
Member Avatar for WargRider

Hello everyone, Ok, well I am faced with the challenge of creating a scouting program for my robotics team so we could keep a track of how other teams do at competitions to compare and contrast their designs. I have 95% of the program done, it reads and adds info …

Member Avatar for Geekitygeek
0
103
Member Avatar for DarwinRock

Well, there are plenty of methods to do this, one I would try first before other things would be to make a picture box, and make the default image the image you want to display, set the default Visible property to false. Then during runtime, set Visible to true, read …

Member Avatar for DarwinRock
0
161
Member Avatar for yawar260

Well, lets say the column index is 0, a.k.a the first column. What you could do is fine the number of rows retrieved, I am sure there is an MySQL command to find # of rows, and iterate in a FOR loop, were you can create an array with the …

Member Avatar for WargRider
0
207
Member Avatar for NOLK

Well, if you are using his switch and you are using a console, then the command to print something on the screen would be: Console.WriteLine(result.ToString()); If you are using a windows form, then choose the label that you made (you must make a label or a textfield), and then set …

Member Avatar for NOLK
0
1K
Member Avatar for TheWolverine

I dont know about the - signs right infront of the sqrt, but when I usually deal with these mathematical operations dealing with negatives, I do some along the lines of : (something that should be negative here) * -1 so in your case: sqrt(x) * -1; That is just …

Member Avatar for TheWolverine
0
152
Member Avatar for endframe

Easy way in my opinion is to create a variable such as highNum = 0, iterate through every index in the array, if the element of the index in the array is HIGHER than high num, then set highNum = a[index_num]; Same for lowNum, expect make sure you set the …

Member Avatar for endframe
0
211
Member Avatar for lethal.b

If you really desperately need the code, here you go, I do hope you learn from it, as this is just a simple test of logic is all, but hey, we were all beginners once too ;). I warn you, this is not the BEST example of how to do …

Member Avatar for WargRider
0
112
Member Avatar for WargRider

Hello everyone, I have an issue, I am making a website at the moment using multiple divs as usual, but there is a probably with two of my divs. Events and News, event is supposed on the left side of the container on EVERY page of the website, which I …

Member Avatar for WargRider
0
146
Member Avatar for WargRider

Dear Community, Well after googling and some searching, managed to find a good 3ds loader class, that loaded all the vertices, UVs and other information for multiple meshes in a .3ds file. My only worry at the moment is displaying the vertices. The vertices are stored in a struct like …

Member Avatar for mrnutty
0
90
Member Avatar for corby

Create a new variable of type Player class, make sure the function for solving your problems are PUBLIC methods, and then do var.MethodName(params); So in Player class, if you had a function like this: public int PlayerTurn() { return playerTurn; } in TicTacToe, you would do this: Player myPlayer = …

Member Avatar for WargRider
0
686
Member Avatar for bryanpognant

[QUOTE=bryanpognant;1135020]oh man, thats my problem, i understand what you mean, do you guys have any examples i can base this off of? i really appreciate the help[/QUOTE] I already made the whole code, this is a very simple task, but I cannot just give it to you for plain reason …

Member Avatar for WargRider
0
170
Member Avatar for WargRider

Dear Community, I know that Java and C# and various OTHER programming languages support a variable type Object, which is basically a variable that can hold ANY kind of variable type, from strings to booleans. I was wondering if this is possible in C++, I REALLY badly need something of …

Member Avatar for Narue
0
4K
Member Avatar for WargRider

Hello Everyone, As you can see, I am new to DaniWeb, and might I say this is a VERY good community. Either ways, my problem is a pretty complicated one, which I have been working on for a while now, 2-3 weeks. I am assigned by my team to create …

Member Avatar for Nick Evan
0
403
Member Avatar for RehabReda

That line is basically creating a new variable type for you called string, the basic_string<char> is something you dont need to worry about, I will just guess though that you included <string> into your program. string is just another way of saying char*, but it is less of an array …

Member Avatar for mrnutty
0
103

The End.