2,777 Posted Topics
Re: [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. | |
Re: [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 … | |
Re: 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] | |
Re: [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? … ![]() | |
Re: [QUOTE]A lot of errors.[/QUOTE] You forgot to post your errors. | |
Re: See thread [url]http://www.daniweb.com/software-development/java/threads/384080/1654113#post1654113[/url] | |
Re: [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. | |
Re: Please edit your post and wrap your code in code tags. Use the [CODE] icon about the input box. | |
Re: [QUOTE]Please help me with this code[/QUOTE] You forgot to post your code. | |
Re: 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 … | |
Re: 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. | |
Re: Start your own thread if you have problems. Don't hijack someone else's very dead thread. ![]() | |
Re: Check that your {}s are paired correctly. ![]() | |
Re: Can you compile the program and get a compilation error? Don't try to execute it. Which line is line 4? | |
Re: [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? | |
Re: 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. | |
Re: 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 | |
Re: Give us your answers and reasons for the answer. | |
| |
Re: [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 … | |
Re: What is the problem you are having with the large files? Does the server dislike receiving too much data? | |
Re: 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. | |
Re: Are you asking something like how to convert this String: "A" to this: "1000001" | |
Re: There is nothing to flowchart. You have posted three assignment statements. | |
Re: [QUOTE]This is giving me a nullpointerexception:[/QUOTE] What statement does it happen on? | |
Re: [QUOTE]it keeps saying no suitable constructor found[/QUOTE] Please post the FULL text of the error message. | |
Re: This is a hard one to work on because of the third party code. | |
Re: 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: … | |
Re: [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 … | |
Re: 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. | |
Re: [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 … | |
Re: Try asking on a javascript forum. This forum is for java. | |
Re: [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 … | |
Re: 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. | |
Re: 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. | |
Re: What is the occur method supposed to do? | |
Re: 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. | |
Re: [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? | |
Re: 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. | |
Re: 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. | |
Re: [QUOTE]i need the help[/QUOTE] Please show what you have so far and ask questions about your problems. | |
Re: 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? | |
Re: 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? | |
Re: [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 | |
Re: [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 … | |
Re: What is supposed to happen when you open your code in the appletviewer? | |
Re: 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 … | |
Re: [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. | |
Re: Does the combobox class have a method that will disable/enable it? Can you call that method in a listener added to the radiobutton? | |
Re: 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. |
The End.