4,084 Posted Topics

Member Avatar for tygerberg

[QUOTE=tygerberg;347836]Hi i must do a programming project of my own choice. [/QUOTE] kind off says it all ... you're supposed to choose it yourself, so you can take a topic that you find interesting so you'll stay motivated. another reason is because they want to see whether or not you …

Member Avatar for jeanfrg
0
138
Member Avatar for kingsboro2008

make use of Java's features and create your own Objects (classes) for (for instance) your players, .. even if you're not familiar with the use of classes yet, you should write more methods, and minimize the lines of code you place in your main method. I see that your main …

Member Avatar for kingsboro2008
0
203
Member Avatar for jeanfrg

[QUOTE=jeanfrg;1192494]Hi I'm a java intermediate student, I have been studying java for two years. I just wanted to offer my help to those students that are currently struggling with java in general, or those who need help on an assignment. Lately I have been ahead of my class so I …

Member Avatar for jeanfrg
0
121
Member Avatar for vandersal

within a few pages, this code will become almost impossible to read/maintain. you could familiarize yourself with the use of servlets, and use those to perform all the tasks you want to be done. when reading further on the use of requests en responses, you'll figure out how to pass …

Member Avatar for peter_budo
0
1K
Member Avatar for zyaday

[QUOTE=zyaday;1185524]Following me everywhere? why do I get those exceptions very much??? why are they raised?? My classes are always in the same package as the class they accesses them.. I know they are there. Why doesn't the compiler find them???? thanks for your help ppl...please help :@[/QUOTE] don't know, you're …

Member Avatar for zyaday
0
94
Member Avatar for beginner233

[QUOTE=beginner233;1186457]There is a nicer way to say shit. [/QUOTE] yet you don't seem to use it. you'll be getting help if you're willing to put some effort in it yourself, not by just expecting us to do it for you. yes, our knowledge of and experience in Java programming exceeds …

Member Avatar for jwenting
-1
130
Member Avatar for KSUliz

seriously, you're not wasting bandwith by posting your exceptions on the forum instead of expecting us to open an attachement. very few of us actually will, you know

Member Avatar for KSUliz
0
136
Member Avatar for anjal_pawar

[QUOTE=eedriz utman;1184939]i need more explanation on it.[/QUOTE] no you don't. you gave all the explanation to find the answer in your first post: it's a PATTERN that you want to PRINT there are only very basic techniques used there, no doubt your teacher showed you those.

Member Avatar for javaAddict
0
247
Member Avatar for ben1
Member Avatar for ben1
0
145
Member Avatar for Ron2794

[QUOTE=Ron2794;1184899]Hey guys ........plz can you suggest me any project wic uses simple java and sql and may be connectivity between java and sql I am in 12th standard and want to make a good project related to above items......................[/QUOTE] a GOOD project with only SIMPLE java and sql? part of …

Member Avatar for stultuske
0
183
Member Avatar for ganesh5155

[QUOTE=Ezzaral;1184373]Haven't you learned anything from your previous posts asking others to do your work for you? Get to work and show some effort.[/QUOTE] Ezzaral (almost) said all there is to say, except for the correct answer to your question, which is: yes

Member Avatar for stultuske
0
257
Member Avatar for dorotalp91

by putting a loop in your code, which depends on the value of a boolean. the startvalue is 'true', since you want the code to run at least once. you just adjust the value of this boolean before you rerun the loop. you could do this like this: [Code=Java] import …

Member Avatar for stultuske
0
122
Member Avatar for jemz

you don't need special software to create jar files. you can use any archiving program to do so (winzip, winrar, 7-zip, ...) all you need to do is know how the structure of a .jar file is

Member Avatar for Ezzaral
0
77
Member Avatar for chrisb76

you've got quite a number of typo's in there. just the main things you should correct first: a variable name has to be unique, so you can not have several JTextFields with the name 'p' if you call your button 'exitButton', don't be surprised if the compiler does not know …

Member Avatar for stultuske
0
102
Member Avatar for snowball14
Re: Help

[QUOTE=snowball14;1180301]Can anyone tell me what I am doing wrong? I can't get it to calculate the charges.[/QUOTE] what you're doing wrong? you didn't paste your code in your post

Member Avatar for stultuske
0
112
Member Avatar for java=hard

