This week's book giveaway is in the Reactive Progamming forum. We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line! See this thread for details.
I've recently started playing around Java, just as a hobby but I came across a problem I don't know how to solve :-(.
I have a jFrame program where I need my button to generate a file (so far so good). This file needs to be text of a script I already made but in this script there are 2 parts that need to be set in the program (through jtextField). I put the JTextFields into the code so its easier to see what I mean but it will obviously generate a file with "jTextfield1.GetText();" rather than actually fetching the text and importing it:-D
You need to make your variable and method names more descriptive. "jTextField2" doesn't tell me what to expect in the text field. A better name would have been "timeToMeetTextField", or, as some prefer, just "timeToMeet".
So basically I have a text field - jTextField1(Sleep) and jTextField2 (TimeToMeet). Into these text fields I input time and latency. I need the program to generate the script where only things that are different every time are the Time and Latency.
So the text (ahk) file should look like this:
The bolded parts are the ones that need to be generated within the script and are read from the textFields I have in the program. I am sorry if I am nto making myself clear enough.. If it's still unclear, let me know I will try to rephrase it. Cheers!