-
Replied To a Post in Active Tile not moving even though I am changing it's position
There's something deeply suspicious about the data redundancy here that makes me unsurprised that your swap method has problems. As I understand it theres a Tile[][] array that says what … -
Replied To a Post in a java code that displays multilevel feedback queue scheduling
You seem very confused. Do you want someone to give you some code? If so, this is the wrong place. Do you want help to write your own code? If … -
Replied To a Post in Most Efficient Way to swap Two Tiles
Do you just want to shuffle all the Tiles? Put them all in a `List` and call `shuffle()` Then simply re-populate your x,y grid with the Tiles in their shuffled … -
Replied To a Post in keyAdapter with ActionListener !!(Calculator )
I can't read all that code, but it sounds like you should be using Key Bindings. http://docs.oracle.com/javase/tutorial/uiswing/misc/keybinding.html -
Replied To a Post in can any one help me
Yes, I understood that from your previous post. I already explained why that happens, and gave you a HUGE hint as to how to fix it. Just re-read my previous … -
Replied To a Post in can any one help me
You missed out the bits of the spec that said "and the program will stop". You can make your program stop at any point by calling System.exit(0); -
Replied To a Post in can any one help me
That's just a copy of your assignment. Surely you didn't expect anyone to give you the solution? What help EXACTLY do you need? What have you done so far? Read … -
Replied To a Post in error: cannot find symbol int randomNum = (int) (Math.Random() *5);"
I'm baffled. That code is valid. Is it possible that you have created your own class called Math at some point? If so you could try referencing the right class … -
Replied To a Post in Creating an excel file after checking it doesn't exist
When you declare a variable its scope is from the immediately preceeding `{` to the immediately following `}`. So your `excel` variable is in scope from line 211 to 213 … -
Replied To a Post in error: cannot find symbol int randomNum = (int) (Math.Random() *5);"
That message does not correspond to the code you posted, so that's useless. Anyway - check your capitalisation... the method name is random not Random ps: You will get a … -
Replied To a Post in Looking for a good tutorial for creating chat messenger in Java
Wow, that's bad. I see you are in Iran, and it seems Oracle have decided that they cannot supply Java technology to Iran under US law. Most people seem to … -
Replied To a Post in Looking for a good tutorial for creating chat messenger in Java
Yes. The tutorial on Sockets that I linked is the best place to start, but it's very clear that you do not yet have the basic knowledge to attempt such … -
Replied To a Post in If statement non functional in button ActionEvent
OK - maybe you want to have some kind of response to the user when the guess is right? Maybe you don't want the change the random number every time … -
Replied To a Post in If statement non functional in button ActionEvent
Line 31 you declare the parsedUserGuess variable, OK, but you also give it its value by parsing the text field at that point. This happens before the user has been … -
Replied To a Post in Index Out Of bound
If you have an index out of bounds error then the error message will tell you the exact line where the error happened. No need to guess. I have to … -
Replied To a Post in Comparing a text file to see if any terms from a dictionary are inside it
Rather than have a single String that contains the whole dictionary, you need to store and process each dictionary phrase separately. Eg if the phrases are on separate lines you … -
Replied To a Post in web crawling
Hi kavitadc - welcome to DaniWeb. Many of our members have English as their second or third language, so we insist that you post in clear complete English, no "text-speak" … -
Replied To a Post in Looking for a good tutorial for creating chat messenger in Java
OK, if you really really want.. [Here](http://docs.oracle.com/javase/tutorial/networking/sockets/index.html)'s an excellent tutorial on client/server messaging. It' part of the Oracle tutorials, which are by far the most complete, accurate and up-to-date tutorials … -
Replied To a Post in knowing information
I agree. Plus: Java isn't the language to do it in. C and C++ would be better. -
Replied To a Post in Looking for a good tutorial for creating chat messenger in Java
I agree. You will need to create a user interface, create a IP server and an IP client, make a network connection, send data by using streams, and do all … -
Replied To a Post in Sort random
How to compile and run: in Windows http://docs.oracle.com/javase/tutorial/getStarted/cupojava/win32.html in Linux http://docs.oracle.com/javase/tutorial/getStarted/cupojava/unix.html -
Replied To a Post in Sort random
Was there a question, or did you just want to share this code with us all? -
Replied To a Post in why do i hear echo in my application
In that case it's probably a problem in your code, so without seeing it there's nothing more we can do. -
Replied To a Post in Issues on BlueJ questions
See http://docs.oracle.com/javase/tutorial/java/concepts/inheritance.html Alll the javadoc is [here](https://docs.oracle.com/javase/8/docs/api/index.html?overview-summary.html) -
Replied To a Post in why do i hear echo in my application
local app sends sound remote app plays it remote microphone hears sound being played remote app sends what it hears back to you you hear an echo -
Replied To a Post in MouseAdapter (eventHandling)
You create a frame and a VectorDraw panel, but you don't add the panel to the frame! -
Replied To a Post in Terminal output after jar Restart
Have you tried redirecting the new process's output stream? There are various options for that (see the API doc). This one looks particularly interesting... public ProcessBuilder inheritIO() Sets the source … -
Replied To a Post in Help Pseudocode to Java
You did not say what help you need! Please ask specific questions. -
Replied To a Post in Thread read from file and put words in array not in arraylist.
You create threads by creating new instances of the Thread class - just look up the API doc or Google for the Oracle tutorial. If you do as instructed, and … -
Replied To a Post in Thread read from file and put words in array not in arraylist.
Hello Mazahir. Exactly what help do you need? Nobody here will write the solution for you, but if there's some specific problem that is stopping you, we will help with … -
Replied To a Post in Reading Files into Arrays
The usual way to read a text file is to try to read the line and test for null/EOF at the same time, ie String line; while ((line=br.readLine()) != null) … -
Replied To a Post in Reading Files into Arrays
You still need to create those lists - just declaring the variables isn't enough. (Maybe you just didnlt post that part of the code.) Also watch out for your readLines... … -
Replied To a Post in Reading Files into Arrays
It's a class in the standard Java API that holds a list of values, like an array, but it grows automatically to fit whatever data you put in it. In … -
Replied To a Post in Reading Files into Arrays
That code is mostly OK. If you use `i` to index into the arrays to add the words (lines 8,9) then you need to increment it after processing each line … -
Replied To a Post in how to analyze snippets of codes
At a far far simpler level I have a NetBeans project that looks a bit like class test { public static void main(String[] args) { // put code to test … -
Replied To a Post in HELP
You just copy/pasted your assignment without even a moment taken to explain what help you need. That's highly disrepestectful to the many people who give their time to help others … -
Replied To a Post in Java Mini Project Topic
I guess you've looked through [this topic](https://www.daniweb.com/software-development/java/threads/430542/java-projects-for-learners)? -
Replied To a Post in Rename file/directory using JFileChooser() and JButton()
Looks like you are missing the call to `showOpenDialog` to make the file chooser do its stuff -
Replied To a Post in Restrict to type more than 60 words in textbox problem
This is the Java forum. That's not Java code. -
Replied To a Post in Add an item to a queue from a button
Either have an "Add" button, or wait until the user presses enter in the textfield to trigger adding the item to the queue -
Replied To a Post in Problem Help me
OK, I've written it, and it does compute the average of these numbers and then tell for each number whether it is above, below or equal to the average. What … -
Replied To a Post in set an error text if the double number has more than 1 dot (eventHandling)
You have a single blank character at the start of the string. Ie it's " 2", but it should be "2". The blank character is not valid when parsing an … -
Replied To a Post in Java Program crashes at around 30min. libosxapp.dylib plugin crash
Without seeing the code I can only guess. Do you create one `new Robot()` and re-use that for everything, or do you create a new Robot for each screen shot? -
Replied To a Post in Repaint wont call paint
OK, here's a very simple but completely runnable example that shows how to update an animated simulation at a steady speed and update the GUI to match. The important parts … -
Replied To a Post in Scrolling a JPanel with JScrollPane
OK, I give up! I have absolutely no idea what you are trying to do. All I see here is a JPanel subclass with no size info or methods that … -
Replied To a Post in Repaint wont call paint
You call repaint on the GUI conponent that needs to be updated. That component's paintComponent method is where the ball gets apinted. -
Replied To a Post in Scrolling a JPanel with JScrollPane
Instead of repainting 1000x1000 (100 million) tiles each time you just paint the few that have changed. -
Replied To a Post in Changing one JSpinner changes other as well
It's because the model contains the state info for the spinner. -
Replied To a Post in coding the summation func in calculator (EventHandling)
Java 6! Ouch. Enjoy all those unpatched vulnerabilities! (Some employers never learn) -
Revoked Solved Status for coding the summation func in calculator (EventHandling)
hi everyone :) I have a problem here >>which I can't add 2 numbers >> and I don't know what is the solution for that !!>>it always gives me an …
The End.