3,927 Posted Topics
Re: [quote=hbk619;466272] O I C. Don't ask why I typed like that. O_o[/quote] Were you educated in the southern US? Perhaps you recall it from the reading test: [code]L.A. (Lower Alabama) 12th Grade Reading Test Test 1 Test 2 MR DUCKS MR SNAKES MR KNOT MR KNOT. MNO SNAKES. SAR OSAR … | |
Re: [quote]just cant seem to get moduleId and module name to print out in my driver file. this is the driver file[/quote] Because, as Masijade already told you above, you have set all your variables to empty strings in that constructor and you haven't set values for them in your "driver". | |
Re: I can remember in college when the first visual browsers were starting to show up (Mosaic being the first). Most everything available was just text. Not long after, everyone and their dog was creating useless personal home pages with animated gifs, music, and links to crap that no one else … | |
Re: Yes, to test for string equality you need to use equals() or equalsIgnoreCase(). There are more fundamental problems with what you have written there though and it will not compile. Re-examine the basic structure of 'if' statement blocks. | |
Re: [quote=#1Basser;464973]I am new to java and having issues... I am using this code as an example but when I try to view it all I get is a blank screen. Can someone tell me what to write in my notepad to view the applet. I have this now <html> <head> … | |
Re: Well, it's difficult to speculate from a general perspective on a specific implementation such as OracleConnectionCacheImpl . Have you tried searching any Oracle forums specifically for mentions of that behavior? Are you promptly releasing connections when they are no longer needed? Is this a checked exception that you should be … | |
Re: [quote=xs.gautam;465458]do u have any idea abt the cost & duration in completion of this project ?[/quote] That would depend completely on how you implement it and your own abilities to do so. | |
Re: Not without specific questions they couldn't. It also sounds like something more appropriate for the JSP forum. | |
Re: [url]http://ant.apache.org/manual/CoreTasks/move.html[/url] | |
Re: You need a variable of type Year to hold that value in the Student class. Your constructor would also pass a Year value instead of a String. toString() can access the getGradeLevel() method of the enum value to display the string representation you have given those constants. | |
Re: Because all of your return statements are in conditionals (the "if"s), there is not a guaranteed return path. Instead of putting the returns in the if clauses, make a variable to hold the calculation and make a single return of that value at the end of the method. | |
Re: Also, instead of using the numerical values here to evaluate the dialog result[code]//This case handles the "Yes" button, when pressed. case 0:[/code] use JOptionPane.YES_OPTION and JOptionPane.NO_OPTION. Those constants are there for a reason. You wouldn't need a comment to explain [code]case JOptionPane.YES_OPTION:[/code] | |
Re: [quote=Triggerhappy41;462956]Now I'd like to be able to set up a scrollable GUI, but I have no idea where to start. I know JScrollPane and JScrollBar are involved, but searches on the two have come up with nothing as far as tutorials go. Does anyone have any links to a good … | |
Re: Well, yeah it's ridiculous - if you wave your arms and point at only part of the story out of context. When you include this part [quote] Her next-door neighbour, a city police officer who was off-duty at the time, asked her to keep it down, police said. When she … | |
Re: [quote=Salem;403671]Planned by bush and his cronies - not a snowball in hell's chance. Allowed to happen through incompetence and inaction of one or more previous administrations - pretty likely. Caused by US foreign policy which continues to honk off a large majority of the worlds population with it's "we're all … | |
Re: Perhaps he meant [url]http://uncyclopedia.org/wiki/Assburger%27s_syndrome[/url] :) ![]() | |
Re: I agree, marijuana should be legalized. Salem already posted most of the reasons for this and I agree with them. Alcohol is far more harmful than marijuana will ever be. | |
Re: [quote=lasher511;459141]None of those are actually proof that pot is causing this stupidity or evidence to support the argument that it should not be legalized.[/quote] Yep, pot smokers don't have a corner on stupid behavior. Perhaps Midi can compile a comparison list of stupid things done by people who haven't smoked … | |
The user task bar at the top is showing an unread PM, however no unread PMs appear in any of the message lists. After a contact list invitation appeared, it showed 2 unread where it was 0 unread before, so that may have caused the discrepancy somewhere. | |
Re: You need to keep a vector of vectors for this. The main vector to hold a vector for each team. The team vector would hold the score of each game the team has played. Averaging these by game and team is then just a matter of nesting the inner and … | |
Re: Your class name needs to match the file name. You have named the class Main put placed it in midterm1.java from the looks of it. Side note: You really could use some more white space to separate your methods and logical sections within the methods. It will make it much … | |
Re: You want it to place them on the form or just create and return them? Having three methods that only differ in the setBounds() parameters is just unnecessary code duplication and none of those methods places anything. If you just need to create and return the three buttons, your method … | |
Re: Cannot find symbol means that it can't find a class,method, or variable that you have used. It could be that you misspelled something (watch capitalization, Java is case sensitive) or you are calling a method that does not exist on that class. These are very basic error messages. Look at … | |
Re: Well, the verification is occurring in BasicFileChooserUI.ApproveSelectionAction. If it's really worth it to you, you might be able to extend the necessary classes to provide an interruptible threaded implementation, but it might get stickier than you expect. I don't know all of your requirements, but it might be more straightforward … | |
Re: Collections.BinarySearch returns the index in the list where the item was found. If you need to return the object then return [ICODE]list.get(index)[/ICODE]. Your foreach loop around the search call doesn't make much sense though. For a given path, it's a single call to locate it within the list. Also, sorting … | |
Re: You are sending the post request, but not reading the response. See the following example: [url]http://www.exampledepot.com/egs/java.net/Post.html[/url] | |
Re: Well, I'm not a boby (booby?!), but here's an example: [url]http://www.exampledepot.com/egs/java.applet/LoadImageApplet.html[/url] | |
Re: It clearly says "not a statement". You need "."s between the object reference and methods to make those valid. | |
Re: Honestly, this is almost impossible to read and follow. Reading and following this may help a bit: [URL="http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html"]Code Conventions for the Java(TM) Programming Language: Contents[/URL] The functioning of the methods and their names are just too non-intuitive to wade through. If you can post the relevant lines where you are … | |
Re: This is natural behavior for floating point numbers. They are a limited precision representation of a decimal value and you should not expect them to be an exact result. This is why they should not be used for financial calculations which require perfect precision. | |
Re: [quote=babyfrostie;451573]waa.. i dont know understand about public String getText()... can you give me a sample of it?? this is my action for the PRINT button: [code] public void actionPerformed (ActionEvent e) { if(e.getActionCommand()=="PRINT") { String temp=""; temp=rice1.getText(); output.append(temp); rice1.setText(""); } [/code] not working though :([/quote] That's because your button says … | |
Re: Heh, missed me by quite a bit. Most of the questions didn't have answers which fit. So it's batting a whopping zero so far. | |
Re: [quote=George87;460093]Do you have any idea from where I can get some mock exams?[/quote] Yes. One idea comes directly from Google [url]http://www.google.com/search?hl=en&sa=X&oi=spell&resnum=1&ct=result&cd=1&q=sun+java+practice+exams&spell=1[/url] A little initiative on your part would have discovered that very quickly. Professional programmers seldom have solutions directly handed to them, which is something worth pondering if you are … | |
Re: array[16][1][3] is of no practical use. Why nest the third level under a second level that only contains a single item? You are just making more work for yourself and creating potential problems by doing that. | |
Re: There are some system-specific ways to do it, but it's not really the place of System.out.println() to do that. | |
Re: You may have not set the environment variable correctly. Check the manual pages for your OS [B]javac(1)[/B] - Manual page [ [URL="http://java.sun.com/javase/6/docs/technotes/tools/solaris/javac.html"]Solarisâ„¢ Operating System[/URL] | [URL="http://java.sun.com/javase/6/docs/technotes/tools/windows/javac.html"]Microsoft Windows[/URL] ]. | |
Re: [quote=abar_sow;459153][code] if( m.group(2).equalsIgnoreCase("NN")) { list = m.group(1); Set<String> s = new HashSet<String>(); if(!s.add(list)) System.out.println("Dups" +list); return list; } [/code] list is a variable tat contains list of strings. I want to check duplicates in that variable. but here its not printing any.. Can anyone figure or suggs pls.[/quote] "list" looks … | |
Re: You just need to read the jdbc documentation and the Oracle documentation on saving blobs. | |
Re: [quote=Attila.Both;458327]Hi! [B] Did you get your answer already to this faultString[/B]: The value of the 'http://www.w3.org/2001/XMLSchema-instance:type' attribute must be namespace-qualified. exception???? Please let me know, Attila[/quote] Nope, not yet. Did you? That seems more relevant. Have you tried a Google search on XML schema namespace in the 11 days since … | |
Re: [quote=sharmila12;458333]hello i am sharmila i have small doubt about php and mysql.please anybody reply me.[/quote] Step 1: Ask in the PHP forum. | |
Re: [quote=zandiago;458342]..in other words, i heard that the two languages are similar and are different in other respects(such as speed and efficiency). What i was reffering to was are the commands the same, headers, mathematical calculations...ect....I didn't need you to convert the entire program...i'm not studying java.[/quote] You heard correctly - … | |
Re: Well, if you don't start your while loop within a comment, it will probably exit as you expect.[code] boolean stop = false; //controls if loop below executed [B]while (!stop)[/B] {[/code] | |
Re: Yes, it would be good to have a thread for this stickied at the top like some of the other Software Development forums. | |
Re: [quote=Lardmeister;455108]Here you go with your insults again! You are a grown man Dave, come up with something of your own, and leave that Nazi stuff at home! "Tell a lie often enough and it becomes the truth!" wasn't meant as advice, it was a warning by Carl what competitors might … | |
Re: lasher511's translation made as much sense. Hooray for irrelevant gibberish. | |
Re: Have you already read the JScrollPane API document and the tutorial on how to use scroll panes, which is featured prominently at the top of that API doc? |
The End.