4,084 Posted Topics

Member Avatar for aabbccbryanmark

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 …

Member Avatar for stultuske
0
592
Member Avatar for gurusubramaniam

do you mean opening a new JFrame when clicking on a button, for instance? that's just instantiating the new frame.

Member Avatar for stultuske
0
137
Member Avatar for Matth963

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 …

Member Avatar for stultuske
0
113
Member Avatar for Goldfinch
Member Avatar for calomari

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 …

Member Avatar for stultuske
0
94
Member Avatar for <M/>

most likely because you made an error in your style sheet, as JorgeM already suggested.

Member Avatar for FaisalSarfraz
0
156
Member Avatar for krovi

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 …

Member Avatar for JamesCherrill
0
114
Member Avatar for George2

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

Member Avatar for stultuske
0
982
Member Avatar for dantheman4

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.

Member Avatar for NormR1
0
191
Member Avatar for calculuskatie

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 …

Member Avatar for stultuske
0
180
Member Avatar for Seswing142

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.

Member Avatar for Seswing142
0
352
Member Avatar for im abcd

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

Member Avatar for im abcd
0
255
Member Avatar for fularipk

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 …

Member Avatar for rotten69
0
2K
Member Avatar for sanilo

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.

Member Avatar for JamesCherrill
0
196
Member Avatar for ganges

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.

Member Avatar for stultuske
-1
73
Member Avatar for Lindsey1211

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?

Member Avatar for Lindsey1211
0
126
Member Avatar for tougheart

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

Member Avatar for chrishea
0
233
Member Avatar for asif49
Member Avatar for caperjack
0
175
Member Avatar for kenth21v

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 …

Member Avatar for ObSys
0
334
Member Avatar for AngelOfRock

http://docs.oracle.com/javase/7/docs/api/java/awt/event/MouseListener.html http://docs.oracle.com/javase/tutorial/uiswing/events/mouselistener.html

Member Avatar for JamesCherrill
0
813
Member Avatar for Dark_Omen

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

Member Avatar for JamesCherrill
0
483
Member Avatar for 47pirates

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?

Member Avatar for 47pirates
0
105
Member Avatar for admiralis

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

Member Avatar for admiralis
0
277
Member Avatar for eirene08
Member Avatar for andrewisthebomb

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?

Member Avatar for NormR1
0
1K
Member Avatar for ITshard

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

Member Avatar for stultuske
0
344
Member Avatar for jsco2289

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?

Member Avatar for NormR1
0
231
Member Avatar for GrimJack

when you remember dial up connections that made more noise than an illegal rave

Member Avatar for vinnitro
1
3K
Member Avatar for rajesh1158
Member Avatar for siyajoshi

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

Member Avatar for Smohil
0
93
Member Avatar for mikewyatt

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 …

Member Avatar for mikewyatt
0
230
Member Avatar for shanki himanshu

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.

Member Avatar for JamesCherrill
0
154
Member Avatar for wiliams.kikert

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 …

Member Avatar for Taywin
0
314
Member Avatar for ratatat

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 …

Member Avatar for JamesCherrill
0
184
Member Avatar for lbgladson
Member Avatar for MisterMustard

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 …

Member Avatar for Taywin
0
145
Member Avatar for champmanking

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

Member Avatar for champmanking
0
388
Member Avatar for erica86

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.

Member Avatar for stultuske
0
247
Member Avatar for Ashenvale

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.

Member Avatar for Bladtman242
0
155
Member Avatar for jemz
Member Avatar for jemz
0
749
Member Avatar for olive.ventura

also, NeiXude, Strings can't be "manipulated", they're immutable. make sure you explain correctly what you are doing.

Member Avatar for stultuske
0
133
Member Avatar for 47pirates

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.

Member Avatar for stultuske
0
389
Member Avatar for leokin

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

Member Avatar for sbesch
0
444
Member Avatar for jacob21

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.

Member Avatar for jordanfine
0
28
Member Avatar for Ancient Dragon

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 …

Member Avatar for vinnitro
1
150
Member Avatar for abhinashraju
Member Avatar for kenth21v

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 …

Member Avatar for kenth21v
0
236
Member Avatar for Andyjava

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 …

Member Avatar for Andyjava
0
754
Member Avatar for DrEinstein
Member Avatar for arctushar

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)

Member Avatar for rotten69
0
129

The End.