I have known how to embed JavaFX content into Swing applications according to this Oracle Tutorial.
But now I want to add some Swing components to the JavaFX Scene. Is there any ideas about that?
Regards,
Qin
now it's possible to do that
what you need now is install jdk 8
because swing content in javafx is introduced in jdk8
#FXML
private SwingNode swingNode;
...
JasperPrint jasperPrint = JasperFillManager.fillReport(FileName, hash, connect);
swingNode.setContent(new JRViewer(jasperPrint));
oracle just add tutorial for this too
for the next you can follow this link
oracle tutorial embed swing in javaFX
I think it is not possible in JavaFX 2.*, but some people hava worked on it. Take a look here : http://www.jroller.com/neugens/entry/embed_swing_inside_javafx_2 . Maybe you will find what you want. :)
Related
I have a application that I am working on rolling out and need to do "onboarding". I need people to sign releases.
I am looking to intergrate a "e-signature" function - not just a simple Accept check box.
I have looked at options like esignlive and adobe esign.
I am not sure if anyone know of a service / tool / JAR/ something that i can incorporate the concept of "signing" an release online.
Thanks in advance.
FYI I did find this js library
https://github.com/szimek/signature_pad
Don't worry, I'm not asking you to fix all my bugs, I just wanted to know common causes for gwt/html logging to not work.
Here is my project:
https://github.com/vedi0boy/Archipelo
I cannot get logging to work at all in html. I used this code in a brand new LibGDX project and it worked (inside the main class):
#Override
public void create () {
Gdx.App.setLogLevel(Application.LOG_DEBUG);
Gdx.app.log("Test", "Test log message.";
}
I just don't get it. Is there something common that could be making basic html/gwt functions not work? My libgdx is update to 1.9.2. I can't seem to figure out why it works on a new project but not mine.
What should I do? Should I attempt to copy all the code to a new project? Thanks.
P.S. I am also unable to use a networking library that I need, and it also works on a brand new project.
The solution was simple. I made a while loop that did not continue until a connection to the server was established. Since javascript is single threaded, it got caught in an infinite loop.
The reason this has to do with logging is because LibGDX only loads up the log box when create is finished being run and my infinite loop was in create so it never got around to rendering the logs.
Lesson: Don't treat JavaScript as a multi-threaded language when using GWT, because it isn't.
You don't need to copy all your code to a new project, if you have doubts about your LIBGDX version you can update your corruent project to a recent V of libgdx,
use the build.gradle like follow :
gdxVersion = "1.5.2" // your gdx version here
for more info read this topic in the official WIKI
I saw examples of using ViewPager in MvvmCross on https://github.com/Cheesebaron/Cheesebaron.MvvmCross.Bindings.
I am using MvvmCross 3.0.14.
In that link which version of MvvmCross is used.?
If I want to use ViewPager in My MvvmCross 3.0.14.,then what changes should I make into that example?
according to the history, there has been attempted binding fix with version 3.0.7, but without testing; Have you tried to run it with your project and see what happens?
When I create JFrame everytime I see initComponents(); in my constructor. What is it? If I remove it what is going to happen?
initcomponents() is a method that NetBeans (I guess you are using it) swing Designer creates to initialise components (set default values etc.). It doesn't really have anything to do with the JFrame class.
You can call the method whenever you like (constructor, other method). For Java, it is just like any other method. The NetBeans IDE, however, calls it inside the constructor to control the parameters you have passed via your GUI editor of Netbeans. It is by default private.
You can think of it as the connection between the GUI Editor and Java. So if you remove it, probably you will not be able to use the functionality that NetBeans provides to work with components (which can still be ok).
To add to Artem's answer above:
Invariably, the initcomponents() initializes all of the Java swing components objects that your front-end GUI uses using the NetBeans GUI Builder.
These swing components are automatically generated in your Java class whenever you make changes to the design of your GUI using the GUI builder.
As a general rule of thumb, you should never change any aspect of the code within this method as this method is inextricably linked to the front-end NetBeans GUI builder. The image below outlines the NetBeans GUI design builder. A user can quickly jump between the design front-end by clicking on the DESIGN button and also the source by clicking on the SOURCE button respectively
By clicking on the source button (outlined below), you will see the auto generated initcomponents() containing all of the swing components
the following link provides very good quick start guide to the essentials of NetBeans GUI builder: Designing a Swing GUI in NetBeans
I'm using FlashDevelop4.0.0 RC1 to create AS3 library project, in which I want to import Away3D library. I follow this tutorial to set up my FD.
http://www.mclelun.com/blog/2011/08/flashdevelop-stage3d-away3d/
However, FD generate error message when I use ExportSWC4.2 plugin to compile the project, I got error message said that
at away3d\materials\methods\TerrainDiffuseMethod_NormalizeKernel.as(10): The definition of base class ByteArrayAsset was not found
Can anyone help me with that? Thanks!
p.s.
I also have issue like the following link
http://sourceforge.net/tracker/index.php?func=detail&aid=3401191&group_id=252536&atid=1127375
not sure if it's related to my problem.
Are you downloading the zip package from http://away3d.com/download/ or accessing via SVN / GIT?
http://away3d.com/images/uploads/releases/away3d_4_0_110915.zip
Not sure about their GIT, but I found the SVN repo dated.
I did not see ByteArrayAsset anywhere in the inheritance chain within my version:
away3d.materials.methods.TerrainDiffuseMethod
away3d.materials.methods.BasicDiffuseMethod
away3d.materials.methods.LightingMethodBase
away3d.materials.methods.ShadingMethodBase
mx.core.ByteArrayAsset is an Adobe class.
There's a NormalizeSplats Pixel Bender linkage, but I did not see any Normalize Kernel.
I'd recommend grabbing the Broomstick ZIP package - I had no issues building the SWC with Flash Builder targeting Flash Player 11.