Giter Club home page Giter Club logo

Comments (7)

byteit101 avatar byteit101 commented on July 24, 2024

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.

byteit101 avatar byteit101 commented on July 24, 2024

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:

  1. pull all changes from https://bitbucket.org/byteit101/jrubyfx
  2. clone https://github.com/byteit101/JRubyFX-FXMLLoader
  3. 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
  4. 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
  5. go back to your app dir
  6. run jruby -I ../path/to/jrubyfx/lib -I ../path/to/fxmlloader/lib your-app.rb test again success message
  7. 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.

ukimi367 avatar ukimi367 commented on July 24, 2024

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.

ukimi367 avatar ukimi367 commented on July 24, 2024

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.

byteit101 avatar byteit101 commented on July 24, 2024

I've changed some stuff so the instructions are now:

  1. pull all changes from https://bitbucket.org/byteit101/jrubyfx
  2. clone https://github.com/byteit101/JRubyFX-FXMLLoader
  3. 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
  4. go back to your app dir
  5. 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.

ukimi367 avatar ukimi367 commented on July 24, 2024

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.

byteit101 avatar byteit101 commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.