4,084 Posted Topics
Re: and how exactly you want us to help with this? you are showing bits and pieces of code, without mentioning what they are (supposed to do). for instance: what is this Prog variable? and why would you want to do this: `catch (InterruptedException ie){}` check [this](http://stackoverflow.com/questions/11918384/getting-my-jprogressbar-to-run-on-a-timer-from-1-to-100) for an example of … | |
Re: doubt that's even a complete assignment. I see no reference to a 'pin' anywhere in there. | |
Re: you wrote the class, yet you don't understand what you wrote? then how exactly did you write it, or how, for that matter? myFarm is an array of object of Farm class ... makes very little (if any) sense to me, and it doesn't seem to be so by your … | |
Re: I would also suggest adding some "close();" statements here and there. have you tried to debug the application? does that method in your servlet actually call what you think it does, and does it passes the if statements you think it does? | |
Re: yes... two hours after the question was asked ... very helpful. | |
Re: firstly, remove all your java code from your jsp file and put it in a servlet, it'll make it a lot easier to read/maintain. your problem is that you are trying to use the connection after you've closed it. it's a bit the same as stepping through a wooden door … | |
Re: first working item, replace your awt code by Swing code. not entirely sure about your drawing logic, neither. seems to me if you increase the sizes in your one loop, you should decrease them in the other. | |
Re: we know nothing of your system, nor your configuration... how do you expect us to magically fix the problem? | |
Re: and stop giving all your Threads the title 'Core Java Tutorial Point'. they say nothing at all about the thread, or what it is you are asking about. your title should show a first hint of what the thread is about, not the name of the blog you are trying … | |
Re: this is like asking: what's the difference between a Volvo and a BMW. they're both IDE'S (cars), but they have their internal differences. JCreator is a lightweight IDE, very good for a beginner who has got the hang of the basics, but when going professional, you'll want to step over … | |
Re: it's incomplete, badly structured, badly (some places even wrong) explained and a re-invention of the wheel. (only it looks like this wheel is rather square than round). it offers very little information, and for those just starting, not nearly enough. I applaud people who do the effort to help people … | |
| |
Re: and what's your point? we have no idea what your game 'doubles' is supposed to do, so we can't even verify that what you are doing so far is correct. we also don't know what it is you don't have yet, or what is stopping you from writing that code. … | |
Re: use an instance of Scanner to read a line of Strings, and use these to choose between/perform your next actions. | |
Re: ehm ... not to sound negative, but those "advanced features", multithreading, gui (swing), ... are not advanced, they are basic. so is jdbc, by the way. without knowing what your level is, it's pretty hard to give advice, but the sticky threads on top of this Java forum are worth … | |
Re: sometimes existing code is repeated in several methods. that can be turned into a separate method, which is called where it is currently repeated. simple refactoring, or adding some basic methods: equals, toString, hashcode, ... | |
Re: there is no such thing as "a good java eclipse tutorial". you should learn the language independent of an IDE. check the sticky threads on top of this forum for good starting points. | |
Re: what you could have done is start your own thread, since this is: a. not the same issue b. a 6 year old dead thread, that shouldn't have been revived. what on earth is that int doing in that method call? anyway, check [this](http://docs.oracle.com/javase/7/docs/api/java/lang/String.html) to find out what options you … | |
Re: it'll take a bit more effort than just asking this. how do you want to upload? to the server? to a db? | |
Re: you'll need a little bit more than just one method. what have you got so far, and what are you stuck with? | |
Re: considering the fact that the OP hasn't visited the Daniweb fora for over three years, I'm pretty sure he won't come back to read this update. pretty pointless to add it and revive the thread. | |
Re: Varunkrishna: that's not at all what he said. what he says is: even if your code is perfect, there are always other variables that might be less than perfect, and cause problems. for instance: a ton of bugs you might get, are just pebkac/pebcak errors. | |
Re: what do you think about non-electronic electoral voting? is that trustworthy? | |
Re: looks like he's missing a closing bracket right before the main method. | |
Re: you do "the" project about seafishing from "the" boat. what project? what boat? are we supposed to mean what you are talking about? have you tried [this](http://bit.ly/1ek0wNX)? | |
Re: there is always some refactoring you can do. for instance: if (cardValid == true){ // your code } is exactly the same as if (cardValid){ // your code } the if statement expects a statement that returns either true or false as argument. a boolean already does that on itself. … | |
Re: ehm ... are you asking for info regarding autism, or are you offering said information? | |
Re: it's telling you you need to add the driver for derby to your path. | |
Re: what is it you don't know how to do? adding the numbers up? calculating an average? | |
Re: try using the setPreferredSize method. | |
Re: and especially if it's the one implemented in NetBeans. the code is hard to read, and, unfortunately, very irritating to maintain/update without introducing regression bugs. This makes NetBeans Swing code a bad idea when you're talking about a: a professional project b: a UI that might ever need to be … | |
Re: honestly, I don't entirely understand what you are trying to do. but besides that: what is your actual question? | |
Re: most likely, you can add some filters to your settings. ![]() | |
Re: based on your description, this is a class covering the basics of the basics of the basics. I assume you are able to work a bit with paint shop pro, photoshop, or any of those. it's basically 'create, copy, paste' and you have your logo on your banners. since usually … | |
Re: help you with what exactly? seems to me you 've got it figured out. all that remains now is to write the actual java code. | |
| |
Re: keep an array of booleans, with the same indexes. if sum > 5 -> set to true. later on: if indexes[i] -> show columnNames[i] | |
Re: saying what the errors are might help us out a bit. personally, I wouldn't see them as enums, rather as different implementations of a shared interface. | |
Re: my advice: learn to use servlets before you try and add a database in the mix. your code 'll become unreadable otherwise. also: with what part are you having trouble? is there an error? are you just stuck somewhere on the logic? ... | |
Re: whether it is homework, just work, a promise to your mum or just some doodlin' about, trying to learn how to write code, you won't learn anything by copy pasting code we write. just try and write it, and if (or when) it would fail, post your code here, with … | |
Re: it all depends on your code and what layoutmanager you are using. | |
![]() | Re: ehm ... I'm not going to click outside links to check for your code. paste it here in code tags. ![]() |
Re: the value you 'expect'? what exactly do you think assertEquals is supposed to do? | |
Re: and why would you want that? | |
Re: ehm ... a JLabel you update. | |
Re: two points: you may be a bit more specific (about what it is you want and what it is you've tried so far) you may also consider posting this question in the [jsp forum](http://www.daniweb.com/web-development/jsp/24). | |
Re: that depends on how you want to develop, and usually the right choice for one project, isn't the right choice for another project. | |
Re: the System.out.print(ln) statements will, when received an object as parameter, call the toString method of that object. the result you see is what you get when the object you try to print's type hasn't provided an implementation of toString, but uses that of the Object class. just provide a toString … | |
Re: you mean to find all words that have only letters in your Scrabble letters? well, you can read your textfile in a collection. then write an algorithm that checks for each word, for how much of the letters you have, there is an occurence, for instance, "app" would give 3 … ![]() |
The End.