[QUOTE=java=hard;1181608]I think it might be too late. The assignment is due in about 30 minutes.[/QUOTE] wow ... talking about efficiënt time management :|

Member Avatar for stultuske
0
161
Member Avatar for herat_000

[QUOTE=herat_000;1178886]It results in an error ….[/QUOTE] could you be just a tad more specific about this part? what error is thrown, what error message do you get, where is it thrown, ...

Member Avatar for masijade
-1
125
Member Avatar for kolibrizas
Member Avatar for KSUliz

take a closer look at your main method, I've pointed out the things to correct below: [QUOTE=KSUliz;1179187] [Code=Java] //main method executes at run time public static void main(String args[]) { //method to add new text to the JTextPane { // REMOVE THIS BRACKET Document doc = textPane.getDocument(); try { //clear …

Member Avatar for stultuske
0
643
Member Avatar for kesh1000

read all the data, change what you want to change, and write it (not appending) to the file

Member Avatar for stultuske
0
127
Member Avatar for drbrown3

I'll give you a couple of hints, that caught my eye without really deep-reading the code: [Code=Java] .. gradesL = new JLabel("Enter your grades: ",SwingConstants.RIGHT); .. grade1TF = new JTextField(5); .. calculateB = new JButton("Calculate"); [/Code] change the above code (and everything like it) to [Code=Java] JLabel gradesL = new …

Member Avatar for masijade
0
462
Member Avatar for marcel25

what have you tried so far, what does it do, what is it supposed to do? looks to me like your teacher gave you that code and said: 'put an undo and hint option into the following code'

Member Avatar for BestJewSinceJC
0
93
Member Avatar for jemz

tried [URL="http://www.lmgtfy.com/?q=set+max+length+of+input+in+jtextfield"]this[/URL] yet?

Member Avatar for BestJewSinceJC
0
56
Member Avatar for sabah_786

[QUOTE=sabah_786;1179840] 1) For Button 1 - Check Balance, I want to firstly bar out the pin number so it doesn't show. How do I do this? [/QUOTE] you could make your own input screens, instead of the JOptionPane standards, and use a JPasswordField instead of a JTextField [QUOTE=sabah_786;1179840] How can …

Member Avatar for sabah_786
0
278
Member Avatar for hsncvs

best start, though: grab your course books, and study them a bit. no professor will ask you to write a gui if you don't understand enough of the java basics to actually use it. your first step should be, try to write it yourself. if it doesn't work, show us …

Member Avatar for stultuske
0
103
Member Avatar for harika.jo

[QUOTE=Krstevski;1179211]Or [CODE=java] ... [/CODE] But this code is not tested.[/QUOTE] don't just hand out code. the purpose of this forum is to help him learn the language, not to do his work for him and help him cheat his way through college

Member Avatar for stultuske
0
99
Member Avatar for BEBELINDO

[QUOTE=BEBELINDO;1178560]Hi i need an event handler method to let an user use the 4 arrow keys (up,down,left,right) from a keyboard input ... and also the letters "Y" for yes and "N" for no on the keyboard. [/QUOTE] ow key ... you need an event handler ... and your question is? …

Member Avatar for stultuske
0
126
Member Avatar for OzY360

[QUOTE=OzY360;1179216]Hi, I am getting a rather odd error message when I try compile a java program. I have attached the original java code and a copy of the error message in a .txt file. Any help you guys can offer will be much appreciated.[/QUOTE] I'll help you by offering some …

Member Avatar for OzY360
0
135
Member Avatar for SCoder1
Member Avatar for rpineres

[Code=Java] String input = jTextField1.getText(); [/Code] you can pass this input variable on as a parameter, and you can store it for later usage. what exactly is your problem?

Member Avatar for stultuske
0
123
Member Avatar for BobbieJean

you'll need to put a loop (for or while) in your code. a switch on it's own will not repeat itself for the other problem .. if you enter a number, it's either > 0, or <= 5 for instance: 17 is invalid, but still: 17 > 0 -2 is …

Member Avatar for BobbieJean
0
102
Member Avatar for kelvinyap828

you don't want to 'loop a question', otherwise, you'ld get the same question over and over. what you want, is to loop over a series of questions. just use the next basic logic: [Code=Java] String questions[] = new String[5]; // I assume you'll fill this in yourself for ( int …

Member Avatar for stultuske
0
128
Member Avatar for purijatin

