4,084 Posted Topics
Re: your code is giving errors ... and what errors might that be? | |
Re: the sticky thread on top of this forum is also a good place to look. Starstreak: the official tutorials are pretty good. a good point of it is, for every change made to the language, or every error in them found, it can easily and quickly be corrected. just try … | |
Re: do you have Lorg/jfree/chart/plot/PlotOrientation; somewhere in your code? lose the capital L in front of that path. jfreechart-1.0.9.jar does contain that class. | |
Re: well, you don't have a variable count (as the error message states) and you are using the original LinkedList type, not the type you created, and that type doesn't have a 'splitMid' method. the error messages pretty much tell you what the problem is, what exactly is your question? | |
Re: and thinking like that, you never will find it: what you are trying to do is not "loading different frames in a form" a frame is the actual screen. a form would be part of it, placed in another component. what you try to do is change between panels in … | |
Re: what knowledge/experience do you have? that's what you should put on your resume. don't go making things up. | |
Re: there is no previous method on Iterator. http://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html | |
Re: you need to learn java. cout is not java. | |
Re: java is not javascript. why don't you just use the mail api and write it in java? | |
Re: you're not really 'instantiating' the interface, you are creating an anonymous class which implements the interface, and that's what you are instantiating. | |
Re: well, if I understood the question correctly, the recipient is supposed to be either yahoo or gmail, so whether or not it is free or paid for is not really important. | |
Re: we know nothing from the names of your components, input fields, ... how do you expect us to be of much help. | |
Re: best way to use StringTokenizer: not at all. here 's a quote straight from the StringTokenizer api: > StringTokenizer is a legacy class that is retained for compatibility reasons although its use is discouraged in new code. It is recommended that anyone seeking this functionality use the split method of … | |
Re: if this is a javascript question, [this](http://www.daniweb.com/web-development/javascript-dhtml-ajax/117) might be a better place to ask it. well, what number do you want to increase? the max (5) or the number that is subtracted each time? both values are hardcoded, it's not that difficult to just re-set the value. as a comment: … | |
Re: philo: your above statement makes no sense. if you want to use a DB, learn to work with JDBC, Hibernate, Mybatis, ... if you want to create a DB in java: don't. | |
Re: maybe to late, but you are not really "overriding" the method correctly anyway, the method should accept an instance of the type Object as a parameter, first check whether or not it is an instance of the class you're working in, and only if that returns true, check whether or … | |
| |
Re: dunno ... the original Tron, maybe? | |
Re: first, check the previous posts. by not even trying to do anything yourself, even after being told that the community rules dictate you have to, your input is not very productive. yes, we know that that is what you need, but this is not coderzzforhire or anything like that. we're … | |
Re: JavaScript is not Java, I think you would get more suiting replies in [this forum](http://www.daniweb.com/web-development/javascript-dhtml-ajax/117). | |
Re: [Java constructors](http://docs.oracle.com/javase/tutorial/java/javaOO/constructors.html) | |
Re: check the String api. My guess, the simplest way to do what you're trying to do is the contains method. for instance: titles in your list: "Avengers" "avengers" "The avengers" "The Avengers" ... here's your original code: comix[0] = new Comic("book title", "Author", "isbn", 454.24F); for (int i = 0; … | |
Re: you should understand that it is pretty hard for us to know what your (future?) employer deems a worthy application. if you were hired to do back-end development, or as a front-end developer, that changes a lot. are their applications single screen applications, multiple screens, 3D, .... ? | |
Re: don't know if it's actually solved, (marked as such but without an actual answer ... ) package names start with lowercases java.util.Scanner; not Java.util.Scanner; | |
Re: the addiction itself ... I agree that isn't really an illnes nor a character flaw ... however, the fact that you capparently couldn't live your life without "at least having to try", that IMHO is a character flaw. the downsides of smoking/drug use/... are well documented and known to everyone. … | |
Re: online we can email him at .... personally, haven't met anyone yet who could email offline. @NiallLover: if you still "don't get this", read the earlier answers, they actually do explain it all. | |
Re: hmmm... I thought it seemed familiar.. | |
Re: not to mention trying to read [URL="http://www.daniweb.com/forums/announcement9-2.html"]THIS[/URL] before you ask us to write your code | |
Re: 1. remove the first constructor 2. complete the second constructor to set all the values (since you can all deduct them from the two you pass on) 3. add a toString method 4. in your main method: a. instantiate a RetailItem b. call the constructor of CashRegister with the RetailItem … | |
Re: generate 52 cards? no, it will just assign one value, in the range of 0-51. (assuming that your NUMBER_OF_CARDS variable has the value 52) | |
Re: a few issues: you are constantly adding to your order value, instead of overwriting it. next problem, you are setting the prices for only one single ingredient. lose the else's in those statements. two more problems: you are setting your checkboxes with .setSelected(false); those statements also trigger your listener. so, … | |
Re: JCheckBox[] row = new JCheckBox[5]; the rest: iterate over the row, check each element whether it is checked or not. | |
Re: your code makes no sense at all. I'll try to get you up to speed: this part PatientAddress pInfo = new PatientAddress(); lName = txtSearchName.getText(); pInfo.searchInfo(lName); will first instantiate a new PatientAddress, which has it's own array of Strings of 50 elements (you aren't adding your address to it, and … | |
Re: try initializing your salary variable in the constructor of Employee. since you didn't do that, that variable remains null, and will throw a NullPointerException once you try to perform an action on it. | |
| |
Re: ehm .. no, we don't need to look at a picture of the JFrame, we though, however, need to know what exactly it is you need help with. is it the JSlider issue? the JCombobox issue? what have you tried, and what doesn't work? I assume you have figured out … | |
Re: In your other Thread it seems to me that you don't understand the complete concept of inheritance yet. It would be a good thing to first get to control that. well, a "1" can be cast to a numerical typ. your original HashSet contains elements of the type Object, not … | |
Re: what is "propagating upwards"? do you mean, why does it call the method in Sample1? | |
Re: should work perfectly. but I would advice to use JFrame's instead of Frame's. | |
Re: you will need an array anyway. how else are you going to check (in at least somewhat an efficient way) whether or not the number you just generated is a duplicate of one you've already found or not? it's either an array or almost twenty extra variables: very inefficiĆ«nt and … | |
Re: Java and JavaScript are not the same, I think you are mistaken with [this forum](http://www.daniweb.com/web-development/javascript-dhtml-ajax/117). | |
Re: unless the value is fixed, I wouldn't add it to the arguments of netbeans. also: you can see that Input.text and fin.txt are not the same. new File("fin.txt"); goes looking for a fin.txt file in the projects folder, not in the workspace. an ArrayIndexOutOfBoundsException... well, if you don't know what … | |
Re: hmmm ... not sure if I missunderstand the question here ... if we're talking about showing existing components, then it might very well be the point that he wants to change the css theme (visible setting) on the onClick. | |
Re: what I do wonder about, is how you come up with the value '-1' as an answer for question 2. even if you don't know how arrays work (in Java), it should be pretty clear that the only possible values that can be returned, are the values that are stored … | |
Re: invoking means calling. first you read ten numbers from the keybord (either command line parameters, or using input, Scanner, or another reading method), and then you enter one number from one to ten. if input = 1 runMethod1 else if input = 2 runMethod2 ... | |
Re: brylle: no, when the question is 'marked' as solved. | |
Re: ehm... correct the code? would you first mind telling us what your problem is? you are saying what it does. so, what is it supposed to do? | |
Re: in your integraal method, let's say that the og you pass is 5, and bg is 3. your return statement will never be reached. that's the problem. also, what's the use of putting a return statement inside a loop? you won't return several values, if that's what you're trying to … |
The End.