4,084 Posted Topics
| |
Re: then don't use the 'getNumericCellValue()' method. there's bound to be an alternative. | |
Re: how about setting that image online somewhere. I'm pretty sure they'll be connected when they try to get to their emails. | |
Re: looks to me like you don't have the appropriate driver in your path. you'll need to add the .jar file containing these driver(s) to your project or your classpath. | |
Re: there is no 'better', they both have their pro's and con's, but in the end, the IDE is just as good as the developer using it. | |
Re: well, they do show up here. maybe you're still using an old version of IE. only thing I noticed is that the backgroundimage is loaded pretty slowly | |
Re: what do you mean: the control? is the value of jTextField1 'the control'? are you sure you are passing through the right if or else block? | |
Re: maybe as an example of applications that you did as hobby, but don't let it take a big part of your resume. | |
Re: but these are only for static variables, hence the term 'static' block. for instance variables, why not using the constructor of the class? in the end, you'll need a main method to start your application, doesn't mean all your logic needs to be in there. | |
Re: by using a decent debugging tool. but, the best way to avoid many of debugging is to pay attention when you are writing the original code. | |
Re: well, as far as I can see, you never linked the 'editablePane' to which you add all your components, to the actual JFrame. my guess, it's something like that you've forgotten. | |
Re: you're making it way too difficult. check: [this](http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html#toBinaryString(int)), [this](http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html#toHexString(int)) and [this](http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html#toOctalString(int)), for instance. | |
Re: what are you working in? Java, or JavaScript? anyway, [this](http://docs.oracle.com/javase/tutorial/uiswing/components/applet.html#plugin) might help you out a bit. | |
Re: whether it'll be 'protable' ... doubtfull, depends on how you define 'to prot', portable on the other hand, most likely, yes. as for which librarie(s) to use, my homie Google suggested me this: http://stackoverflow.com/questions/3962332/java-and-c-sharp-libraries-for-wi-fi | |
Re: what do you mean: "I want to run this code random"? google Java 'roll dice', that 'll give you tons of examples where there's a random number generator for the numbers 1 - 6 | |
Re: try running the code a hundred times after each other, you'll see. | |
Re: java doesn't help, you'll still have to write the code yourself. there are, however, several techniques and frameworks that can help you out. jsp, jsf & servlets GWT ... off course using Spring and Hibernate can help you out as well, depending on what you want to do, and how … | |
Re: well indented, well documented and following decent naming conventions. either the official ones, or conventions on which was decided in-house, and that are used throughout the entire code. thinking "this doesn't need comments, because it is easy to understand" is abou the worst excuse not to put in that little … | |
Re: you are trying to use the value of variable current_node in your main method, but it has no value. you'll have to provide one, or it won't work. | |
Re: austinluthers and lovelopez: did any of you notice that you are replying on a thread that is over nine years old? I might be mistaken, but seeing that the last time the OP was active on this forum was 8 years ago, I doubt (s)he's still looking for an answer … | |
Re: use jsp combined with servlets. jsp is meant solely for the GUI, not for bussiness logic. ehm, you'll need to write the code that contacts your db. but why access? you're better of with a decent DB. try MySql, it's free and a lot more reliable. especially if you try … | |
Re: thegaulking: if you want to provide 'corrected code', at least make sure you provide 'correct code', which ... you don't. `while(input != "N");` very, very bad indeed. this should actually be: `while ( !input.equals("N"));` or `while ( !input.equalsIgnoreCase("N"));` | |
Re: next to JamesCherrill 's points : you never told us to learn Java. been using Java for over a decade, don't remember you being a part of the decision in that time. there are tons of good books out there. what is the "best" book for one person, might not … | |
Re: the code you have 'll do that just fine, but you need to look up a bit more about scopes of loops and if statements. for instance: if ( isValid()) System.out.println("it is valid"); System.out.println("it is valid 2"); is not the same as: if ( isValid()){ System.out.println("it is valid"); System.out.println("it is … | |
Re: isn't there an import option? why don't you just create a dummy project in jcreator, check how and where it is stored, and copy those files in the same way. if you are missing something, however, won't really work. | |
Re: did you already solve the question, or was that an error on your part? anyway, doing this: `catch (IOException error){}` is always a good way not to find out what's going wrong in your application. if it's not working yet, have you tried by using a thread? let the sound … | |
Re: post the code here, I'm not going to log in in another platform to view it. also be more clear in what exactly the problem is, that isn't really clear from your post. | |
Re: deadsolo: what bguild is trying to tell you is that you should only use == to compare the values of primitives. if you are trying to compare the values of Objects, you should use the equals method. this is one of the very founding stones of the whole OO concept. … | |
Re: I have .. no idea what you're trying to do here, can you be a bit more specific? | |
Re: it can't find the default constructor for Customer, because there isn't one. you'll need to pass a String as parameter. public CustomerDatabase() { database = new ArrayList<Customer>(); c = new Customer(); } here, you try to instantiate a Customer object without passing a String as a parameter. in your other … | |
Re: have you tried printing the stacktrace for more information? | |
Re: in most cases, both are used. to give a little rl example ... you buy a car, after a while you get bored of the color and have it painted, so: Car myCar = new Car("BMW", 4, Color.Blue); // type, nr of doors, color -> initial values, the way you … | |
Re: you have return statements in a method with returntype void, which means it doesn't return anything. | |
Re: why would you want to use a HashTable for that? seems like overkill to me. | |
Re: even though naming conventions aren't just some "irrelevant annoying thinggy", loads of us out there 'll be very pleased if you didn't bother to follow naming conventions, but do always gave your variables logical names. believe you me, `boolean thread_still_running;` even though not following the naming convention, 'll be accepted … | |
Re: you haven't finished question 29 neither. what exactly is it you are having trouble with? just check the api's of those classes and look at which actions (methods) you can perform on them. the rest can be easily googled. [JTextField](http://docs.oracle.com/javase/7/docs/api/javax/swing/JTextField.html) [Use Gridlayout](http://docs.oracle.com/javase/tutorial/uiswing/layout/grid.html) | |
Re: it might be better still to start at the basics. if you'd known all data types you would realize that a char (or the Character wrapper class) is a lot more appropriate for your gender then a String. | |
Re: [this](http://stackoverflow.com/questions/11943948/error-unable-to-access-jar-file) might be part of it. also: did you set your environment settings in your OS correctly? if you haven't even if you have a valid jar, clicking on it won't make it start. | |
Re: asraju: after two years, I doubt this was still an issue. also, it's nonsense anyway. decently designed and written jsp files don't contain Java code to begin with. | |
Re: don't just post your assignment here. post the code you have so far and the questions you have about difficulties you encounter. | |
Re: in Swing it'll be easy, but afaik Console doesn't have the functionality to deal with this | |
Re: the viewpoint of the patient? when thinking about an application, there's no such thing as a "patient", there are just 'users'. do you know what a class diagram is? you need to create a list of your classes, their relationships to one another and their members. | |
Re: brilliant. did either of you look at the code? there are two problems in his/her code: 1. the operator should be >=, not = > but, and here's the kicker: 2. you don't have a variable called BMI. so, either rename your variable, or rename the variable you test on. | |
Re: also: x and y are ints (primitives, not wrapper objects), they're not two dimensional arrays of Integer objects, which is what you try to store in your arraylist. `ArrayList<Integer[][]> aa= new ArrayList();` this will not compile. if you apply generics to the left side, you must also apply it on … | |
Re: if that are the only types of Java applications you know of, you have a lot yet to learn... | |
Re: some way, I can't help but think that if you wrote this code, you wouldn't be having this question. | |
Re: you have no experience in Java, yet you are required to write your GUI in it? seems weird. anyway, what exactly is it you're trying to do? learn Java, or create a GUI very quick, without bothering to learn Java itself? also: what type of GUI? desktop app? web app? | |
Re: ehm ... you wont' be able to use a class? how exactly do you mean that? for a simple application you could also create two arrays, one with the seats for business, and one with economic class. | |
Re: another side-point: the IDE you use is not relevant. | |
Re: merge the code, write a "switchboard", so that the user gets to choose which functionality to run, ... if you want a better explanation, you may want to be more specific. are you talking about merging the functionalities of ten applications into one application, or do you just want to … |
The End.