I am trying out JavaFX and I used JFoenix library to incorporate material design in the application.
All the other controls I added from JFoenix has the material look, but JFXTreeTableView does not have the material look shown in the project github page. The table looks the same as the default JavaFX TableView.
Following is a screenshot of the JFXTreeTableView in my app.
I have my own stylesheet added to the root node of the scene. It does not seem to have any impact to this issue since when I remove the custom stylesheet, the look of the JFXTreeTableView doesn't change.
Does anyone has any clue why the styles aren't applied?
Within JFoenix Demo application,
custom stylesheet for JFXTreeTableView is contained and applied like this.
scene.getStylesheets().add(TreeTableDemo.class.getResource("/css/jfoenix-components.css").toExternalForm());
Applying to the root node also works.
scene.getRoot().getStylesheets().add(TreeTableDemo.class.getResource("/css/jfoenix-components.css").toExternalForm());
If your way was different, try it out please.
Related
I have faced with one problem, for my project I need to use JFXDatePicker, however I can't find it to use, Here only DatePicker is avaiable but I need exactly JFXDatePicker.
Scene Builder: search panel enter image description here
JFXDatePicker is from an external library. Probably from JFoenix. In order to use that in SceneBuilder you have to import that external library in SB. This Adding a custom component to SceneBuilder 2.0 may be helpful.
I am working on a JavaFX project and I am creating an UI based on Google's Material Design patterns. I use a library that includes a lot of components based on this design, named JFoenix.
Basically I have a JFXTabPane with different tabs, and in one of them I want to make something to Search on a TreeTableView, and I got as idea to replace the TabPane's header (where the tabs display) with the Search bar.
I've been looking this up on Google and haven't found anything. Any ideas?
I've been coding a GUI in JavaFX and have gotten to styling it with CSS. However, I came to learn that there is no support for setting layout parameters such as min-width, pref-width, etc. (These show up in the docs but are filed under WebView only.) Instead of getting a nicely sized TextField, I have one that's spread across the entire screen.
Now I know the solution is to just go hardcode these layout parameters in Java (the documentation pointed me to JavaFX Script but that's been dead since 2009), but I'm wondering why I have to do this? What's the point? I'm not a CSS pro, but it seems like bad design to only abstract some of your styling. Now it's in two places? Are there any plans to change this?
The feature you request has been implemented in Java 8.
See RT-20906 Support setting min/pref/max sizes via css.
It could be argued that layout and styling a separate things and JavaFX already has FXML as a declarative layout system, so perhaps the need for layout parameters in CSS is slightly less if you are using SceneBuilder and FXML for your layout (at least that is what my experience with the technology has lead me to believe).
Is it possible to include a JPedal PDF Viewer in a HBox JavaFX Application, with other stuffs added to the following slots of the HBox? Any tips?
I am unsure if it's possible to put JPedal inside JavaFX - there's no official mechanism for putting Swing inside JavaFX, but you may be able to find some hacks online. Perhaps this functionality will arrive in JavaFX8 or 9.
Regardless, it's a possibility that in the future JPedal will include a JavaFXDisplay if there's a demand for it and it's commercially viable.
We do lots of playing with JavaFX - we currently have an online converter to demo PDF to JavaFX and PDF to FXML functionality: http://www.idrsolutions.com/online-pdf-to-javafx-fxml-converter/
Recently we announced that we have swapped out Java3D for JavaFX in the PageFlow mode inside JPedal's Viewer: http://blog.idrsolutions.com/2013/01/announcing-the-pageflow-pdf-viewer-mode-in-javafx/
There's a video of it in action here: http://www.youtube.com/watch?v=auwNrIPt0Tc
And as already pointed out, there's section on the website with some extra bits like JPedalFX which is a lightweight JavaFX PDF viewer. There's also PDF to JavaFX functionality in the plugins for Eclipse, NetBeans and IDEA.
We hope to update the JavaFX section in the near future with what we have been working on recently too: http://www.idrsolutions.com/javafx/
JPedal already supports JavaFX, pretty cool actually.
http://www.idrsolutions.com/javafx/
I'm using JavaFX integrated HTMLEditor. All the functions that it has are fine but I need to have also the function of inserting an image inside the HTML text.
Do you know some source which I could use? Or some other HTML (WYSIWYG) editor that could be used inside JavaFX and it has this functionality ?
I can program this functionality into the existing JavaFX HTMLEditor by myself, but I prefer to ask before I start doing something :)
Thank you very much for your answers ;)
I'd advise just customizing the existing JavaFX HTMLEditor, if it does most things you need with the exception of adding images and the look and feel of it is basically ok for you.
I created a code sample to assist in some JavaFX HTMLEditor customization tasks.
Another option you could toy with for a very basic html editor is a WebView with contenteditable set to true. Though I haven't tried it with images - maybe it will work ok.
If the above options don't work for you there there are heaps of javascript based editors out there to choose from.