3,927 Posted Topics
![]() | Re: If you look at the Project Details section, there is an attribute Programming Language. This will tell you what language the project is written in and therefore how you would need to compile it. ![]() |
Re: Also, it has been requested of the poster that he use code tag at least 5 times and yet he still refuses. | |
Re: Directly from the API doc for Calendar class... [quote] Like other locale-sensitive classes, Calendar provides a class method, getInstance, for getting a generally useful object of this type. Calendar's getInstance method returns a Calendar object whose calendar fields have been initialized with the current date and time:[INDENT] Calendar rightNow = … | |
Re: Yes, the pork-barreling is deplorable, but unlike the aircraft thing at least most of those projects do get completed and benefit someone (roads, bridges, etc). I just still cannot believe they are allowed to attach completely unrelated expenditure items like those to a bill they know must pass. | |
Re: Yeah, I wasn't sure if he wanted to display/parse a special symbol or implement something like operator overloading. If you (mody2007), are wanting to overload an operator, Java does not provide any facility for that. You have to use class methods for things like that. ![]() | |
Re: We switched over to SVN about 6 months ago from VSS and like it a lot better. Not having locked "checked out" files has really made things much easier and it's pretty rare that we even have to manually resolve a merge conflict. Very nice to work with. | |
Re: [quote=umat_gila;385623][I]Ill try to answear the question there…[/I] 1. Are programmers the most frustrated lot among all the IT professional in the recent years? Nope, because its just a some option for all off u to keep stay exist. in this case not only in IT’ers too but in every section … | |
Re: The following link should provide applets A to Z: [URL]http://www.google.com/search?q=applet+tutorial&btnG=Search&hl=en[/URL] | |
Re: If they are constants, you can declare them "static final" and they will only be allocated once and directly inlined into expressions. Also, if you need high performance concatenation of many strings ( as in your "String str = v1 + v2 + v3;" statement), use a StringBuffer instead. | |
Re: Also consider that Sun has a ton of online Java tutorials for free. | |
Re: I don't think we can provide any insight without seeing the panel and frame classes. On a side note, your may want to reconsider your design in making everything static and trying to manage the interactions by calling static methods on the objects. The main method should really only be … | |
Re: It's worth noting as well, that if the recruiter is ignoring your C++ experience and pushing you to get Java certified when you do not have any Java experience, then the recruiter is probably worthless. Making a recommendation to learn Java because there are a lot of employment opportunities is … | |
Re: Well, since it is homework, I'll just give a general tip and let you figure the rest. Make each of your operation classes extend Thread. This means they must all implement a "run()" method. I think you can figure out how that applies to what you are aiming for. I … | |
Re: Actually, you should use the split() method of String instead of StringTokenizer and use regular expressions to remove text that you do not wish to include. Split will split your string by whatever delimiter you specify and return the parts as a string array. Regular expressions will allow you to … | |
Re: Function arguments in Java are by value, however, since object and array variables are references themselves, they are effectively by reference (sort of). Objects and arrays passed as parameters can be modified by the method, but the reference itself cannot be changed. This means that a function doSomething(Object someObject) can … | |
Re: First let me say that I haven't written any apps to do this myself, so perhaps there are specific libraries that make these things much easier, but basically you are just talking about communicating through a socket via http. In your login case, a POST would need to be sent … | |
Re: It appears you have copied the code from the actionPerformed() method directly into the itemStateChanged() method. The parameter to itemStateChanged function is "ie", not "e" as it was in actionPerformed. Even if you change the "e" to "ie", the code will still not work since getActionCommand is a method of … | |
Re: Use a BufferedWriter instead of DataOutputStream. You created a BufferedWriter like so: [code] BufferedWriter writer = new BufferedWriter( new FileWriter("myFile.txt") );[/code] The tutorial that peter_budo linked should provide any other info you need on usage. | |
Re: This forum is actually for Java language programming. Your error seems to be related to settings on your particular browser. I would recommend putting the exact message you are getting into Google and reading those forums that are coming up. | |
Re: There should be a ton of tutorials on the Net for both of those. I would recommend Googling for them. You might also want to check out [URL="http://www.gamedev.net/"]http://www.gamedev.net[/URL]. | |
Re: There are two commands available on a File object to create a directory. File.mkDir() will create just the directory specified by the File object. All parent directories must already exist. The second method, File.mkDirs() will create any necessary directories to create the entire path specified. [code] // if ParentDir exists, … | |
Re: Without a doubt, start with 2D if you are not already familiar with game programming concepts and graphics programming. | |
Re: Well, since you don't include the Deck class, it's difficult to see the whole domain, but a couple of things stand out. First, make the Deck class responsible for it's own Card collection. Your applet shouldn't have to push things into the Deck. The Deck will have a maximum of … ![]() | |
![]() | Re: You haven't specified any text for your menus. Use the constructor [code]JMenu gameMenu = new JMenu("Game");[/code] and you will have a top level "Game" menu. Add the text for the other items and you will be set. Also, you can ditch the getContentPane().add(topMenu). The setJMenuBar is sufficient. ![]() |
Re: Actually it was a totally pointless resurrrection of a 4-year-old thread with nothing of value to add. I deleted the post and am closing the thread. | |
Re: Advertising/promotion is not permitted in the tech forums. |
The End.