4,084 Posted Topics

Member Avatar for shrutib
Member Avatar for ef_mag
Member Avatar for stultuske
0
13K
Member Avatar for riahc3

how about setting that image online somewhere. I'm pretty sure they'll be connected when they try to get to their emails.

Member Avatar for riahc3
0
162
Member Avatar for Shania_01

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.

Member Avatar for jwenting
0
346
Member Avatar for jithinjohny

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.

Member Avatar for jwenting
0
1K
Member Avatar for saucy6969

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

Member Avatar for saucy6969
0
246
Member Avatar for digrev01

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?

Member Avatar for stultuske
0
133
Member Avatar for game06

maybe as an example of applications that you did as hobby, but don't let it take a big part of your resume.

Member Avatar for <M/>
0
204
Member Avatar for milkman93

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.

Member Avatar for milkman93
0
2K
Member Avatar for imBaCodes

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.

Member Avatar for imBaCodes
2
63
Member Avatar for bananacat

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.

Member Avatar for bananacat
0
340
Member Avatar for darylglenng

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.

Member Avatar for deceptikon
0
435
Member Avatar for Nagarajan M

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.

Member Avatar for Nagarajan M
0
712
Member Avatar for alaa sam

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

Member Avatar for stultuske
0
134
Member Avatar for game06

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

Member Avatar for JamesCherrill
0
105
Member Avatar for saurabh.mehta.33234

try running the code a hundred times after each other, you'll see.

Member Avatar for stultuske
0
182
Member Avatar for SHAHAB UDDIN

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 …

Member Avatar for <M/>
-3
140
Member Avatar for azareth

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 …

Member Avatar for <M/>
0
246
Member Avatar for game06

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.

Member Avatar for JamesCherrill
0
300
Member Avatar for sayvari

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 …

Member Avatar for stultuske
0
818
Member Avatar for harinath_2007

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 …

Member Avatar for stultuske
0
2K
Member Avatar for Nandomo

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"));`

Member Avatar for stultuske
0
251
Member Avatar for asifalizaman

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 …

Member Avatar for mike_2000_17
-3
578
Member Avatar for Kiefchief

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 …

Member Avatar for stultuske
0
3K
Member Avatar for shotokanpoloto

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.

Member Avatar for stultuske
0
60
Member Avatar for Nandomo

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 …

Member Avatar for stultuske
0
234
Member Avatar for SHINICHI

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.

Member Avatar for JamesCherrill
0
242
Member Avatar for deadsolo

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. …

Member Avatar for bguild
0
185
Member Avatar for andra.durdun

I have .. no idea what you're trying to do here, can you be a bit more specific?

Member Avatar for stultuske
0
112
Member Avatar for Lindsey1211

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 …

Member Avatar for stultuske
0
283
Member Avatar for PreethiGowri
Member Avatar for mferarri

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 …

Member Avatar for mferarri
0
330
Member Avatar for karan.geh
Member Avatar for stultuske
0
127
Member Avatar for jrosh

why would you want to use a HashTable for that? seems like overkill to me.

Member Avatar for JamesCherrill
0
164
Member Avatar for game06

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 …

Member Avatar for jwenting
0
213
Member Avatar for bobit

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)

Member Avatar for stultuske
0
90
Member Avatar for Fuzzies

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.

Member Avatar for bguild
0
565
Member Avatar for london-G

[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.

Member Avatar for london-G
0
363
Member Avatar for shopnobhumi

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.

Member Avatar for stultuske
0
4K
Member Avatar for elhkei

don't just post your assignment here. post the code you have so far and the questions you have about difficulties you encounter.

Member Avatar for elhkei
-1
176
Member Avatar for paku_dnj

in Swing it'll be easy, but afaik Console doesn't have the functionality to deal with this

Member Avatar for ~s.o.s~
1
10K
Member Avatar for SHINICHI

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.

Member Avatar for JamesCherrill
0
269
Member Avatar for BoDuke1835

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.

Member Avatar for stultuske
0
193
Member Avatar for game06

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 …

Member Avatar for stultuske
0
289
Member Avatar for asifalizaman

if that are the only types of Java applications you know of, you have a lot yet to learn...

Member Avatar for stultuske
2
252
Member Avatar for ellosbibu

some way, I can't help but think that if you wrote this code, you wouldn't be having this question.

Member Avatar for JamesCherrill
0
189
Member Avatar for jemartalaban_1

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?

Member Avatar for jwenting
0
278
Member Avatar for Violet_82

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.

Member Avatar for Violet_82
0
7K
Member Avatar for cherry.basilio2
Member Avatar for stultuske
0
273
Member Avatar for ilove.lyka15

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 …

Member Avatar for jwenting
0
167

The End.