-
Replied To a Post in Update the JDialog when it is opened but not visible
OK, I get that. Although the sale window is not visible, it still exists, with all its components. So you can update the contents of its combo box at any … -
Replied To a Post in Update the JDialog when it is opened but not visible
I saw this topic briefy late last night (C.E.S.T.) and it seemed odd. Now in the morning it still seems odd. It's not at all clear what is the problem … -
Replied To a Post in need help..want coding
Here's the help you need: You won't learn anything from someone else writing the code. Do your best then if you get stuck come back here and explain what you … -
Replied To a Post in Returning optionals from java8 stream operation
> map(s -> Optional.of(s)) is transforming those objects into Optionals, correct? Yes, but more accuratel: ` .map` creates a new Stream from the values returned by the lambda. There are … -
Replied To a Post in Returning optionals from java8 stream operation
Something like this should give you enough info... Stream<Integer> si = Stream.of(1, 2, 3, 4, 5); List<Optional<Integer>> result = si.filter(i -> i < 4). map(i -> Optional.of(i)). collect(Collectors.toList()); System.out.println(result); -
Replied To a Post in Why won't it output Standard Deviation?
First look at what is inside each loop and decide whether it belongs inside or outside the loop. Eg: how many times do you want to print out the standard … -
Replied To a Post in I keep getting the "illegal start of expression" error
Yeah. The OP was tagged "java", so that's clear enough. The bracketing style, regardless of what you call it or how you feel about it, is consistent with that used … -
Replied To a Post in Fare.java Kindly help me with this
You must explain exactly what help you need. -
Undeleted a Post in I keep getting the "illegal start of expression" error
You can't define a method inside another method. ps: next time post the complete error message with line numbers etc -
Deleted a Post in I keep getting the "illegal start of expression" error
You can't define a method inside another method. ps: next time post the complete error message with line numbers etc -
Replied To a Post in I keep getting the "illegal start of expression" error
You can't define a method inside another method. ps: next time post the complete error message with line numbers etc -
Replied To a Post in looking for the name of software from c 1999
VisiCalc? -
Gave Reputation to rproffitt in Program for checking prime number
My thought on basic functions like this is to always check Rosettacode. There are over 126 solutions in most languages at https://rosettacode.org/wiki/Primality_by_trial_division -
Replied To a Post in Program to calculate sum of n terms
probably 2(n+1) that looks like a function call - the multiplication needs to be explicit as in 2*(n+1) -
Gave Reputation to bngwebguru in Different between !.equals and !=
In general both equals() and “==” operator in Java are used to compare objects to check equality but here are some of the differences between the two: ... In simple … -
Replied To a Post in [VB.Net] How can I prevent the user from entering another form and how to delete data?
+1 for the "second thought" > I wouldn't use Settings variables. They are stored in clear text (Depending on your language) it's only a few lines of code to encrypt … -
Replied To a Post in Creating a simple REST application
> Why go to all this trouble writing everything from scratch? Blame me; I'm the one who ws pushing this approach. This topic is all about learning about REST and … -
Replied To a Post in Bank Account Class
Well done. You posted *exactly* the same question as the first post in this old thread. I guess you didn't read the complete discussion, or the complete solution in the … -
Replied To a Post in I need to learn MVC.
Do you mean MVC as in Model-View-Controller? If so, it's just an architectural principle. A quick Google will point you to dozens of explanations - all less than a page … -
Gave Reputation to Vin vin in how can we use math .pi
example of how to use Math.PI: /* System.out.println(5 * Math.PI); */ you don't even need to import the java.lang.Math.* thing. -
Replied To a Post in how can we use math .pi
You can... `import static java.lang.Math.PI;` and refer to it as `PI` or don't use an import and refer to it as `java.lang.Math.PI` in your code. Why??? -
Replied To a Post in JavaFX Smooth Key Events
If you start to press the next key before you have fully released the previous one then the release will override the press. Maybe that's part of the problem??? -
Replied To a Post in JavaFX TextField Append delay
No. You just start the same client code twice, or as many times as you want for many clients. But you do have to enhance the server code to keep … -
Replied To a Post in Why does the function not echo enter to the screen?
It's just how the designers of those two functions decided they should work. -
Replied To a Post in JavaFX AudioSpectrumListener
Great! Well done. JC -
Replied To a Post in Remote Desktop Software using Java
We had a long and very productive discussion about exactly this a few years ago. Here's the thread https://www.daniweb.com/programming/software-development/threads/254810/find-the-differences-between-two-images-and-the-locations-of-the-differences You need to read the whole thing to get the final … -
Edited JavaFX AudioSpectrumListener
So I am making a responsive audio waveform, if you don't know what that is, it is something like this: (btw this is my goal to make those audio waveforms). … -
Replied To a Post in JavaFX AudioSpectrumListener
> if I placed the class just in v7, the error is gone and the music can play, but if the class is inside of v7.v1 then I get that … -
Replied To a Post in Creating a simple REST application
Hi, welcome back. I haven't done this myself, but my gut tells me that a recursive solution is the way to go. I probably woudn't try to do too much … -
Replied To a Post in JavaFX AudioSpectrumListener
Looks like some very quiet music. (those numbers are deciBels) While testing it will be more manageable if you have (say) 8 bands rather than 256. > I thought if … -
Replied To a Post in JavaFX AudioSpectrumListener
> how do I see when listener is called OK, you seem to be missing some basic understanding here. It's just like using a listener for someone pressing a button. … -
Replied To a Post in JavaFX AudioSpectrumListener
You can’t print those values in the start method. Start runs once and is finished before the music starts playing. You can only access the values via the spectrum listener … -
Replied To a Post in JavaFX AudioSpectrumListener
The last link you posted explains how to get and understand the magnitudes, so what exactly is your question? -
Replied To a Post in JavaFX TextField Append delay
Well done! Thats not an easy project. One bug I noticed still outstanding `new Thread(this).stop();` creates a new Thread and stops it (null op because it was never started) If … -
Replied To a Post in JavaFX TextField Append delay
For future reference: If you are asking for help with a problem and you have an Exception message... TELL US ABOUT IT! It's the single most important piece of information … -
Replied To a Post in JavaFX TextField Append delay
You are not giving much info to help debug this. Please explain exactly what the test procedure was and exactly what messages were (or were not) displayed. -
Replied To a Post in JavaFX TextField Append delay
Little thread tutorial.... Creating a subclass of Thread (as in your code above) is perfectly valid but most people would not recommend it... by extending Thread you remove any possibility … -
Replied To a Post in JavaFX TextField Append delay
> I just need to loop this: ta.appendText(dis.readUTF() + "\n"); right? Yes, but it has to be in its own thread so it doesn't block everything else. -
Replied To a Post in JavaFX TextField Append delay
Looks like a design problem around when you read the input from the ObjectInputStreams - you only try to read them after sending something. So the client can send something … -
Replied To a Post in JavaFX server client program
OK, yes. You have created a new thread for the server accept, so it no longer blocks anything else. That's good. -
Gave Reputation to rproffitt in Creating a code to decompress byte-oriented RLE image
Sorry but this is where I'd use ImageMagick or another library. You left out the language tag and I don't know "code" as a language. I think you are using … -
Replied To a Post in Creating a code to decompress byte-oriented RLE image
That's really close, but in copying (length+1) bytes (lines 26-31): you copy the same byte repeatedly. in replicating one byte (lines34-38) you don't skip the byte you are copying. Testing … -
Replied To a Post in How to get only internal HDD details.... Please help me
For Each HDDDET In HDD.Get HDD_DETLAIS = etc TextBox1.Text = HDD_DETLAIS Next You loop through all the disks setting the text box to dosplay their details BUT each one immediately … -
Replied To a Post in JavaFX server client program
> new Runnable(){@Override public void run() {}}; Thats one part of one way to start a new thread. Without the other part it does nothing. You still have AnimationTimers that … -
Replied To a Post in JavaFX server client program
What part of " if it's someone else's example code then no, you cannot post it here or anywhere else without the copyright owner's permission." didn't you understand? Research the … -
Replied To a Post in JavaFX server client program
If you want to post code do it as part of a code block or inline ciode (icons 3 and 4 above the text input box). But if it's someone … -
Replied To a Post in JavaFX server client program
> So basicly I have to find a way to unblock ui events in my program Yes, or, more accurately, avoid blocking them in the first place. The most obvious … -
Replied To a Post in JavaFX server client program
> I don't know what you mean with thread OK, that's going to be a problem with an app like this. Threads and Threading are a fundamental topic in computing, … -
Replied To a Post in JavaFX server client program
^ like he said. Waiting for a connection has to be done in its own thread if you want the app to respond to anything else while waiting. Same goes … -
Gave Reputation to Reverend Jim in Which layer should we start with when building an application?
I strongly recommend starting with the user interface. In my experience, it doesn't matter, from the user's perspective, what's under the hood if the part the user sees is confusing …
The End.