Comments (7)
This looks like this will be interesting one to fix... I think I remember a similar bug for XYCharts...
I don't know that my programming skills are strong enough to be able to help.
Probbably very likey at least for this bug :)
I would like to help with documentation though.
The getting started guide and readme and stuff needs some updating and is missing some info.
I am really excited about JRubyFX as I feel that it is the PERFECT solution for me, and I really want to see it succeed, which is why I would like to help in any way I can.
It is. Another area we need help with is making sure we have everything wrapped. For example, ObservableValue.addListener is wrapped, but not ObservableMap.addListener. Simply finding what needs to be wrapped/completed by looking at the JavaFX docs at http://docs.oracle.com/javafx/2/api/overview-summary.html would be a huge help. Also, my person bleeding-bleeding edge can be found at https://bitbucket.org/byteit101/jrubyfx and if you know anything about rakefiles, you can move the code generation in jrubyfx.rb to a rakefile (Pull request all of it on this repo though, not on that one)
cannot then get data into the table.
sure you can. @table_stock_data.items = FXCollections.observableArrayList
(Ignore the fact this is blatent cheating 😄 )
from jrubyfx.
Ok, I fixed it so the sample will run, but I never came across this exact error. Please follow the (long) instructions below and see if you can get it to work with my repo or if it still fails:
- pull all changes from https://bitbucket.org/byteit101/jrubyfx
- clone https://github.com/byteit101/JRubyFX-FXMLLoader
- in the JRubyFX dir, run
jruby -I lib -I ../path/to/fxmlloader/lib samples/contrib/fxmltableview/FXMLTableView.rb test
it should say "success" or something like that - in the JRubyFX dir, run
jruby -I lib -I ../path/to/fxmlloader/lib samples/contrib/fxmltableview/FXMLTableView.rb
. It should pop up and work properly - go back to your app dir
- run
jruby -I ../path/to/jrubyfx/lib -I ../path/to/fxmlloader/lib your-app.rb test
again success message - run
jruby -I ../path/to/jrubyfx/lib -I ../path/to/fxmlloader/lib your-app.rb
and it should work
If it does not work, post your entire FXML file and controller (in a gist if its too large to fit in this issue)
from jrubyfx.
I will try and follow the long instructions tonight and will let you know how it goes.
On a separate note, how do you recommend I see what is wrapped/completed (using the JavaFX docs at http://docs.oracle.com/javafx/2/api/overview-summary.html)? Should I create sample code that exercises each class and see what fails? Or is this something I would do by looking at the JRubyFX source code?
Thanks, and I am looking forward to helping out!
from jrubyfx.
One other thing that I should have added to my previous comment:
Could you please provide a brief synopsis of how JRubyFX works in general? A couple paragraphs should be helpful for me to get a better understanding of the overall architecture of the project (and reference a few specific files so that I can explore in further detail).
I apologize if I am asking remedial questions; I am still trying to come up to speed and be a productive member of the group. :-)
from jrubyfx.
I've changed some stuff so the instructions are now:
- pull all changes from https://bitbucket.org/byteit101/jrubyfx
- clone https://github.com/byteit101/JRubyFX-FXMLLoader
- in the JRubyFX dir, run
jruby -I lib -I ../path/to/fxmlloader/lib samples/contrib/fxmltableview/FXMLTableView.rb
. It should pop up and work properly - go back to your app dir
- run
jruby -I ../path/to/jrubyfx/lib -I ../path/to/fxmlloader/lib your-app.rb
and it should work
Should I create sample code that exercises each class and see what fails? Or is this something I would do by looking at the JRubyFX source code?
Looking at the source code mostly. Most of the "issues" are marshalling data and overrides. Ex: some.enum = :value is converted into some.enum = Enum::VALUE and observable.add_change_listener is an alias for a specific overload of addListener(ChangeListener)
Could you please provide a brief synopsis of how JRubyFX works in general? A couple paragraphs should be helpful for me to get a better understanding of the overall architecture of the project (and reference a few specific files so that I can explore in further detail).
Yes, I've been meaning to write it up for a while, so this is a nice excuse to actually do it...
I apologize if I am asking remedial questions; I am still trying to come up to speed and be a productive member of the group. :-)
No apology necessary as asking questions is essential to learning
from jrubyfx.
I ran with the latest instructions and the <FXCollections></FXCollections>
part of the FXML file no longer fails. Thanks for putting in that fix.
I am still not getting data into my table, but it is strictly a user error on my part and I will track it down.
I will start looking through the source code to identify missing wrappers. Should I be looking in the JRubyFX source code or the JRubyFX-FXMLLoader source code?
Thanks again for the code fix!
from jrubyfx.
Sorry it took so long:
https://github.com/jruby/jrubyfx/wiki/Developer-overview
I am still not getting data into my table, but it is strictly a user error on my part and I will track it down.
take a look at samples/contrib/fxmltableview/. My guess is you need fxml_accessor
statements (see veloper ovverview for details why)
Should I be looking in the JRubyFX source code
yes. See Developer overview on what stuff is what. I know the following types are most likely to be missing:
- Special values like Double.maxValue are not converted for ints. Similarly there are other things. use map_converter in the static core_ext files (or even better add it to the yml generation, but that ismore difficult
- Missing children like ObservableList.addListener
- Types like insets which are simple structs
from jrubyfx.
Related Issues (20)
- jrubyfx sensitive to number of spaces in fxml HOT 2
- Enhancement: Provide Ruby binding impls HOT 1
- Setting TableView items doesn't seem to work HOT 4
- Jar classpath issue on windows HOT 1
- jarify with fxml: no .jrubyfx_cache in the jarfile HOT 1
- jarify with fxml: cannot access the fxml files
- jarify with fxml: require_relative doesn't work from inside a jarfile
- jrubfx-jarify compiled jar does not laucnch HOT 5
- cannot run the hello world app HOT 2
- gem install jrubyfx gem not found HOT 1
- Permission denied for 'jrubyfx_cache' HOT 2
- Need more documentation for controller functions HOT 1
- jrubyfx não encaminhando HOT 2
- Is this project active ? HOT 3
- Path to jfxrt.jar loading issue with 1.8.0_202-ea-b03 HOT 1
- Would it be possible to add a screenshot-example to the main README here? HOT 1
- Use javafx 17 modules HOT 3
- Warning: SCENE3D? HOT 1
- More examples perhaps? TextArea specifically
- Classic OOP style? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jrubyfx.