4,084 Posted Topics
Re: you're making this ... way too difficult. you need two nested for - loops, that's all. the outer one, is to make sure you have 5 lines (i < 5 ) the inner one, is to make sure you print the number of *'s you need in one line, and … | |
Re: do you mean opening a new JFrame when clicking on a button, for instance? that's just instantiating the new frame. | |
Re: you can do this by writing the code, not just copy pasting your assignment here. show us what you've got so far, why it isn't working (is it giving wrong input? is it getting an error message?...) and of course, if there is an error message, you may want to … | |
Re: I use JCreator (lightweight), Eclipse and/or SpringSource for web-applications and NetBeans for desktop applications and class libraries. now, for Swing, it doesn't really matter, as long as you learn it the right way: don't go right away relying on a Swing editor to generate the code for you: that code … | |
Re: most likely because you made an error in your style sheet, as JorgeM already suggested. | |
Re: a Wrapper class is a class that 'Wraps' a primitive datatype in a (sort-of) equivalent Object type. for instance: primitive int -> Wrapperclass Integer. each primitive type has a Wrapper class that allows the user to treat variables of primitive types (or at least, their Wrapped versions) as objects. where … | |
Re: [QUOTE=AlbertPi;739707]George, I got the same error as you had iy before. How did you solve this issue ? Can share your solution with us ? Thanks, Albert[/QUOTE] Albert, deer lad... this post is ancient, in dog-years, it would have to go to school already. playing wav files is supported by … | |
Re: the ide you use is irrelevant. this is very basic, using a few for loops, and some print statements. basic String concatenation and System.out.println statements. just show what you have got so far. | |
Re: worst advice ever. what I've seen in a first glimpse: * advising to use awt instead of Swing, * having your main method throwing exceptions, * providing no comments or other form of explanation of what's going on what-so-ever, * extending thread instead of using the Runnable interface, * personally … | |
Re: you don't need to use // and ** if you don't want to. how 'skilled' are you in Java? you need to start by going over your course notes again. the official java tutorials, which you can find [Here](http://docs.oracle.com/javase/tutorial/), can help you just as well. | |
Re: I ran that code here, runs just fine. it can be tons of reasons: maybe you didn't save the file, maybe you didn't re-compile, maybe you're running the wrong file, .. | |
Re: rahul pareek: are you sure it's start.bat? sure it's not 'startup.bat' and 'shutdown.bat'? with using a tomcat server, you could also add a xml file in the catalina > localhost folder, that provides information to where the classes and properties can be found, instead of copying your .war file in … | |
Re: why are you creating a new JFrame? there 's no need whatso ever to do so. just instantiate a new JTextField and add that to the current JFrame. | |
Re: jdk: http://askubuntu.com/questions/55848/how-do-i-install-oracle-java-jdk-7 eclipse: http://askubuntu.com/questions/26632/how-to-install-eclipse but surely, google could have helped you find that. | |
Re: when I run your code here, I get: Time in Seconds: 20000 5 hours, 33 minutes and 12 seconds have you saved and recompiled after you changed your code and ran it again? | |
Re: > You seem to have some internal conflict on whether you want to program or not. First you say "...persue my old dream, programming..." and then later you say "...I don't really like web development...". ehm .. ChrisHea ... am I right in believing you imply here, that all development … | |
Re: Nothing apparent running? you do know Windows alone uses over 1 Gig right? | |
Re: like to play music on your pc? write your own mp3-player don't create your gui's with an "look-I-can-write-code" editor like the one implemented in Netbeans, it'll stop you from actually learning how to write gui-code. use external lib's (writing your own code is important, being able to re-use existing code … | |
Re: http://docs.oracle.com/javase/7/docs/api/java/awt/event/MouseListener.html http://docs.oracle.com/javase/tutorial/uiswing/events/mouselistener.html | |
Re: which basically means, it does work. but you need to keep in mind that every type has it's limits. @Makarek: if one wants to use a double, it's doubtfull the value 100000000000000000 whil show up during the programming or running of the program | |
Re: what method is invoked several times? how can we answer this if we don't get to see the code where the method (might be/)is called? | |
Re: > Do nothing. Thanks something tells me you may want to rephrase some parts of your post above. * School contains 10 classrooms numbered 1 through 10 * classroom can contain any number of students up to 35 to me, that looks a bit like: /* First class */ class … | |
Re: what do you mean: numbers in a clock? | |
Re: num1 != will just check your num against a Single value, not against every possible number. can you show your entire code there and the exact error message? what exactly is Keyboard? is it a class? is it an instance of Scanner? | |
Re: the topics classes and methods are not related to two dimensional arrays, so whether or not you don't understand those yet, doesn't mean you shouldn't understand the others yet. remember, we don't know the order in which those topics are taught in your course. since you've been given that assignment, … | |
Re: is that what you have, or is that what you've been given? this sounds pretty much like an assignment to me. what actual questions do you have? | |
Re: when you remember dial up connections that made more noise than an illegal rave | |
Re: without seeing any code? doubt it. | |
Re: the type of format. do you want it in one single size? jpg might be enough. do you want it in several different sizes, yet just keep the one image? vector comes in handy. do you want the background of the image to be transparent? ... | |
Re: if you're trying to get your feet wet with Java, why do you stay on the side of the pool? jump in, write your code and don't be ashamed to use the proverbial floating device. we'll help you by making sure you don't drown during your efforts, but we won't … | |
Re: and there's your problem. you call a method that doesn't exist for that object. have your Node class implement the Comparable interface and override the necessary method (compareTo) and write the implementation you want for it. | |
![]() | Re: well ... creating a generator for puzzles is a possibility, but make no mistake, it'll be pretty hard. not only will you have to generate a correct sudoku puzzle, but you'll have to be able to figure out how to select some random values that will be used as pre-defined … |
Re: a few remarks: 1. a gui and an interface are not the same, you may want to choose your words a bit more clear 2. "it removes this info from the combobox just well but doesn't refresh the combobox in realtime" .... sooo .. it doesn't remove the item? can … | |
Re: without a doubt the most useless post I've seen here ... ever. | |
Re: well, it's nice to post a reply? post here, but I'm kind off missing some parts in your posts. what is it that you need done? what is it that you have done? what is it that you're struggling with? what textbook do you use, how are we supposed to … | |
![]() | Re: > My problem is that one of my methods doesn't seem to be working. define: doesn't seem to be working. is it not doing what you want/expect? is there an error message? > > I want it to be created wherever my sprite is standing. I have created a method … ![]() |
Re: System.out.println("Enter a number as a integer"); { } I'm also not sure what you are trying to do with those brackets, but it's best to remove them. they don't actually do anything, but make your code a little less readable, especially if you're just starting in Java. | |
Re: why do you think working with a boolean array is any different than working with an array of int's? (which you are already doing). so, either you know enough to work with one, or this is just some code you copied. | |
Re: because you are using an object you haven't instantiated (yet) | |
Re: also, NeiXude, Strings can't be "manipulated", they're immutable. make sure you explain correctly what you are doing. | |
Re: fpsasm: one of the reasons to use Vector, is because you don't know up front what the size will be, and the size can change. | |
Re: > Linux might get attacked if it is used by more n more people. > > As whatever i thought > Why hacker will hack a system which only few people use? > I think you can't say Linux is virus free until it will be used by more people. … | |
Re: not to mention you can start for yourself and "lend" your services to your clients. which, if you are good enough, and they are willing to pay for it, you develop code for them at home, and deliver it to them. | |
Re: well ... youtube combined with a title that contains 'extreme idiots' ... can't go wrong with that, now can you? how does that phrase go? "I'm not saying we should kill all dumb people, but we could consider removing all warning labels and let the problem solve itself." might have … | |
Re: I'm not sure that's even possible in Java. | |
Re: Kenth21V: that is exactly why you should start with notepad. Java ME (Micro Edition) is for development for mobile applications Java EE (Enterprise Edition) is probably what you're looking for. just go to the Oracle website and download the latest JDK (or one of the latest). you can learn how … | |
Re: String tblcol1 = textfield.getText();// table column String tblcol2 = textfield2.getText();// table column String tblcol3 = textfield.getText();// table column String table = "CREATE TABLE" + table + "(tblcol1, tblcol2,tblcol3)"; ow key, the above is really, really weird. you are using the value of table before it actually has a value. and … | |
Re: use a thread to update your seconds variable. | |
Re: also, using fixed sizes is (almost) never a good idea. you may want to make it more dynamical .search_box{ width:242px; IMHO, using dynamic values based on your screen size would be better here. (not just here, this is a mere example) |
The End.