Issue by running the JavaFX application in web browser

Our team was currently developing a desktop application that must now be executed in a web browser. Deployment was successful, but everything running in IE 8, the background color of the IE outside the scene (from the desktop application) comes from gray color. Background color of our app is white, that is why, this gives him a strange look. The strangest thing is when we run the url in IE8, the first page (login page) comes without the gray part, IE the entire window is white color. But after logging out, (the login page must be made visible) only the stage size is available in white and the rest of the window comes in the color of gray background. Please help solve this.

to answer your questions:

How to set the browser size according to the size of the stage

To resize the area at the request of a page web you can access the web page from within your app, and use javascript to get an application descriptor in the web page DOM and then set size to what you need.

See
http://docs.Oracle.com/JavaFX/2.0/deployment/javafx_javascript.htm#BCEIAGHE
and
http://docs.Oracle.com/JavaFX/2.0/deployment/javafx_javascript.htm#BCEIBFGD

How to get the handle of the size of the browser here?

For embedded application, you will get initial stage in the start() to the browser size allocated area.
And you can trick, I've referenced before resizing app if browser will change areas were awarded (due to the demands of the users).

However, I think that your question is different:

that, in the login page, the stage size is smaller than the size of the browser that we put everything in packaging

This means your app pop scene connection to first create and then fill the main stage?

Good app behavior is like:

If (runningEmbedded) {//see Tip 2.3.1 in the same guide
fill in light of the scene with something - background for example even as a web page or an image
}

popLoginPage();

Once the user fill out the main stage
populateMainStage();

And create all the assets for all stages of the init(). If at first you will only adding panels to the stages and creating new stages.
You may need to clear the "dummy" of the main stage before you fill out.

I hope this helps. If this isn't the case, please specify you app done in more details. What do you with step in the menu start, so how create you login and other stages.
What you the size of your application and what are the stage dimensions.

Tags: Java

