2,777 Posted Topics

Member Avatar for nickmi

[QUOTE]All i want is when a string is selected to redirect me to another Gui.[/QUOTE] You could test what is returned by the showInputDialog method to select the other GUI.

Member Avatar for mKorbel
0
153
Member Avatar for vaironl

[QUOTE]everything works fine except printing the variable I get from the file.[/QUOTE] What happens then? Can you copy and paste here the console when you run the program? Add comments describing the problem and show what the output should be. To copy the contents of the command prompt window: Click …

Member Avatar for vaironl
0
3K
Member Avatar for msPriesterM

There are always the Tutorials: [url]http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/[/url] and the language specs: [url]http://jls3.ru/j3TOC.html[/url] and [url]http://download.oracle.com/javase/tutorial/java/TOC.html[/url] and always [url]http://download.oracle.com/javase/tutorial/reallybigindex.html[/url]

Member Avatar for NormR1
0
150
Member Avatar for isebas

[QUOTE]sum of all numbers between 1 and 100 that 7 and 5 go into evenly[/QUOTE] Which part of the problem are you having trouble with? choosing the numbers. Can you manually compute the first few numbers? summing the selected numbers. Can you add the selected number to the previous sum? …

Member Avatar for hfx642
0
184
Member Avatar for TigerTeck
Member Avatar for TigerTeck

See thread [url]http://www.daniweb.com/software-development/java/threads/384080/1654113#post1654113[/url]

Member Avatar for NormR1
0
353
Member Avatar for xcrunner23

[QUOTE]i am having trouble with is getting "xdy" to appear[/QUOTE] Hard to recommend changes to your code if there is no code to be changed.

Member Avatar for NormR1
0
461
Member Avatar for ninjaConfused

Please edit your post and wrap your code in code tags. Use the [CODE] icon about the input box.

Member Avatar for NormR1
0
282
Member Avatar for wangfz
Member Avatar for wangfz
0
116
Member Avatar for zachf632

Try copying the image file to all the possible places that your getResource could refer to until the image is found. Then remove them one by one until it is not found. The last removal will be where the code is looking. Or separate the code that gets the URL …

Member Avatar for NormR1
0
93
Member Avatar for blondielox

You need to try debugging your code by adding some printlns to it to show how the values of variables are changed and how the execution flow goes.

Member Avatar for NormR1
0
119
Member Avatar for omeralper

Start your own thread if you have problems. Don't hijack someone else's very dead thread.

Member Avatar for hfx642
0
355
Member Avatar for alony
Member Avatar for suslady

Can you compile the program and get a compilation error? Don't try to execute it. Which line is line 4?

Member Avatar for suslady
0
286
Member Avatar for carmzy

[QUOTE] how to count my username and password[/QUOTE] Sorry, I can not understand what you are trying to do. Can you explain it again perhaps in a different way? Are you trying to read in 5 usernames and 5 passwords and save them in an array?

Member Avatar for NormR1
0
102
Member Avatar for PearlLV88

Please explain what the problem is. Show the program's output and explain what is wrong with it and show what you want the output to be.

Member Avatar for NormR1
0
172
Member Avatar for ilovejava

Look at the terms in the equation. Are there any repeating or stepped values that you can use in a loop? Write a list of half a dozen terms with one term per line. Look for a pattern

Member Avatar for NormR1
0
1K
Member Avatar for lse123
Member Avatar for Feriscool
Member Avatar for sha11e

[QUOTE]If I need a string or an int from the user, how can I make sure that that is what they inputted? [/QUOTE] Read it as a String and then use the Integer parseInt() method inside of a try/catch block to validate it. Or scan it character by character and …

Member Avatar for NormR1
0
305
Member Avatar for sathya88

What is the problem you are having with the large files? Does the server dislike receiving too much data?

Member Avatar for NormR1
0
8K
Member Avatar for nikelin

Do you have a tool that will load a resource(say an image) from a jar file that contains code that is being loaded by a custom class loader. The jar file is NOT on the class path.

Member Avatar for JamesCherrill
0
409
Member Avatar for hszforu
Member Avatar for hszforu
0
812
Member Avatar for kevvek
Member Avatar for NormR1
0
215
Member Avatar for Feriscool

[QUOTE]This is giving me a nullpointerexception:[/QUOTE] What statement does it happen on?

Member Avatar for JamesCherrill
0
153
Member Avatar for lynnb86

[QUOTE]it keeps saying no suitable constructor found[/QUOTE] Please post the FULL text of the error message.

Member Avatar for lynnb86
0
159
Member Avatar for Judas3213
Member Avatar for glamourhits

