4,084 Posted Topics
Re: there is no such thing as "the whole Java technology". It's always updated, third parties are creating new libraries/frameworks, ... If you mean you want to start learning, the sticky thread on top of this forum is worth going through, it's filled with recommended books and tutorials. | |
Re: tools like 'add me fast' and such are 'nice', you'll see your likes going up in no time. but what is the worth? having likes from hundreds/thousands of people who either don't exist, or don't know they 'like' your page? worthless. 1. if it gets known you got your likes … | |
Re: To quote Grumpy Cat: "NO!" a few reasons: 1. This looks like either your assignment or job, meaning you are supposed to do it. 2. Even if we wanted to do your work for you, you provide way to little information. 3. You didn't even bothered to try to pretend … | |
Re: for tasks like this, Java is not the right language. you should use one who has more "connection" with the os and such. | |
Re: what prompt dialog ? what should it do, and what is it (not) doing ? | |
Re: well Dany12 ... not to break your hopes down, but: `I have only one week to learn java at a intermediate level.` about every (decent) Java course that covers only the basics, without any prerequisite knowledge takes months. learning a language within a week is ... well, crazy, to say … | |
Re: this will never work. the user must be logged in already with a jvm to run this code in. | |
Re: actually, you are looping through them one at the time. it just happens so fast after each other, you wouldn't be able to tell. just keep the questions in a list, and, instead of a for loop, use a JButton to go to the next question. | |
Re: and what exactly is your specific question ? at this point, we would have to run the code and start guessing at what it is you are having trouble with. also: remove the '{' before the import statement, and add one after the 'public class Assignment2' line | |
Re: itsmycake, this thread has been dead for several years. if you have a specific question: ask it. if you're working on J2ME: do yourself a favour, upgrade. J2ME has been out of date for eight years now. | |
Re: <M/>: posting on DaniWeb is like going to clubs in America. They just need a fake id ;) | |
Re: without seeing the actual code, it's useless to make to much assumptions. usually, problems arise when people think their code should behave in way A, while the code itself (because of a logical error) will behave in way B. | |
Re: Is this still an open question? I see you marked it as solved, but you don't state how it was solved. | |
Re: and be more correct. are you building a database ? this is not linked to "insurance". are you building an application which should organize insurances and uses a database ? that's an entirely different matter. my answer so far: don't be lazy and write the code, but I do recommend … | |
Re: why not Cesar Romero ? (even though those series were a bit to long ago for most of us to remember :) ) personally: I'm going for Ledger. Nicholson played it well, I don't deny that, but the Joker is not some character to be 'aware' of, he should be … | |
Re: Cripop: posting little is usually good, if it contains all the relevant code/information. In your classes, you don't follow naming conventions, you have a number of (static) methods in your classes that I can't imagine what you would need them for ... If you need to show all the elements … | |
Re: public static void main(String[] a){ Random random = new Random(); } | |
Re: Hongero: you are not asking help, you are askingus to do your homework for you. we are volunteers willing to help you increase your skills and knowledge, not help you cheat through school. | |
Re: not to mention, it's pretty hard to decide whether code is good or not, if we don't know what it is supposed to do. | |
Re: I agree with Reverend_Jim. For the last few years, we see the same kind of discussions with our system of education over here (Belgium). Statement 1: Children should not be separated in 'Technical school, higher grades (don't know the actual english translation) with courses like Greek, Latin, much math, ... … ![]() | |
Re: or, better yet, a .jar file, with a correct manifest file, that points to your main method. it is possible to put it all in one .java file, but it would be ridiculous. | |
Re: did you write this code yourself ? somehow, it seems to me that if you did, you would have know how to do so. in your iteration, don't add the text to print to a variable called output, just put the JOptionPane.showMessageDialog as last command in the loop, and replace … | |
Re: these links are worth a look at: http://stackoverflow.com/questions/9052784/set-size-of-tab-in-jtabbedpane https://weblogs.java.net/blog/xuanyun/archive/2009/01/change_the_tab.html | |
Re: My guess: you are getting three texts for each word you enter. move your if-else outside of that for loop. keep a local variable (boolean found = false) which you set to true if next is found in your array. after your iteration: if ( found ) setText("A"); else setText("B"); … | |
Re: a few remarks, though: it's a very good thing that you are motivated to study, but: with start to end ? when you start learning programming: there is no end. there 'll always be a new framework, a new version of the language, ... except if you choose a language … | |
Re: to be more specific: String sql = "select * from logindetails where rollno='"+name+"'"; String name = request.getParameter("rollno"); change the order in which you use these two lines. even better: start studying servlets. it's very bad practice to have Java code in your .jsp file. the Java code is supposed to … | |
Re: by connecting to the database using jdbc, jpa, hibernate, ... and writing the appropriate code. the code to write doesn't really differ from code you would write for a desktop application to use databases. | |
Re: I don't know where you got that code, but it's awful. n as name for a variable ... doesn't really tells what it is or supposed to be. `}catch(NumberFormatException ex){}` about the worst thing you can do. indentation should be better, just to make it more readable. `if(mItemCommand=="Paste"){` (same for … | |
Re: when the process starts, update a local kept file (bit like the system of a cookie) and set a value for key 'running' to true. right before terminating, set the value to false. each time you start it, first make sure the current value is false, otherwise, don't start. this … | |
Re: also: "option appears" ... this kind of tells me you are using an IDE. when just learning a language (which is obviously the case) you should not use an IDE. yes, it comes in handy, but if you start this way, you don't learn how to write code, compile, package … | |
Re: maybe this is some kind of emotional ego booster, supposed to make us think we are helping ? | |
Re: is this code working ? if not, it would be easier if you mentioned the error message you get. | |
Re: what exactly is the use of this statement in your code ? `while (y!= JOptionPane.NO_OPTION);` | |
Re: another possible way: duplicate the array, and sort it. then, check whether both are equal. | |
Re: site or tutorial ? none. have you checked: [HF - Design patterns](http://shop.oreilly.com/product/9780596007126.do) and related reading material ? | |
| |
Re: go over this, it'll tell you. [BufferendReader api](http://docs.oracle.com/javase/7/docs/api/java/io/BufferedReader.html) two remarks, though: 1. this question is not related to the original question in this thread, so you could/should 've asked it in a new thread 2. if the original question really was hard for you to figure out, you should not … | |
Re: well ... <M/> ... why do you think he called himself "Ancient" Dragon ? indeed, a great loss to the programming world and his family. | |
Re: Freaky_Chris: so, if you have a number, you are going to check each character one by one whether it's a digit ? (and this is only for the complete numbers). Cool_zephyr's approach might not be the fastest, but considering the (very) little decrease in running speed, it's still a good … | |
Re: does it work ? seems correct to me. | |
Re: claudio_1 : your post makes no sense. first of all: the last reply here was five years ago, secondly, what 'defect' are you referring to ? well ... bit of a pointless post. | |
Re: you say that this question is about a JOptionPane method, yet you don't tell us which one you are talking about. I'll just assume you are talking about a ConfirmationDialog. well, the showConfirmationDialog returns an int, based on which button you pressed. so, yes, you can tell which button was … | |
Re: ehm ... if you are a Java programmer, you should be able to perform all these tasks without thinking twice. if you don't: this is basic Java. maybe a refreshment course can help you up. don't depend on UML-Java converter software. in the end, one bug in that thing will … | |
Re: your vmgu class extends JFrame, vmpr doesn't. | |
Re: well, usually, if your code doesn't do what you want it to do, that's a fair sign that something is wrong. you don't show all your codes, so we can't know everything for sure. it would be best if you started step by step, so: don't post 10 things with … | |
Re: sesaso: if you can't get something like that to compile and run, you may want to stop using netbeans. if it runs, have you tried debugging, or just putting print statements in between to check what part of your code actually runs ? | |
Re: what have you done so far ? we are here to help you improve your work, not to do your homework for you. | |
Re: yes, but what is the problem? just replace `this` by `pete`, as James already said. | |
Re: depends on what you want to use it for. if you want to use it to stay in contact with people who live far away, sure, it's useful. if you want to use it to order groceries, it's not. | |
Re: NAN means, as you said "not a number". on which line do you get that error ? and what is the value you are trying to use as a numeral value ? |
The End.