Similar Questions

  • How can I keep only one instance of the javafx application at the same time?

    Hello
    How can I keep only one instance of the javafx application at the same time?
    Let not the user run the javafx application is running on your PC.

    Hello. This program does what you want. You can probably find a better solution.

    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileReader;
    import java.io.FileNotFoundException;
    import java.io.*;
    import java.nio.channels.FileLock;
    import javafx.application.Platform;
    import javafx.stage.WindowEvent;
    
    public class Simpleapp extends Application {
    
        public static void main(String[] args) {
    
            launch(args);
        }
    
        @Override
        public void start(Stage primaryStage) throws Exception {
    
            final File file = new File("flag");
            final RandomAccessFile randomAccessFile = new RandomAccessFile(file, "rw");
            final FileLock fileLock = randomAccessFile.getChannel().tryLock();
    
            System.out.print(fileLock == null);
            if (fileLock == null) {
                Platform.exit();
            }
    
            primaryStage.setTitle("Hello World!");
            Button btn = new Button();
            btn.setText("Say 'Hello World'");
    
            StackPane root = new StackPane();
            root.getChildren().add(btn);
            primaryStage.setScene(new Scene(root, 300, 250));
    
            primaryStage.setOnCloseRequest(new EventHandler() {
    
                @Override
                public void handle(WindowEvent arg0) {
                    try {
                        fileLock.release();
                        randomAccessFile.close();
                        System.out.println("Closing");
                    } catch (Exception ex) {
                        System.out.print(ex.getMessage());
                    }
    
                }
            });
    
            primaryStage.show();
        }
    }
    
  • Run the Air Application

    People,

    I'm new to Flex and decided to follow in the article of August EDGE "learn how to build your first application with Adobe Flex 3". I have a copy of Flex Builder 3 Professional (trial version not). The article comes to a point where it says to run the application. Be familiar with Eclipse, I guess that means that a click on the button to run. But nothing happens. I don't see any errors in the issues window pane so it should work fine? At some point I closed and he did it again and when you click on something he an indication, he was doing something, but she came back with a mistake on the Flash Player debug installed. (I remembered it recently, I installed Adobe Master Collection and thought that it may have replaced the version of debugger.) So, I went to Adobe and downloaded the debugger for my Mac to Intel processor and reinstalled. But when I click the icon run the Air application when main.mxml is selected, still nothing happens. I also noticed the clean option and ran that to rebuild things - but still no luck.

    Could someone please help to guide me in what I need to do to get my AIR application to compile and run in Flex Builder?

    Thanks in advance,
    Jack

    Check the config of .app file. Is set visible to true? What about width and height?

  • system is not able to run the Apple Application Support service

    I can't install itunes on windows 7 32 bit. Any suggestions on Apple Support do not work. The system is not able to run the Apple Application Support service. Any suggestiones?

    Can you post the error message you get when you try to install or launch iTunes?

    For general advice, see troubleshooting problems with iTunes for Windows updates.

    The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach.

    Review the other boxes and other support documents list to the bottom of the page, in case one of them applies.

    The more information box has direct links with the current and recent if you have problems to download, must revert to an older version or want to try the version of iTunes for Windows (64-bit - for older video cards) as a workaround for problems with installation or operation, or compatibility with third-party software.

    Backups of your library and device should be affected by these measures but there are links to backup and recovery advice there.

    TT2

  • How to run the HTTPDemo application?

    I use JDE 4.7 and tries to run the HTTPDemo application in the samples.jdw, using the default Simulator 9530.  But I can't seem to access the https://www.blackberry.com/go/mobile/samplehttps.shtml.  What should I do to make this work?  I have to Setup Wap Options in the application?  appreciated your help

    PJ

    Heya,

    You must have the MDS Simulator running.

    For more information, go to the help in the Blackberry Simulator. Contains information on this right to the = high)

    ~ James

  • Unable to run the following Wklds 1: [' Web server Tile0 could not start/finish: java specweb.jar']

    After you have installed the server model pre-built Web and then installation of Staf, jrockit and Specweb2005 1.2

    I try to run a Web server workload, and I get the following error:

    -


    20100630-16: 54:13 Info process: tile 0: Web server failed to start/finish. Re

    Tour: RC = 1, STAFResult = None

    20100630-16: 54:13 error Info: elapsed time too short, of tile 0 webserver run = 2

    2, length = 300

    20100630-16: 54:13 Info could not run the following Wklds 1: [' Web server Tile0]

    [could not start/finish: java specweb.jar']

    -


    Is there something I need to configure?

      • I tried to change the "Test.config" in the SPECweb2005\Harness, then get another .wrf as the attachment. **

    Thank you

    You should not change the Test.Config file.

    It seems that it cannot connect to your Web server.  Check that your Web server is running.  Check the logs at/usr/local/apache2/logs /.

    Also, make sure that you do not have a firewall running on your client.

  • Error running the same application

    Hello
    I was able to run the same application in another machine in another place.

    But when I run the app even here now, by putting the following host name instead of the IP address (I used when I ran the same application in another place) in the connection string.

    String url = "jdbc:oracle:thin:@ibmpc_may:1521:xe";

    (I have no problem to connect to this DB XE by here)
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ibmpc_may) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    )
    )

    But I had the problem below when you run the application itself.
    # Cannot run application app12 due to the deployment on IntegratedWebLogicServer error.
    [16: 09:42] # incomplete deployment. ####
    [16: 09:42] remote deployment failed
    [Application app12 interrupted and cancelled Server Instance IntegratedWebLogicServer]

    Either by the way, where is the log file? The host name that I used above may be the reason for the problem?

    Published by: user12233770 on May 10, 2011 16:23

    You can check with the removal of system folder?

    It will be in C:\Documents and Settings\utilisateur\Application Data\JDeveloper

  • Problem running the sample Application after installation patch set 4.0.2.00.07

    We just applied the fix 4.0.2.00.07 on our environment to TEST APEX4.0.
    Now, I can not run the sample application. "When I run the application, log in using either the administrator or the user of demo with the #lower_case_workspace_name #", the browser generates the following error message:

    ORA-06550: line 2, column 8: PLS-00201: identifier 'CUSTOM_AUTH' must be declared ORA-06550: line 2, column 1: PL/SQL: statement ignored
    ERR-10460 error cannot perform the function of verification of the authentication credentials.

    The sample application works very well on our DEV APEX 4.0.0.00.46 environment * without * the patch set 4.0.2.00.07.

    Does anyone have an idea how to solve this problem
    Thank you

    Hello

    Ensure that the CUSTOM_AUTH & CUSTOM_HASH functions exist in the scheme of the analysis of the sample application.

    CITY

  • Hi, Hello: I am trying to create a Web site and don't know what to do to display the content of my web browser to display full-screen itself without any empty space.

    Hi, Hello: I am trying to create a Web site and don't know what to do to display the content of my web browser to display full-screen itself without any empty space.

    If you are looking to exhaust the entire screen with content regardless of the size of the browser called sensitive sites and unfortunately that are not supported in Muse. However, you can have some content such as backgrounds, slideshows and videos be full width.

  • Publish everything in running the publishing application ATG - CRS Server. Unable to query the table 'das_id_generator '.

    Hello

    I use ATG version 10.2 and you have configured CRS application by IMC. All data import and deployments have been successful.

    Applications of short (MDEX 6.4.1, CASE 3.2.1 6.4.1.2, tools and Framework 3.1.2 platform services) are running: port 8006, 8500, race 8888.

    Now MY PROBLEM IS in TWO PARTS:

    PART 1)  Ran the store on jboss, has worked well, core application started without any error.  When trying to load the homepage, get following error message:

    16:42:25, 926 full repository INFO [SEORepository] SQL boot

    16:43:32, 653 ERROR [DynamoServlet]

    CAUGHT AT:

    Container: ATG.servlet.jsp.ContainerJspException: Cannot find the named component: / atg/registry/Slots/HomeTheme; Source: javax.servlet.ServletException: Cannot find the named component: / atg/registry/Slots/HomeTheme

    at atg.taglib.dspjsp.ParamTag.doStartTag(ParamTag.java:419)

    at org.apache.jsp.navigation.gadgets.homePagePromotions_jsp._jspx_meth_dsp_005fparam_005f0(homePagePromotions_jsp.java:1021)

    at org.apache.jsp.navigation.gadgets.homePagePromotions_jsp._jspService(homePagePromotions_jsp.java:219)

    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)

    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)

    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)

    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:543)

    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:480)

    at atg.servlet.WrappingRequestDispatcher.include(WrappingRequestDispatcher.java:123)

    at atg.taglib.dspjsp.IncludeTag.doEndTag(IncludeTag.java:883)

    at org.apache.jsp.index_jsp._jspx_meth_dsp_005finclude_005f1(index_jsp.java:633)

    to org.apache.jsp.index_jsp.access$ 1 (index_jsp.java:622)

    to org.apache.jsp.index_jsp$ Helper.invoke1 (index_jsp.java:685)

    to org.apache.jsp.index_jsp$ Helper.invoke (index_jsp.java:711)

    at org.apache.jsp.tag.web.store.pageContainer_tag._jspx_meth_c_005fwhen_005f1(pageContainer_tag.java:2757)

    at org.apache.jsp.tag.web.store.pageContainer_tag.doTag(pageContainer_tag.java:812)

    at org.apache.jsp.index_jsp._jspx_meth_crs_005fpageContainer_005f0(index_jsp.java:598)

    at org.apache.jsp.index_jsp._jspx_meth_dsp_005fpage_005f1(index_jsp.java:565)

    at org.apache.jsp.index_jsp._jspService(index_jsp.java:127)

    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    ...........................

    ...........................

    ...........................

    ...........................

    At this point, the CRS page opens but no short content. Don't load no registration, no image on the home page does display, NO SEARCH BOX displayed in the header.

    PART 2)  On top of that when I try to run the server pubishing on JBOSS, start does'nt server and responds to error. If the das_id_generator table exists in DB for all 4 patterns.

    16:09:41, 082 INFO [ScreenLog] with logging of external for debug messages and trace kernel to avoid hidden kernel logging information. Set the property /atg/dynamo/service/logging/ScreenLog.useInfoForDebug to false nucleus to use external instead trace and debug logging.

    16:09:41, 199 INFO [Version] HV000001: Hibernate Validator 4.3.1.Final

    16:09:41, 748 Truncating WARN [ClusterBroadcaster] serviceProperties "commandLineModules" key value

    16:09:42, size INFO [STDOUT] 345 (ERR_QUERY_TABLE, das_id_generator

    16:09:42, 351 ERROR [IdGenerator]

    CAUGHT AT:

    Container: ATG.service.IdGen.IdGeneratorException; Source: Container: ATG.service.IdGen.IdGeneratorException: Cannot query the table 'das_id_generator '. Please make sure that the table exists and is accessible before you start this service. ; Source: Java.Sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

    at atg.service.idgen.PersistentIdGenerator.initialize(PersistentIdGenerator.java:389)

    at atg.service.idgen.AbstractSequentialIdGenerator.doStartService(AbstractSequentialIdGenerator.java:643)

    at atg.nucleus.GenericService.startService(GenericService.java:561)

    at atg.nucleus.NucleusNameResolver.startService(NucleusNameResolver.java:1726)

    at atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1397)

    at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:928)

    at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:667)

    at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:648)

    at atg.nucleus.NucleusNameResolver.resolveName(NucleusNameResolver.java:493)

    at atg.nucleus.ConfigurationRef.getValue(ConfigurationRef.java:119)

    at atg.nucleus.SimpleComponentState.setBeanProperty(SimpleComponentState.java:403)

    at atg.nucleus.SimpleConfigurationState.saveToBean(SimpleConfigurationState.java:240)

    at atg.nucleus.SimpleConfigurationState.configureBean(SimpleConfigurationState.java:263)

    at atg.nucleus.BeanConfigurator.configureBean(BeanConfigurator.java:297)

    at atg.nucleus.PropertyConfiguration.configureService(PropertyConfiguration.java:984)

    at atg.nucleus.SingleNucleusConfigurator.configureService(SingleNucleusConfigurator.java:84)

    at atg.nucleus.NucleusNameResolver.configureService(NucleusNameResolver.java:1643)

    at atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1368)

    ........................

    ........................

    ........................

    An early response would be really useful because we have demo in 10 days.

    Kind regards

    Ben Milot

    Thank you for this comment.

    I had created a fresh scheme for publication but the jboss was still pointing to the old.

    I've updated this pointers in file @ /server/ atg atg - ds - ds.xml. Worked like a charm!

    If 2nd EDITION solved.


    The QUESTION 1 depended on question 2. Once I ran publishing and completed the full deployment on ICC, 1st edition got resolved.

    Thanks to shaik and Grando

    Kind regards

    Ben Milot

  • When I run the mozilla application I get not found d3dx9.dll...

    Whenever I have launch Mozilla firefox I get a missing d3dx9.dll error please reinstall and try again once I did it like 4 times its still does not, all this happened when I installed a new windows again and I wanted to install mozilla please someone help because this is my fav browser.
    This is where I downloaded from: http://www.filesmag.com/2014/12/mozilla-firefox-web-browser-free.html

    This DLL is part of graphic subsystem of Windows. After you have reinstalled Windows, have you run Windows Update to get the fixes for Windows 7, or at least Service Pack 1 million? It is possible you need to do that first before Firefox works normally.

    During this time, it is possible that Firefox will run in secure Mode, since in this mode Firefox does use all the features of graphics on your system. To start Firefox in Safe Mode, try the SHIFT key when starting Firefox now.

    A small dialog box should appear. Click on 'Start mode safe' (not update).

    You started at the moment he gets?

  • How can I implement a comfirmation window when closing the javafx applications?

    Hi, guys
    I would add a confirmation window when the user closes my javafx application, if the user clicks Yes, I close the application, so no, I wouldn't close it, how can I implement this feature?
     
    primaryStage.setOnCloseRequest(new EventHandler<WindowEvent>(){
    
                   @Override
                   public void handle(WindowEvent arg0) {
                        try
                        {
                             //todo
                        }
                        catch(Exception ex)
                        {
                             System.out.print(ex.getMessage()+"\r\n");
                        }
    
                   }
            });

    Hello. Here is an example:

    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.geometry.Pos;
    import javafx.stage.*;
    import javafx.scene.*;
    import javafx.scene.paint.Color;
    import javafx.scene.layout.*;
    import javafx.scene.control.*;
    
    public class ModalDialog {
    
        public ModalDialog(final Stage stg) {
         final Stage stage = new Stage();
            //Initialize the Stage with type of modal
            stage.initModality(Modality.APPLICATION_MODAL);
            //Set the owner of the Stage
            stage.initOwner(stg);
            Group group =  new Group();
            HBox hb = new HBox();
             hb.setSpacing(20);
            hb.setAlignment(Pos.CENTER);
            Label label = new Label("You are about to close \n your application: ");
            Button no  = new Button("No");
    
            no.setOnAction(new EventHandler() {
    
                public void handle(ActionEvent event) {
                       stage.hide();
                }
            });
            Button yes  = new Button("Yes");
            yes.setOnAction(new EventHandler() {
    
                public void handle(ActionEvent event) {
                       stg.close();
                }
            });
    
             hb.getChildren().addAll(yes, no);
             VBox vb =  new VBox();
             vb.setSpacing(20);
             vb.setAlignment(Pos.CENTER);
             vb.getChildren().addAll(label,hb);
            stage.setTitle("Closing ...");
            stage.setScene(new Scene( vb, 260, 110, Color.LIGHTCYAN));
            stage.show();
    
        }
    
    }
    

    Test:

       import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    import javafx.stage.*;
    
    /**
     *
     * @author Shakir
     */
    public class ModalTest extends Application {
    
        /**
         * @param args the command line arguments
         */
        public static void main(String[] args) {
            Application.launch(ModalTest.class, args);
        }
    
        @Override
        public void start(final Stage primaryStage) {
            primaryStage.setTitle("Hello World");
            Group root = new Group();
            Scene scene = new Scene(root, 300, 250, Color.LIGHTGREEN);
    
           primaryStage.setOnCloseRequest(new EventHandler(){
    
                   @Override
                   public void handle(WindowEvent arg0) {
                                    arg0.consume();
                        try
                        {
                         ModalDialog md = new ModalDialog(primaryStage);
                                    }
                        catch(Exception ex)
                        {
                             System.out.print(ex.getMessage()+"\r\n");
                        }
    
                   }
            });
    
            primaryStage.setScene(scene);
            primaryStage.show();
        }
    }
    
  • where to find data to run the sample applications

    Hello

    I loaded the sample applications, but there is no data

    where is it possible to find a script for LOAS in demonstration base data

    FOR EXAMPLE: to use the sample application tree, we need data in EBA_DEMO_TREE_PROJECTS

    concerning

    user_fr_cg63 wrote:

    I loaded the sample applications, but there is no data

    where is it possible to find a script for LOAS in demonstration base data

    FOR EXAMPLE: to use the sample application tree, we need data in EBA_DEMO_TREE_PROJECTS

    Data should be created automatically on the installation of the application using the function to support objects .

    If I install the application of tree-sample on apex.oracle.com then 9 lines are created in EBA_DEMO_TREE_PROJECTS.

    Lack of data suggests that there was a problem during the installation. You can check this by clicking on the icon to support objects on the application home page, then install view summary in the taskbar on the right.

  • issue by downloading the lightroom application

    I tried to download the lightroom application that I bought, but its does not download after 40%. get this msg 'file:///tmp/96B8D6D7-DBC4-4E0F-803E-7B824C9D28C1/Summary.htm '.

    Error to 40%? Assume that you install Adobe Creative Cloud rite?

    You bought subscription or serial number?

    If his essay number series to download at the bottom of the link:

    https://helpx.Adobe.com/Lightroom/KB/Lightroom-downloads.html

    Let us know that if you had purchased subscription, also it will be helpful if you can post a screenshot of the installation window.

  • JavaFX with GWT Web browser

    I use a web app (I use spit, a JBoss rules management system), which has a front-end GWT, inside my JavaFX application. It works almost perfectly except for one thing, there is a button in the web application that calls a GWT Window.confirm () function which opens a confirm dialog box based on a browser. The question, I think, is that JavaFX seems not to be able to manage this Window.confirm call. I don't know if the call is not right past or that JavaFX is not a pop up like Firefox or IE dialog box. Any ideas on what to do from here?

    You have access to JavaFX WebEngine? If Yes, try to install a Manager to confirm:

    webEngine.setConfirmHandler (new callback() {}
    @Override
    public Boolean call (String message) {}
    Do something
    ...
    Returns true; Return true or false
    }
    });

    You'll need display the dialog go you in the Manager.

    Published by: Vassili Baranov on November 3, 2011 08:45

Maybe you are looking for