For printing you could use the same looping as you did for reading in the values of the array. What is the algorithm for the inverse() method? Can you write a mapping for the 9 elements in the input array to the 9 elements to the output array? For example: …

Member Avatar for Ezzaral
-1
2K
Member Avatar for simply2smart

[QUOTE]carriage return does not work properly[/QUOTE] Can you describe the proper working of a carriage return. What happens depends on what software is reading and outputing the text from the file. With some printers, the carriage return will move the print position to the beginning of the current line, not …

Member Avatar for javaAddict
0
200
Member Avatar for srinidelite

The error message is for a statement at line 16, but the code you posted only has 15 lines. Where are lines 16 through 180 in the snake class? When you copied and pasted the code you did NOT separate the classes into separate files.

Member Avatar for srinidelite
0
196
Member Avatar for javaNooblet

[QUOTE] I just get errors[/QUOTE] If you copy and paste the error messages here someone can help you. [QUOTE]How would I be able to make an input in the "Inch" Textfield,[/QUOTE] Are you talking about the program changing the text field or about the user doing it? The text field …

Member Avatar for NormR1
0
4K
Member Avatar for magnetic rifle
Member Avatar for Taywin
0
167
Member Avatar for hopstank

[QUOTE]the inner function is some how jammed.[/QUOTE] Can you explain the problem? Do you get errors? If so please copy and paste them here. Is the output incorrect? If so, please copy and paste it here and show what it should be. [QUOTE] i don't know whats wrong with my …

Member Avatar for NormR1
0
190
Member Avatar for Syrne

Are you sure what is happening? Debug the code by Adding some printlns to show where the execution flow is going. Print out the value of the variables that are used as control.

Member Avatar for Syrne
0
154
Member Avatar for elkowalski

Are there any error messages in the browser's java console? You need to add printStackTrace calls to ALL your catch blocks. You have some empty ones that would not report errors.

Member Avatar for elkowalski
0
532
Member Avatar for crazins
Member Avatar for gunjannigam

Add some printlns to the code to see where it is spending its time. Print out the value of System.currentTimeMillis at each print What does createImageBuffer do? That code appears to be called on the starting thread.

Member Avatar for mKorbel
0
862
Member Avatar for sirlink99

[QUOTE]I try to send a message from my socket to my server I get an error[/QUOTE] Can you post the full text of the error message?

Member Avatar for NormR1
0
315
Member Avatar for Whilliam

What is the purpose of this code? It won't work as posted because of static/non-static problems. There is no this in the open method.

Member Avatar for Whilliam
0
114
Member Avatar for Curt1337

Is this thread the same as the other one? One should be enough. You'll probably get faster results if you hire a programmer. This forum is mostly for helping students learn java programming.

Member Avatar for Ezzaral
-2
392
Member Avatar for misspuja

[QUOTE]i need the help[/QUOTE] Please show what you have so far and ask questions about your problems.

Member Avatar for NormR1
0
166
Member Avatar for skimmpy

Have you read the tutorial about threading and the API doc about the Thread class? Do you know why you would want to use threads?

Member Avatar for NormR1
0
105
Member Avatar for stevanity

I imagine there is a c library function that will allow you to execute an OS command line. Have you asked on a c forum?

Member Avatar for stevanity
0
220
Member Avatar for Prisms

[QUOTE] how do you save the numbers to the letter grades[/QUOTE] You could use a Map. The key is the letter and its value is the numeric value

Member Avatar for JamesCherrill
0
192
Member Avatar for Syrne

[QUOTE] It tells me "non-static variable cannot be accessed from a static context."[/QUOTE] If you moved all your code to the object's constructor, this problem would go away. Class variables that are non-static can not be reference from a static method without there being an object of the class to …

Member Avatar for Syrne
0
167
Member Avatar for rezial
Member Avatar for NormR1
0
261
Member Avatar for chiiqui

The Object class's default toString returns the name of the class, @ and the hashcode which looks like a hex address. You should override the toString method with your own code that provides the contents of the object in an easy to read format. For further experimenting, change what your …

Member Avatar for stevanity
0
187
Member Avatar for Knoxx

[QUOTE]setting the mines on my grid. I have used a random generator to set the positions but i dont know how to implement it on my grid.[/QUOTE] Here's a way: Get a random x and a random y for the position.

Member Avatar for NormR1
0
183
Member Avatar for jorizh09

Does the combobox class have a method that will disable/enable it? Can you call that method in a listener added to the radiobutton?

Member Avatar for NormR1
0
134
Member Avatar for nyemba

Ok, what are your questions about your assignment? Do you have any code yet that has errors? Please copy and paste the full text of the error messages here.

Member Avatar for NormR1
-1
56

The End.