Knute Snortum

+ Follow
since Apr 20, 2013
Knute likes ...
Chrome Eclipse IDE Java Postgres Database Ubuntu 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
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
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

Just copy and paste it into your class, like it was a method.  I usually put them at the bottom, some people put them at the top, but anywhere will do.
6 hours ago
I'm assuming that JTextArea has some setText() method.  Have you tried that?

Please TellTheDetails (that's a link) of the problem you're having.  I'm assuming you're writing a Swing program.  Have you written one before?  What resources and tutorials have you looked into?  Have you looked at this:
1 day ago
Looking at the error messages, I think this has more to do with your Tomcat setup than Eclipse.  I added the Tomcat forum to this thread.
1 day ago
Confirmed that this works on Windows.

CR, it's new to me too.
1 day ago
I am also on Ubuntu.  I followed the instructions and the java command worked for me.
1 day ago
What about writing a SSCCE (that's a link) that uses ObservableIDPair with some mock data and see if you can just get the Table working?  Then build from there.

If you post your FXML for the TableView, I can help.
1 day ago

Babi Astimal Astimal wrote:now just for design purpuse I want my result will be displayed inside JtextArea with  use of JRadioButton  in order to get bellow  information can you help us ?

Please ShowSomeEffort (that's a link) to do the project yourself.  Try coding it, then post any difficulties you are having.
1 day ago

Pablo Napoli wrote:... maybe now my doubt is related with how the compiler works, because I still don't fully understand why the compiler can't know the new value of the variable "c" (in case it has changed). I mean, with variable "b" it was able to read it knowing the value was too large. So in case value from "c" changes, it can check it again and if it doesn't fill into byte sum3, just in that case claims. I'm not sure if I'm being enough clear. Anyway with those explanations is enough to detect the right answers in my next oca exam, but I like going a bit deeper

The short answer is the compiler does the least amount of work to compile a valid Java program.  It does this mainly for speed.  In order for the compiler to be able to tell if the value of c changed, it would have to be akin to an interpreter.

So it may be unsatisfying, but the compiler doesn't track variables like c because that's the way it was designed.
1 day ago
Consider the class below:
1 day ago

F Lucas wrote:I tried something and the error message changed, and I thought it was better to share here in case it can help.  
I went to the variable emsTableView and changed the declaration to also initialize it.

Now it gives me an IllegalStateException on Main, as soon as it tries to make an instance of FXBasedBrowser.  
Did I discover a problem on my code or is initiating it just wrong?

A statement annotated with @FXML should not initialize.  It should just be:

@FXML <class_name> <variable>;
2 days ago
This thread seems related to

The File class also has different documentation for the string it accepts.  It looks like adding a slash (/) to the string that is passed to File will cause the file to start from the system root.  So I'd try:

2 days ago
Okay, it looks like from another thread you posted that you do NOT have a directory with an at sign in it.  If the at sign is handled differently in the Image class, it doesn't seem to be documented.

I would try to get the Image class to load your image without the at sign.  Also try loading the FXML Image without the at sign.  Try prefixing with a slash (/) or "file:".
2 days ago
It looks like the at sign (@) has a special meaning in an FXML URL.

I'm assuming you have a directory that is literally "@PNG".  If so, you will have to change that.
2 days ago
The only thing I can see that might be a problem with ObservableIDPair is the setters.  I think they should look like this:
JavaFX relies heavily on reflection so it may be sensitive to these kinds of changes -- that is, that setters set the field, not the property.  I know this will affect other parts of your project, so maybe copying the project first or using a Git branch is a good idea so you can revert it if necessary.
3 days ago