4,084 Posted Topics
Re: no doubt there are ways that you can implement a google search in your application. tried that? | |
Re: giving an answer implies that a question was asked .... next to what tux said, this seems like a bit of a school assignment. so far, you haven't even shown that you know how to create a class or write a method. that is the very (very) least you should … | |
Re: well ... this has pretty much ... nothing to do with java ... do you have any experience in programming? and what do you mean "would not open completely in the computer"?? since you are posting this in the java forum, are you considering writing it in java? the basics … | |
Re: but don't forget, by implementing interfaces you don't really inherit anything, so Java doesn't allow multiple (interface) inheritance through interfaces, it simply allows you to simulate multiple inheritance. | |
Re: for a JButton, attaching a simple ActionListener would help you out a lot. | |
Re: a question which has ... what exactly to do with the original question? might want to try google. [Find IP using javascript](http://stackoverflow.com/questions/391979/get-client-ip-using-just-javascript) | |
Re: there's another mighty fine search function as well... it's called google. this is not programmers-for-hire, nor a "gimmeh tha codezzz" forum. please read (and respect) the community rules. | |
Re: aggreed. if you are just using html, then you have to hardcode the links to your images in the pages, very easy, but useless if you want users to be able to upload their own albums/images. php is an option indeed, another way to go is jsp/jsp with servlets, ajax, … | |
Re: not to mention that if you are only doing "noob stuff", using an IDE is the worst thing to do. you had better start of with notepad and the command prompt, in order to learn what the IDE is doing "behind your back". it's also best to learn to write … | |
Re: coffee, a city, an island, a programming language, ... the answers to your question are legio. if you mean you want to get to know the programming language, [this thread](http://www.daniweb.com/software-development/java/threads/99132/starting-java-java-tutorials-resources-faq) and [these tutorials](http://docs.oracle.com/javase/tutorial/) are a good place to start. | |
Re: especially when starting new, you shouldn't use an IDE. first learn the basics (the what, how, syntax of the language, ... ) and only then start exploring with an IDE. a lot of people that just start with IDE's tend to forget to learn about the stuff that the IDE … ![]() | |
Re: have you tried: <center> <input class="bar curved5" name="user" type="text" id="user" maxlength="16" value="" onFocus="change(1)" class="validate[required,custom[noSpecialCharacters],length[5,16]]" /> </center> ? | |
Re: and ... why do you use checkboxes for that? I think you are looking for grouped radiobuttons. ![]() | |
Re: jalpesh: yes, off course you can use scriptlets, but that's about the worst you can do. it's way better to learn how to work with servlets. | |
Re: well ... as for difference between "gui" and "code level" ... you do realize you 'build' your gui by writing code heh? :) the best thing for you at this point is to learn to work with the api's, whose main page you can find [here](http://docs.oracle.com/javase/7/docs/api/). For all the classes … | |
Re: it doesn't need extra formatting. read every line as a String, and use the split method to extract an array of Strings for each line. as long as you know what each element should (be able to) do, and is .. | |
Re: and, if you answered this seven years ago, it might even have mattered to the original poster. | |
Re: and, do you have something already? neither reading from a .txt file, or writing to excell is brain surgery. what have you got so far? | |
Re: nextElement(ZipFile.java:322) check that line: Zipfile.java, line 322, which is in the method nextElement. it looks like a message variable you're using there isn't instantiated yet. | |
Re: you forgot to mention what you're having trouble with. what is your actual question, and I don't mean: re-post your assignment. | |
Re: operationsPrioriteToDoListModel = dyndefn.getOperationList(); most likely because you didn't instantiate dyndefn, but that's impossible to say based on the code you show. | |
Re: depends. which one are you interested in? I assume OCPJP? check Pearson Vue, but I assume you can find all the information you need on the Oracle website. | |
Re: Radhakrishna: why should that class implement ActionListener? the way he does it works just as well. | |
Re: what do you mean "in netbeans only"? you mean using the gui builder? in that case, I would advice against it. it'll generate crappy code that's near to impossible to maintain (in a good way). what ide you use is irrelevant. use the setVisible method. | |
Re: probably, just not here.if you read the community rules, you'll understand why. | |
Re: how javascript relates to java: not at all. maybe the same way a bycicle relates to a Boeing 747: they're both transportvehicles, or, in our case, they're both languages you can write code in: javascript, as the name itself says, is a scripting language, while java is a programming language. … | |
Re: ... come again? you may want to ask a bit more specific questions. | |
Re: just seeing the code of that listener tells us nothing. | |
Re: No 4 also depends whether or not there is a super class which contains an implementation for a method with that name. No 17. True, if (and only if) we are talking about SIMULATING multiple inheritance, since you're not actually inherriting anything. | |
Re: add print statements: System.out.print("my output"); System.out.println("my output and next line"); | |
Re: that makes no sense. either it has a fixed length (the int you pass) or it might be cut off. | |
Re: on which line do you get that error message? you are using classes and methods we can't know, so how do you want us to validate the above code? | |
Re: pass the information as parameters, either to the constructor, or to a method. | |
Re: if it is another question, about another topic, it is best to start a new thread. but shortly, there is no loop in the above code (which isn't even complete) so how can we check what might be causing the infinite loop? | |
Re: Hollywood doesn't make movies to inspire people, they make movies to earn (lots of) money. | |
Re: for questions about UUID you should check [here](http://docs.oracle.com/javase/7/docs/api/java/util/UUID.html) also: if you want it to be 100% ... hard to do, especially without some additional coding from your part. as you probably know, there are collections that don't accept doubles, so try storing all the so-far existing keys in one of … | |
Re: I hate it to tell you, but that wasn't per se the problem. the problem was that your value in the JTextField t1 wasn't filled in. at this point, if you forget to put a (valid) value there, being a numeric value (no decimals) and not bigger (or smaller) than … | |
Re: well ... a month is quite some time. the options are (almost) unlimited. start a small project on your own, learn a new technologie/framework/ basics of another language, get certified, go out and have one hell of a party (it's much more fun being hungover if you don't have to … | |
Re: hello Ritz ... welcome to DaniWeb, but you might want to take a couple of seconds reading the rules of this forum: just the heads-up on a few major ones: 1. 'as soon as possible' as you put it ... do remember, it's not urgent to us. 2. do not … | |
Re: start living more healthy, and you might be able to see 01/01/2101 :D | |
Re: if you want to use netbeans, I doubt you'll "write" it, rather generate the code. (bad way to learn how to code, btw) to quote the page you are linking to: > Select Windows > Palette to open the Palette if you don't see it. You use the Palette to … | |
Re: also: before making the choice to use StringTokenizer, read this line 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 String or … | |
Re: well .... I'm going back in time now.... you'll know if I've succeeded if Tuesday comes after Monday, and Romney didn't win the elections. wish me luck ;) | |
Re: the most used way (in code that I've seen so far) is a bit different. also, I would keep the instance as a private variable. public class MySingleton{ private static MySingleton instance = null; private MySingleton(){ } public static MySingleton getInstance(){ if ( instance == null ) instance = new … | |
Re: [The apache poi](http://poi.apache.org/) project is also worth looking at. | |
Re: what errors do you get? when do you get them? is the error that occur an actual error, or unexpected behaviour. | |
Re: looks like it can't find the .jar files you have added to the classpath of your project. when jarred, it still needs to find those classes in order to use them. | |
Re: what is the error message? EDIT: if this is your first Java code, you're going at it wrong. you're trying to write Swing code, why you should start off with the basics. | |
Re: you're looking at the whole too limited. one class on itself is ... nothing. it's like you want to ask someone in what kind of home he prefers to live, and you ask him to choose one single brick. you should consider the complete. so, in this form, rather a … |
The End.