Knute Snortum

Sheriff
+ Follow
since Apr 20, 2013
Knute likes ...
Chrome Eclipse IDE Java Postgres Database VI Editor
Forum Moderator
Knute Snortum currently moderates these forums:
After 25 years of programming, Knute has retired to be a professional musician. Knute first learned BASIC and Cobol on a CPM Timeshare system circa 1985. He spent way too long coding in one flavor of Business Basic or another. Going back to college, he learned C and a whole new world opened up to him. Knute likes Perl and Java, for completely opposite reasons. Knute is a complex person.
Portland, Oregon
Cows and Likes
Cows
Total received
150
In last 30 days
2
Total given
268
Likes
Total received
1039
Received in last 30 days
14
Total given
350
Given in last 30 days
8
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt Green check

Recent posts by Knute Snortum

You're welcome, and wow, thanks for all the pie!
24 minutes ago
I'm not sure I understand.  Are you creating a row that has an "Okay" button in it and when you press that button, another line appears below?

Also, your GitHub is missing classes:

import Row.Row;
import ViewAndController.ViewController;
25 minutes ago
Let's try something.  I don't know if it's the problem, but I've never seen that TableView and TableColumns be static before.  Also, if you use @FXML you should use private as the access modifier.  So,
Also, I don't think the ResultSet should be static either.
1 hour ago
Is the circled area in your attachment one card?  If so, I would use a GridPane to display the data.  That said, I'm not sure it will be that much more efficient than what you have.  Still, worth a try.
1 hour ago
I would comment out lines 90 - 94.  You are setting the cell value factory twice and I don't think the second way is correct.
1 hour ago
"Flying saucer" or "UFO" both work.
18 hours ago
I think I need to see the code of BookScreenController again to see how you modified it.
18 hours ago
Try using an import statement.
1 day ago
Your image didn't post.  Most of the time you shouldn't post an image, especially if you are showing code.  Instead, copy and paste the code directly into the post and UseCodeTags (that's a link).

If you still need to post an image, then either use the image tags with a URL (that points to an image, not an HTML page) or post an attachment in the tab below where you write the reply.  An attachment can be a local file.

So post your code and then we will see if we can help you.
1 day ago
There are a lot of problems with you code that will hinder you from getting the output you want.  First and foremost is the violation of the DRY principle (don't repeat yourself).  You ask all the same questions again for the second set of data about a computer.  What if you had to enter 100 computers?  You can't just keep repeating yourself.  Instead, create one method that asks for the data of one computer and call this method as many times as you need. Then at this point you can display all the information in two columns if you wish.
1 day ago
I don't understand.  Are you saying that you can see the TableView populating while debugging the code, but you can't see any data in the TableView itself?
1 day ago
Let's look at the code you wrote carefully:
You have the method signature correct for an accessor in line 6.  In line 7 you create a local variable transactions that hides the member variable on line 4.  This is probably not what you want to do.  Line 8 uses a type ArrayList_new.  There is no such type in the standard library.  Did you create it?  Then in line 9 you return the type, not the value.  This is a syntax error.

Most accessors are three lines long, so you are complicating things.  I don't know what a "deep copy" has to do with this code.
1 day ago
In lines 14 through 31 you have a parameter of passWord but you never use it.  Instead you use the variable original.  It looks like you just cut and pasted code without adapting it to you class.
1 day ago
You have a column index out of range.  You're trying to access column 5 and there's only 4 columns, probably in a line like rs.getString(5).
I see several things going on here, but let's start with the most likely.

In your Book model, you have a naming convention wrong.  Normally this just makes it harder for someone else to understand your code, but in this situation I think it's stopping JavaFX from recognizing your model properties.  You have methods like this:
...that should look like this:
I think without that get in the method name, JavaFX doesn't know how to find the property method.  Now uncomment 67-71 in BookScreenController.
1 day ago