Activity for Christopher Deckers

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    https://download.eclipse.org/eclipse/downloads/index.html Click on a release, like "latest release" (4.35 as of now). Scroll to the bottom of the page to the section "SWT Binary and Source".

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Latest stable as of now: https://download.eclipse.org/eclipse/downloads/drops4/S-4.35RC2-202502280140/ Check the bottom of the page.

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Carlos, Please next time create a new post for your question. As for your question, on Windows, the default web browser engine is Internet Explorer which is now deprecated. If you use a recent version of the SWT library and if you use the latest preview of DJ Native Swing, you can force the use of the Edge runtime either by passing "JWebBrowser.useEdgeRuntime()" to the JWebBrowser constructor or using the system property "nativeswing.webbrowser.runtime=edge". On some systems, you need to explicitly...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Andrey, DJ Native Swing uses the SWT library internally. SWT Edge implementation is based on the WebView2 component: https://www.eclipse.org/swt/faq.php#howuseedge You would need to find a way to solve the SSO issue with the WebView2. Here is a hint: https://github.com/MicrosoftEdge/WebView2Feedback/issues/550 I have seen mentions of the environment variable "WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS" which could be set to "--enable-features=msSingleSignOnOSForPrimaryAccountIsShared", but it is unclear...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, Sorry for the late reply... For now, this is just a warning. This is due to the module system introduced in Java 9. Perhaps I could pass "--add-opens=java.base/java.lang=ALL-UNNAMED" when I spawn the process responsible for the native stuff to get rid of the warning, but then I also need to test the version of Java to not use that option if < Java 9. Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    As I indicated in my last post, you need to force the use of the Edge runtime on Windows. This can be done using a system property. Perhaps the problem is that you are not using the lastest preview version, older (and official) version did not support Edge.

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    On Windows, the default web browser engine is Internet Explorer which is now deprecated. If you use a recent version of the SWT library and if you use the latest preview of DJ Native Swing, you can force the use of the Edge runtime either by passing "JWebBrowser.useEdgeRuntime()" to the JWebBrowser constructor or using the system property "nativeswing.webbrowser.runtime=edge". That being said, the Edge runtime does not allow all the API of the JWebBrowser but it works well to view websites. Hope...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, I don't think you have the relevant JAR files in your classpath. You need: - NativeSwing.jar - NativeSwing-SWT.jar - The SWT library conforming to your platform (64 bit, Windows, etc.) Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on ticket #81

    Hi Thomas, IE retires, but I don't know if the COM component that SWT uses will cease to work. I think I read that it will continue to work for several years. About the cookies that do not work, this is because Edge has some limitations and thus SWT cannot implement all APIs: https://www.eclipse.org/swt/faq.php#edgelimitations You are saying that something is not working with JDK8. What exactly is not working? Cheers, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on ticket #23

    Hi, Is it just a message in the console or it is not working at all? -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, Iposted my reply in the bug: https://sourceforge.net/p/djproject/bugs/80/ Hope this helps! -Christopher

  • Christopher Deckers Christopher Deckers modified ticket #80

    Using JWebBrowser from installed app

  • Christopher Deckers Christopher Deckers posted a comment on ticket #80

    Hi, I am not too familiar with the jpackage tool. But one thing is sure: the native side that is manipulated by the Swing side needs to be in its own VM, so a separate java process is started. I don't know how a new VM can be spawned from an application packaged this way. If you do have a way to start a VM, for example by shipping the java exe, etc., then I suppose you could set a different process factory if the default one is not suitable: NativeInterface.getConfiguration().setPeerVMProcessFactory(MyPeerVMProcessFactoryImplementation)...

  • Christopher Deckers Christopher Deckers modified ticket #78

    Windows DPI Scaling Problem

  • Christopher Deckers Christopher Deckers posted a comment on ticket #78

    I added the version "DJNativeSwing-SWT-1-0-3-20220201.zip" that applies the scaling factor to the mouse coordinates. There are other parts of the API that might not respect scaling, but which are probably not used anymore, such as printing a native component to an image. Unless someone actually needs that, I don't intend to fix scaling there. In the case of printing to an image, it is unclear how to solve it: should we assume that the passed in image on which to print has the unscaled bounds? Etc....

  • Christopher Deckers Christopher Deckers posted a comment on ticket #78

    Hi, The bounds occupied by the web browser should be fixed in version: 1.0.3-20220131 Please try with "DJNativeSwing-SWT-1-0-3-20220131.zip". I haven't done any conversion of the mouse coordinates for mouse events. I suppose that I would have to convert the physical pixels into conceptual pixels so that if there are physically 500 pixels Swing should receive an event for 400 pixels if the scaling factor is 125%. I am not sure yet if this could cause other problems... Any opinion? Cheers, -Christ...

  • Christopher Deckers Christopher Deckers modified ticket #79

    JWebBrowser window not maximized

  • Christopher Deckers Christopher Deckers posted a comment on ticket #79

    Hi, This is fixed in version: 1.0.3-20220131 Please try with "DJNativeSwing-SWT-1-0-3-20220131.zip" if it fixes your issue. Cheers, -Christopher

  • Christopher Deckers Christopher Deckers modified a comment on discussion Help

    Hi Livio, Finally some good news! Thanks for your help! :) -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Livio, Finaly some good news! Thanks for your help! :) -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Livio, I did a fix for the scaling factor. Could you try the version "DJNativeSwing-SWT-1-0-3-20220131.zip" and let me know if it helps? Cheers, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Livio, First, we should confirm that it is using the Edge browser (meaning that the system property was taken into account). One way to do so is to right click in the web page that is displayed, the menu is very different if it is Edge. It is a pity that I cannot reproduce the problem to find a solution at my end... If it is indeed Edge and you still have the problem, could you give me more information? - What version of Java? - What is your screen resolution? - What is the scaling factor in your...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Livio, I am curious: have you tried upgrading the SWT library? https://download.eclipse.org/eclipse/downloads/drops4/R-4.22-202111241800/#SWT If you have and the bug is still present, you could try switching to the Edge runtime, to see if that makes a difference. To do so, you first have to make sure that the WebView2 component is installed: https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section And you need to launch the application with that system property set before...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Well, check the zoom-related settings I mentioned, because in the end the way the PDF is displayed is by leveraging Internet Explorer as an integrated viewer. Cheers, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Livio, If you launch standalone Internet Explorer, is the zoom level set to 100%? If you check your Windows display settings, do you have a zoom level other then 100%? I have seen problems related to High DPI screens (and thus the use of these zoom factors) with Internet Explorer. I don't think Internet Explorer will ever support that properly. When time permits, I will investigate if the SWT library (which I integrate to make the browser possible in Swing) has made progress with other renderers...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, I suspect a network configuration change, or an antivirus that is interfering with the internal communication channel. Did you try to turn off the antivirus and/or firewall to check if they are the culprit? Cheers, -Christopher On Thu, Oct 14, 2021 at 3:51 PM Michael Garcia mike-a-garcia@users.sourceforge.net wrote: We still can't figure out what's going on. Are there any settings that we can modify that might make this issue go away? JWebBrowser crashes on Windows 10 https://sourceforge.net/p/djproject/discussion/671154/thread/d23e632e07/?limit=25#62f1...

  • Christopher Deckers Christopher Deckers posted a comment on ticket #78

    Hi, Are you using a recent version of the SWT library? I think the old version that I ship had many problems with High DPI... Could you try and let me know if some bugs are still present? I think the latest for your platform is "swt-4.19-win32-win32-x86_64.zip" which can be found here: https://download.eclipse.org/eclipse/downloads/drops4/R-4.19-202103031800/ Cheers, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Devi, I answered your answer on the support section: https://sourceforge.net/p/djproject/support-requests/21/ Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on ticket #21

    Hi Devi, I think that if you use a recent version of SWT and if a Webkit browser is installed, then that would be used. But... I don't know the state of this support. Java client applications are less and less developed, so this project might be getting a bit obsolete. To force the use of Webkit, you might have to set this system property: nativeswing.webbrowser.runtime=webkit The requirements for SWT to load Webkit are explained here: https://www.eclipse.org/swt/faq.php#howusewebkit Hope this helps,...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Christian, DJ Native Swing is a special project which mixes native components with Swing. This requires certain steps which are specific to this native integration, among which opening the interface and running events in the main of the application. For example, take a look at this file: https://github.com/Chrriis/DJ-Native-Swing/blob/master/DJNativeSwing-SWTDemo/src/chrriis/dj/nativeswing/swtimpl/demo/examples/webbrowser/SimpleWebBrowserExample.java If event pumping is not done right, it is possible...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Ram, The zip file containing the distribution also contains the sources. But it is unlikely to be of any use to solve your problem (see answer to point 2. below). In order to include a native web browser, DJ Native Swing requires 3 parts: the API with native interactions with a web browser, the integration framework to include this API in Swing and a nice web browser API in a Swing component. The first part is not developped by DJ Native Swing but by SWT (the native toolkit used by eclipse). If...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, Is there such a thing as a Flash player exe? For me, Flash is a plugin for web browsers, and does not really exist without one. -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, i disabled flash object in IE browser There are two instances of IE: the 64-bit version and the 32-bit one. If your JVM is 32-bit (using the 32-bit swt library), then you are using the 32-bit version. I am not sure, but maybe you disabled the plugin in the wrong instance. Second thing is, when i checked the JFlashPlayer.java code, i could see the code actually loads some parameters This was the standard way of declaring a Flash object. I have no idea how IE reacts to these, but this is IE knowledge...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    As long as IE is present on the machine, I guess it is possible to install the latest Flash plugin and it would work. But of course, no guaranty.

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, Setting this property after the JVM has started is too late if I remember correctly. Hence the need of a whitelisting of this property. Saying that JXLayer works fine is a big word: nothing can cover a native component. Try also: chrriis.dj.nativeswing.common.UIUtils.setComponentTransparencyHint(jxLayer, TransparencyType.TRANSPARENT_WITH_OPAQUE_CHILDREN); I am not sure how to help further diagnose (I do not have much time right now to test it). Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Ramachandran, JFlashPlayer in DJ NativeSwing is a browser-based component. It means that it loads a native web browser (IE on Windows), loads the Flash plugin and makes the integration as smooth as possible. I am not sure what EOL means in this context: as long as the plugin is present on the machine and that IE (or just its rendering engine?) is still there, then this integration works. If one of these native components break, there is little that DJ NativeSwing can do to fix it. Hope this helps,...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, If my analysis of the IcedTea project is correct (https://github.com/AdoptOpenJDK/IcedTea-Web): Constant "sun.awt.disableMixing" is missing from the list of constants: common/src/main/java/net/adoptopenjdk/icedteaweb/JavaSystemPropertiesConstants.java Thus it is unlikely to be whitelisted in IcedTea code. It is probably missing in: core/src/main/java/net/adoptopenjdk/icedteaweb/jnlp/element/security/SecurityDesc.java Oracle JDK had the same issue long ago and that got resolved: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6851271...

  • Christopher Deckers Christopher Deckers posted a comment on ticket #20

    Hi Vasant, I wish this black screen issue were fixed. Unfortunately, only few users use that feature and it can be quite time consuming to fix. Moreover, there is no guarantee that I would find a fix (native stuff, especially when mixing toolkits, has its quircks). I would need to find some free time to look at it, but am quite busy on other things at the moment... Do not hesitate to contact me by e-mail to discuss the subject further: chrriis (at) gmail (dot) com. -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    And also, out of curiosity, which commercial solution have you tried with better results? :)

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, Is there a test case showing the problem that I could try? There are various compatibility settings for IE that have an impact on the page rendering. Have you tried them? Please refer to https://www.eclipse.org/swt/faq.php#browsernativeie When the settings are meta tags, do you have a way to change the pages to add them, at least to see if they would make a difference? If they do, could these tags be added to the BI product if you contact the authors? Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, On which system is that happening? Windows? On Windows, SWT uses Internet Explorer. Have you tried to see if this website works with Internet Explorer? Internet Explorer is less and less supported, so unless SWT decides to implement a new runtime (e.g. webkit) there is little that can be done... Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on ticket #77

    Hi, I am not sure what the reason could be. Maybe the graphics driver is important and in your case got updated. Or maybe the web browser got updated and the SWT printing feature does not work with that version. You could try to alter your graphics driver and see if that makes a difference... In any case, I am not sure how I could help you further as it seems the problem is in SWT itself... Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, I don't think the "Jar in Jar" packaging method which you are using would work. I would recommend using the more traditional approach where all the JAR files are alongside the main JAR file (or in a subfolder) and the main JAR file manifest specifies these other JARs in its classpath. Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, How do you build you JAR? Is it a standard JAR with all the necessary libraries in the classpath (including the appropriate version of SWT for your platform/architecture) or is it a big fat JAR with class loader magic? Just so you know, I built several applications shipped as JAR files and they work well. Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, I miss some other traces, especially the port detection ones... Cheers, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, I don't know what difference OpenJDK makes... Could you try to activate these system properties: -Dnativeswing.peervm.debug.printStartMessage=true -Dnativeswing.peervm.debug.printCommandLine=true -Dnativeswing.localhostAddress.debug.printDetection=true -Dnativeswing.localhostAddress.debug.print=true -Dnativeswing.webserver.debug.printPort=true ... and then check what is printed in case when it works and in case it does not? Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Robin, Did you find a solution to your problem? If not, you could activate some properties to get more information in the console. Just set these properties programmatically as the first thing in your main method: System.setProperty("nativeswing.localhostAddress.debug.printDetection", "true"); System.setProperty("nativeswing.peervm.debug.printCommandLine", "true"); There are other properties, mentioned in files that are part of the distribution. Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    The rules of SWT apply, so refer to the possibilities of SWT on your target platform. Chromium is not supported as far as I know, though there were discussions on a SWT-related mailing list about an ongoing project to develop it. Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Elina, Which version of SWT? Which architecture (64/32bit)? Which Java VM architecture (64/32bit)? Is you environment PATH variable properly defined (paths with spaces are quoted)? I remember someone having a problem caused by Windows getting confused and using an incorrect Java version because of that. And indeed, if you temporarily deactivate the Windows firewall, is the problem solved? Cheers, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, I think using XULRunner API you can tweak Cookie behavior, but this is hard to do. In any case, cookie handling is manged by the renderer itself, unless SWT does some special tricks. But note that SWT deprecated the use of XULRunner, so I am not sure how you can solve your problem. Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, Honestly, I have no idea. All I can say is that the runtime that is embedded is not the full application and it is managed by SWT. Plugins in IE generally work, but there are differences between the 32-bit and 64-bit implementation (try with a different JVM and corresponding SWT version). Popup blocking is an element I don't know. Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, Your use case is not very clear... Is the windowClosing event expected for child windows? If so, you should add a listener to the newly opened windows. Are the windows opened with modality flags? I know that there are some issues related to modality. For example: https://bugs.eclipse.org/bugs/show_bug.cgi?id=221235 Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, DJ Native Swing embeds a native runtime, which controls most aspects, including language. It does not do anything with certificate as this is handled by that native runtime. You would have to register those certificates in the native runtime (files in XULRunner, whatever mechanism for Internet Explorer 32 bit or 64 bit, etc.). You cannot change the user agent until SWT implements that feature request: https://bugs.eclipse.org/bugs/show_bug.cgi?id=347088 Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, Thanks for letting us know! SWT team had various issues related to high DPI. It is nice to see some progress in that area. -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, I am not sure what you mean by "the runner you are using". If threading is done right (as per instructions or copying an example from the demo application), then speed should be comparable to that of the native web browser that is used for your target platform (e.g. Internet Explorer on Windows). Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Parag, Which version of Java are you using? With native stuff involved, you might have issues with Java 9+... As for this architecture, the main problem will be to have SWT to run there, and JNA. I don't know if SWT has an implementation for that platform, and which native browser it would have. The project is build with Eclipse, where I have one workspace containing all the projects. Then I invoke the build file (ant) from the context menu. Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, Threading and initialisation steps are important for DJ Native Swing. Could you try a simple example first? Look in the distribution for: src\DJNativeSwing-SWTDemo\chrriis\dj\nativeswing\swtimpl\demo\examples\webbrowser\SimpleWebBrowserExample.java You should try the demo application that is part of the distribution, it will show you all sorts of capabilities and best practice. Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on ticket #14

    This error means you do have a 32-bit SWT in your classpath: either you have 2 SWT versions in the classpath and the first one found is 32-bit, or the downloaded SWT is not 64 bit... -Christopher

  • Christopher Deckers Christopher Deckers modified ticket #14

    Make it work on 64-Bit Linux

  • Christopher Deckers Christopher Deckers posted a comment on ticket #14

    Hi, All you need is the 64 bit SWT for your operating system (Linux in your case). Download it and replace the one that is shipped. Note that the architecture needs to match the JVM one (32 bit vs 64 bit). Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, Could that be related (if so: vote, add test cases, etc.)? https://bugs.eclipse.org/bugs/show_bug.cgi?id=493667 Note that SWT seems to have various HiDPI problems. e.g.: https://bugs.eclipse.org/bugs/show_bug.cgi?id=508456 Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, Just to make sure, are you calling NativeInterface.initialize() as the first thing of your main method, and is the main method NOT in a class that inherits AWT/Swing classes? Apart from that, it could be due to focus issues (again). Focus handling clashes between the native focus handling (for the web browser) and the Java focus handling. Some users found workarounds appropriate to their setup. For example, one user found that disabling and re-enabling the web browser was restoring focus as expected,...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, I don't speak portuguese, so I will answer in English... First, I miss some context: are you the developer of this application or just a user? Are you in control of the version of Java that is used? How is the application launched (standalone application, WebStart, etc.)? You should update your version of SWT. You should make sure that there is no anti-virus program or firewall blocking the communication between the 2 processes used by DJ Native Swing. You could check your proxy settings, in...

  • Christopher Deckers Christopher Deckers posted a comment on ticket #19

    Hi, In some containers, the spawned JVM cannot reference the JAR files. For that reason, it uses a proxy class loader. I am not sure why under certain circumstances this is blocked... The extraction of that main proxy class failed to get extracted? An antivirus or firewall put some files in quarantine? Cheers, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, As far as I know, options are limited to interact with IE compatibility... https://www.eclipse.org/swt/faq.php#browsernativeie Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Martin, Fiddling with focus in Native Swing is sensitive, so I am not sure I want to touch that code. That being said, you can make your own modifications (just get the sources, modify what you want and create a JAR file). Finding a good combination for focus behavior is a matter of taste, so it is hard to find a global solution. Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, Unfortunately, focus is not behaving perfectly when mixing Swing and SWT. Check this recent post for another example: https://sourceforge.net/p/djproject/discussion/671154/thread/0c1891ae/ Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, First, you should place your main method outside of an AWT component subclass. If I remember correctly, having the main in an AWT subclass makes the NativeInterface initialization come after some AWT initializations, which is not a good idea on some Operating Systems. As to the code you posted, I think it is a usage issue of the Swing layouts. For example, if you replace: mainPanel = new javax.swing.JPanel(); with: mainPanel = new javax.swing.JPanel(new BorderLayout()); and remove: mainPanel.setLayout(mainPanelLayout);...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, Sorry for the late reply... You should download the appropriate version of SWT for your target platform. Go to the following page, and scroll down to the SWT section: http://download.eclipse.org/eclipse/downloads/drops4/R-4.7-201706120950/ Your version should be one of the "Linux" (likely x86) and 32 bit or 64 bit depending on whether you use a 32 bit or 64 bit JVM. Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, Focus, again... the usual culprit. I don't have solutions, mostly workarounds with trade-offs... Maybe related bugs (with much to read in some comments): https://bugs.eclipse.org/bugs/show_bug.cgi?id=84532 https://bugs.eclipse.org/bugs/show_bug.cgi?id=353683 https://bugs.eclipse.org/bugs/show_bug.cgi?id=372595 I remember long time ago having issues with certain characters in a web page and for reasons I forgot we solve them adding this header in the HTML: <meta http-equiv="Content-Type" content="text/html;...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Soundar, Sorry about the late reply... No, I have no idea what the issue is. Maybe it is a compatibility issue, in the sense that the compatibility mode IE is using cannot render that menu. There are ways to adjust the compatibility mode though. If not using a recent SWT, you could try to upgrade. Else, you could check how to specify the compatibility mode (by tag if you control the HTML of the page, or registry key, etc. ): https://www.eclipse.org/swt/faq.php#browsernativeie Hope this helps,...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, Sorry for the late reply... IE has lots of quircks, and I have filed many bugs for odd behaviors like this. I think your approach of creating multi-interface version of Native Swing is a good workaround, if you don't end up having problems with port collisions, etc. I hope my code was not too scary :) As for a real solution, we are a bit stuck by SWT or IE. Maybe if they switch to Chromium or whatever other modern engine we could make the switch and forget about these bugs (for a whole new category...

  • Christopher Deckers Christopher Deckers posted a comment on ticket #19

    Hi, When the program starts, it detects which network interface works and can be used to communicate. Maybe you have an odd rule in your firewall or an antivirus with aggressive behavior, somehow slowing down or blocking data being exchanged by the components of the library. If you want to get details of the address that is used, you could activate this system property and look in the console: -Dnativeswing.localhostAddress.debug.printDetection=true Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, I wonder if this discussion is related to this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=134646 What is the reason for that becoming slowly setHTML operatins on all new generated or existing JBrowser instances after viewing a complex page? I guess I retains all sorts of resources. This could be to manage history (back/forward), who knows. Because the same interface and process is used, it can slow down everything. Is it hard to implement or bad/dangerous practice to generate a new peer vm...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    DJ Native Swing uses the SWT library to embed a native web browser. The SWT library itself requires a different version per OS (Windows, Linux) and also per architecture (32 bit, 64 bit). So, this means you need to use a different "swt.jar" if you are on a 32 bit or 64 bit platform. You can create different bundles, or you can make a batch file that detects the platform you are on and launches the application setting the appropriate classpath (to reference the right swt.jar file). Hope this helps,...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    DJ Native Swing uses the SWT library to embed a native web browser. The SWT library itself requires a different version per OS (Windows, Linux) and also per architecture (32 bit, 64 bit). So, this means you need to use a different "swt.jar" if you are on a 32 bit or 64 bit platform. Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Soundar, First, you should use a recent version of SWT, because old versions of SWT were blocking IE to using version 7. Now, if the web page does not include a compatibility directive, it is possible to specify a system property setting the compatibility level: -Dorg.eclipse.swt.browser.IEVersion=7000 Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Soundar, If you use a 64 JVM, then you use 64 bit SWT, which uses 64 bit IE. Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Soundar, I am not sure I understand what "the hyperlink is not showing the dropdown when I hover" means. Do you mean the popup menu when you right-click? Cheers, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, The web browser component returns meaningful results only when it is ready, or else it puts the calls into a list which are run when it gets ready (but returns immediately with null results). Thus, you need to explicitely process your code when the component is ready: webBrowser.runInSequence(new Runnable() { public void run() { // Your code here, which gets called when component is ready. } }); Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on ticket #18

    Hi, Then maybe try setting the properties before calling NativeInterface.initialize(). If that does not work, set that code as first line of main method. Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, Have a look at the "Web Browser > Navigation Control" example in the demo application. As a general rule, the demo application shows all sorts of components as well as certain advanced features of the library. Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, Focus handling is particularly complex between Swing and the native component... Maybe you need to delay sending the keys. Something like: public void actionPerformed(ActionEvent e) { try { webBrowser.getNativeComponent().requestFocus(); SwingUtilities.invokeLater(new Runnable() { public void run() { Robot r = new Robot(); r.keyPress(KeyEvent.VK_A); r.keyRelease(KeyEvent.VK_A); } }); } catch (Exception e) { } } Perhaps this does not even work and you would have to create a thread waiting a bit...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Tang, Maybe if your buttons are not focusable they would not get the focus (button.setFocusable(false)). If not, maybe you can set the focus in the browser after a click. Something like: button.addActionListener(new ActionPerformed() { public void actionPerformed(ActionEvent e) { // Here your click handler, followed by: browser.getNativeComponent().requestFocus(); } }); Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Andrea, As far as I know, SWT has not implemented Edge as a possible engine for the SWT Browser. So no choice but to stick to IE for the time being... Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, First, I would recommend to use a much more recent version of SWT. Now, I don't know under which variants of Linux SWT is implemented, so maybe you could try a pure SWT implementation. You can try this example, with SWT in your classpath: http://nextencia.net/BrowserSWT.java If that works, you can then try a mix of SWT and AWT to see if that works: http://nextencia.net/SWTAWTExample.java Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, I guess you would have to execute some Javascript on the page when it is loaded to perform the click on the button or invoke the form submission. Does that answer the question? -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, Are you using a recent version of SWT? On which OS is that? Which version of Java? Did you set any particular options in the constructor of the JWebBrowser? Cheers, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, I have no idea whether Mac implementation works. Several years ago it was working, then Java changed and it was not working anymore, and recently I heard some people managed to get it to work though I wish this were confirmed. In short: I don't have a Mac so I don't know where that is. One thing for sure: update to a recent SWT version for Mac if you want to increase your chances of getting something that works. Cheers, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, You don't have many options currently. XULRunner is being deprecated by the SWT team, so on Windows you could try Webkit, which for SWT means you need to install Safari and a bit of configuration... I know that the SWT devs were discussing adding alternative Browser engines (true Webkit for example), but I am not sure how far they are with that work. Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, I would answer that question myself if I had a Mac. So, I wish a Mac developper were telling me! If it works now, I wonder what technical work has been done in Java/SWT to make that possible... Cheers, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, Sorry for the late reply, I was very busy with other things in the last months... The WebServer class was created to serve files to the web browser, originally for internal needs. Several ways of serving those files were created, among which loading files from the class path, or loading files from a directory. This leaves you with several options: 1. Unzip the content to disk and load data from an actual location. 2. Add the zip to the classpath, which can work if data is within a sub-directory...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Ramzah, i've placed the addShutdownHook code as the last line of the main method I meant NativeInterface.runEventPump(); should be the last line in main. I don't know if addShutdownHook is still necessary if you add the setDefaultCloseOperation code. As for the exceptions, it is hard to tell. I don't get these on my setup... Hope this helps, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Pete, I checked whether I could find related issues on SWT, and I found this one: https://bugs.eclipse.org/bugs/show_bug.cgi?id=509030 Are those MacBook Pro using a recent version of Mac OS? Cheers, -Christopher

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Ramzah, I took a look at the code you sent me, and the test case you describe works for me (I do get the stack trace, but this is minor). My setup is slightly different though: I use my project directly (not your JAR files). I use SWT 4.3 32bit. JDK is Java 8u121. I'm on Windows 10. Native web browser runtime is IE 11. Flash is 25.0.0.148. I noticed that the code NativeInterface.runEventPump(); is not the last thing of the main method. It is a blocking code, so you should place it after your addShutdownHook...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Daria, Swing (AWT) has its own UI threading model. DJ NativeSwing integrates SWT,...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Martin, Modality has always caused problems. After investigation, the culprit...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi, I am not sure what is wrong. Maybe you perform some actions in native component...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Ramzah, Do you see this exception in the console or does it bubble up in your...

  • Christopher Deckers Christopher Deckers posted a comment on discussion Help

    Hi Andrea, When the main VM shuts down, the spawned VM (that handles native stuff)...

1 >
MongoDB Logo MongoDB