[QUOTE=purijatin;1165406]but then i did some changes in bin folder[/QUOTE] what did you change in there, and what for?

Member Avatar for peter_budo
0
298
Member Avatar for kumar.razat

you might want to check [URL="http://www.lmgtfy.com/?q=java+connect+to+derby"]this[/URL]

Member Avatar for stultuske
0
37
Member Avatar for sneaky667

1. don't hide the screen 2. if you do want to hide the screen, you can always pas the data as a parameter 3. TURN OFF CAPS LOCK

Member Avatar for stultuske
0
39
Member Avatar for vampshay

firstly, use Code tags, make your post readable. secondly: what exactly do you mean, output your JButton in a JTextField?? describe what you want it to do and what it is(n't) doing

Member Avatar for stultuske
0
75
Member Avatar for osman_sonic

just take into consideration what you've seen in your courses, and decide how to put that into an distributed application. off course, putting in stuff your teacher didn't show you 'll get you good points as well

Member Avatar for osman_sonic
0
259
Member Avatar for xhollowpointx

also, you'll need to learn where to put your code .. that if structure should be within the main method

Member Avatar for stultuske
0
282
Member Avatar for Aisha25

[QUOTE=kawalya;1156811] In case you still have not solved your problem, [/QUOTE] when the thread-starter says: [Quote=Aisha25] thanks i fixed it [/Quote] it usually means: it's solved

Member Avatar for kvass
-1
816
Member Avatar for neovo-88

you don't actually use the values you decide within the switch, so how exactly do you expect them to change the outcome?

Member Avatar for neovo-88
0
169
Member Avatar for blazinhieu

[QUOTE=blazinhieu;1156786]my teacher didn't teach me that yet[/QUOTE] I'm quite sure you don't need your teachers help to find your way to Google or your course notes (if you have any) if you find Scanner to dificult, ain't nobody saying you can't use the JOptionPane class. you'll have an input screen …

Member Avatar for stultuske
0
108
Member Avatar for JavaNewbieEK

[QUOTE=JavaNewbieEK;1156621]To test the functionality of the rest of the program, I just have a single user name and password hard-coded in. It can not authenticate multiples. How the valid pairs should be saved is what I am wondering. 2 basic arrays, a 2-D array, linked list?[/QUOTE] imho the best way …

Member Avatar for javaAddict
0
168
Member Avatar for noumanayub

analyse make a model program it test it improve it (repeat last two steps if necessary) hand it in

Member Avatar for stultuske
0
49
Member Avatar for pfuturama

[QUOTE=balajimarisetti;1150641]You used swing classes. So the code should be on the EDT(Event Dispath Thread). Try writing your code like this e.g [CODE] public static void main(String[] args){ EventQueue.invokeLater(new Runnable(){ public void run(){ // Write the Swing code here //you wrote it in the main thread itself } }); } [/CODE][/QUOTE] …

Member Avatar for stultuske
0
106
Member Avatar for yasir iqbal

[QUOTE=yasir iqbal;1156404]How to use delay function in turtle class in java,oop when drawing an object[/QUOTE] we don't know the 'turtle class', let alone whether or not it has a method to delay it. just try and look for info on the 'sleep(int i)' method, might help you out

Member Avatar for stultuske
0
31
Member Avatar for JavaNewbieEK

that might be because of the order in which you added the fields. since you're working with login and password, you might want to use: 1 JTextField 1 JPasswordField instead of two JTextFields

Member Avatar for stultuske
0
191
Member Avatar for ksaihat

[QUOTE=ksaihat;1155298]Hi kvass ammmm can you explaine it with the code[/QUOTE] Jwenting allready did that ... just google 'fibonnaci' and program it. don't just assume making your assignments is the biggest thrill or honour we're hoping to achieve here

Member Avatar for kvass
0
129
Member Avatar for Alex_
Member Avatar for Alex_
0
2K
Member Avatar for jtodd

looks great, but next time: try and post your error-messages. since the Random class does not have a nextInt method that takes an array of integers as parameter, I guess you must've had some. you may want to check this thread, though [URL="http://www.daniweb.com/forums/thread150711.html"]previous thread[/URL]

Member Avatar for jtodd
0
128
Member Avatar for msr
Member Avatar for BestJewSinceJC
0
76

The End.