ciruman / quarkfx Goto Github PK
View Code? Open in Web Editor NEW"A proton is composed of two up quarks, one down quark and the gluons that mediate the forces "binding" them together." Wikipedia
License: BSD 3-Clause "New" or "Revised" License
"A proton is composed of two up quarks, one down quark and the gluons that mediate the forces "binding" them together." Wikipedia
License: BSD 3-Clause "New" or "Revised" License
`
package com.gluonapplication;
import java.util.Optional;
import com.gluonapplication.controls.HomeController;
import com.gluonhq.charm.glisten.application.ViewStackPolicy;
import com.gluonhq.charm.glisten.visual.Swatch;
import com.zeiss.quarkfx.QuarkFXApplication;
import com.zeiss.quarkfx.platformindependant.IntentP;
import com.zeiss.quarkfx.viewhandler.ViewHandler;
import javafx.scene.Scene;
public abstract class Main extends QuarkFXApplication{
//IMPORTANT change the init method to this: (you can use the viewhandler to initialize your views)
@Override
public void initApp(ViewHandler viewmanager)
{
viewmanager.registerView(new HomeController());
viewmanager.setHomeView(HomeController.ID);
}
//IMPORTANT change the postInit method to this:
@Override
public void postInitApp(Scene scene){
//post init stuff here
Swatch.BLUE.assignTo(scene);
}
//IMPORTANT change your stop method (if you have one) to this
@Override
public void stopApp(){
//javafx's stop method (called when application closes)
}
//called when this app was launched via intent
@Override
public void handleIntent(IntentP intent){
//handle this intent please (intent is not null)
}
@Override
protected void startApp() {
// TODO Auto-generated method stub
}
}
`
here's my code on launching the tasks run , android am getting this exception
Exception in Application constructor
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
Caused by: java.lang.RuntimeException: Unable to construct Application instance: class com.gluonapplication.Main
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:907)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(LauncherImpl.java:182)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.InstantiationException
at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$161(LauncherImpl.java:819)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
... 1 more
Exception running application com.gluonapplication.Main
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.