JavaFX good DateChooser need - javafx-2

Need good DateChooser for JavaFX project(JDK 7).
I was faced with the task of which is the need to use DataChooser.
please recommend ready solutions, for implement and use it in JavaFX (JXML files)

There's a new date picker in JavaFX 8. It's all included in JDK 8.
https://jdk8.java.net/download.html
A cool little video on using it.
https://blogs.oracle.com/geertjan/entry/javafx_8_datepicker_with_lambdas

I found this very beautiful component for datepicker.. Check this if you running your javaFX application on JDk7.
Link for download Datepicker.
Reference for this picker. Follow this instruction for working with Listener
Thanks..

Related

Can I skin the Activity Dialog to have a custom animation?

as explained in the title I would like to know if I can set a custom animation and/or background for the Activity Dialog. I don't find in your documentation any information regarding this... and further than that I have problems setting the Theme... it doesn't matter which theme I set, always see the same.
All this look the same:
DialogTheme.DEVICE_DEFAULT_LIGHT, DialogTheme.MATERIAL_LIGHT, DialogTheme.DEVICE_DEFAULT_DARK...
I use the following code:
_activityDialog = Dialog.service.create(
new ActivityBuilder()
.setTheme( new DialogTheme( DialogTheme.DEVICE_DEFAULT_LIGHT))
.build()
);
Thanks in advance for any help
There is no way to control the animations of native dialogs at this point.
The themes are applicable only to Android and depend on the version of Android you are using.
If you are looking for an enhancement to the ANE feel free to drop an enhancement request into github: (http://github.com/distriqt/ANE-Dialog/issues)
Or add a request to our suggestion site: http://distriqt.uservoice.com

Wizard orientation in primefaces

I am using PF 5.0 and I wonder whether there is a possibility to have the Wizard component work like the tabView component : I would like to have the orientation set to "left".
Is a feature like this planned or is there any other way to achieve this ?
Best regards,
Daniel
I think this could be possible with some CSS skills. Have a look at the relevant style classes provided in the PrimeFaces 5.0 documentation:
.ui-wizard
.ui-wizard-content
.ui-wizard-step-titles
.ui-wizard-step-title
.ui-wizard-navbar
.ui-wizard-nav-next
.ui-wizard-nav-back
You can download the pdf here
I hope this helps you. Good luck and tell me whether you were succesfull.

JAVA ME: LWUIT Camera Video Component

I am using this line of code to start the Video Component:
videoComponent = VideoComponent.createVideoPeer("capture://video");
The code I have works perfectly on a Nokia phone but I have another phone by OLG and this line always fails. Both "capture://video" and "capture://image" don't work.
Does anyone know how to find out whats the proper string to put there or all the possibilities?
I would search it but I don't know what to type into Google.
VideoComponent in LWUIT 1.5 had many bugs and since LWUIT is effectively abandoned it will probably never be fixed and never really worked well. With Codename One we migrated to a more traditional Media approach, I would recommend migrating to Codename One.

MvvmCross and Xcode Storyboard

The storyboard xcode are supported in mvvmcross v3?
If yes, how? There is an example?
Thanks
MvvmCross doesn't really fit that well with Storyboards
The reason is because Storyboards have some logic in them (eg Segue navigation) which really belongs inside actions in the MvvmCross ViewModels.
With that said... if you just want to take advantage of data-binding then you can... just:
add the MvvmCross assembly references
modify your Storyboard app so it runs some minimal setup code
use the Mvx*ViewController base classes instead of the UI*ViewController classes
and similarly use MvxTableViewCell (or similar) for the base class for any TableViewCell's you use.
There's no documentation around for this at the moment... but there is one sample - posted under the very odd title of 'eh' - https://github.com/slodge/eh - it's just a simple master-detail pair of views and it needs to be built against recent binaries - e.g from https://github.com/slodge/MvvmCross-Binaries/tree/master/XS-iOS-Mac
Not sure if this is really the SO way but Stuart and others have a better answer IMHO to this question when it was asked at a later date. See the answers to this question MVVMCross support for Xamarin.iOS Storyboards
I am answering here just to tie up the Q&A
UPDATE
MVVMCross 3.5.1 Now has a FromStoryboard attribute so that you can have some views which are Storyboard based. See http://slodge.blogspot.co.uk/2015/05/351-release.html
Thanks
Pat

What is the best way to design the GUI in javafx 2.0?

In javafx 2.0 it is possible to create the layout by using FXML approach or by using normal java code.
What is the best way with respect to a well designed set of UIs. In my application there is about 100 sub UIs.
Thanks
FXML looks more logical for that purpose. By using FXML
you split business logic from view
you get option to edit design without recompiling project.
you get design as structured xml tree which is much easier to edit comparing to potentially randomly ordered java code
with SceneBuider tool you get an option to use visual editor for your fxml files
Get JavaFX Scenebuilder here.
FXForm2 is a library providing automatic JavaFX 2.0 form generation.
however FXForm2 is not full WYSIWYG GUI design tool.
http://dooapp.github.io/FXForm2/
Scene builder should be a good starting point to create unique UIs of your application. Considering you have 100s of UIs, I assume that some of their "appearances" should be identical with slightly different functions. You can load the FXML dynamically and assign controller at run time. Which means 1 FXML file can be used with multiple controllers. Which can save you some time while keeping the code dynamic for easier maintenance.
FXMLLoader loader = new FXMLLoader(getClass().getResource("DBedit.fxml"));
loader.setController(new DBeditEntityUser());
So, to make use of the same FXML with a different controller.
FXMLLoader loader = new FXMLLoader(getClass().getResource("DBedit.fxml"));
loader.setController(new DBeditEntityUserLevel());
Hope this helps.
fyi,
road map for Java fx http://javafx.com/roadmap/ shows that the scene builder will be released around middle of the year. From the above web page:
"JavaFX Scene Builder is a WYSIWYG GUI design tool for the
JavaFX platform. It enables designing user interface screens by simply
dragging and positioning GUI components from a palette onto a scene.
The tool generates files in FXML format2 that can be used within a project
in any IDE such as NetBeans or Eclipse. The JavaFX Scene Builder can be
used to create GUI for desktop applications and applets that run in a browser."

Resources