I am writing a web app with java. I am curious to know if there is a way that I can switch between the browser window (running the web app) and a local Java client application window (standard Java window). The Java Window is Oracle Forms.
For example, when i'm running the web app in my internet browser and I click a button. I want the button to execute process to switch from the internet browser window to the local java/forms window. Thus I would need something to execute on the OS level to switch my window.
How could I do this? I'm interested in any idea that would make that usecase work. For example, I probably need to introduce and integrate new technologies with my app? Probably a Java Applet?
Thank you,
Gavin
Related
I want to write a programm which will start Chrome or Firefox browser in full screen with a given URL and will also disable windows keys so that the user can not come out of full screen mode.
User should not be able to do Ctrl-Alt-Del or press windows keys or Alt-Tab etc.
What is the best way to do this? In which programming languages it will be easy to do this?
You should use Winform. WinForms is a graphical (GUI) class library included as a part of Microsoft .NET Framework or Mono Framework, providing a platform to write rich client applications for desktop, laptop, and tablet PCs
I have a java app which is running as an applet. Since plugin support is going away in the browser, we are trying to see how well the applet will run in Java Web Start.
However, our app currently opens secondary browser windows using the appletContext.showDocument(URL, target).
Java Web Start unfortunately ignores the target, so we are not able to name the window (hence also not able to later close the window).
Is there a way, within Web Start, to maintain a handle on all programatically opened windows, so that they can later be programatically closed?
My goal is to open a new window running a flash app from an url (http://curvefever.com/CF_Preloader.swf), and be able to interact with it with java, and do things like take screenshots of the content, and invoke keypresses.
while I could achieve this by opening the flash app in a browser and monitor the browser with selenium (and using an awt robot to take screenshots), I am looking for a better method because I want to avoid the extra lag brought with running the browser, but also because other windows might obstruct the screenshots when the browser window is in the background.
I think Selenium is still a good choice for manipulating the Flash application.
You can use the WebDriver's built in screenshot ability, which only captures the browser, so you won't have to worry about other windows obstructing the one you want to capture.
Take a screenshot with Selenium WebDriver
I have an application which is composed of many JFrame objects (using Java and Netbeans). The 'main' frame has 4 buttons and each button opens another frame. Now my problem is that I want the whole application to be run on the web as a website.
I was considering 3 possible scenarios (from my research):
Use Java Web Start
Convert JFrame to JApplet
Create from scratch a Java web application
I was hoping that maybe someone can give me some help, and guidelines of which option I should opt for.
The quickest option is to modify your application to run as an applet (yes, this would involve making a JApplet from your JFrame). However, you should realize that the Java Applet is considered an outdated technology. Most mobile devices won't run them and even some popular desktop browsers won't (Mac Chrome). What's more, Oracle now requires all applets to be signed in order to run with default security settings. This means purchasing a yearly (~$200) signing certificate.
Java Web Start is not really fundamentally different from applets and will suffer the same issues as above.
Think again about your choice of technology. A Java web application (e.g., Spring MVC) or a JavaScript application (e.g., GWT, JQuery) are better choices.
For deploying Java desktop apps., the best option is usually to install the app. using Java Web Start. JWS works on Windows, OS X & Unix/Linux.
Applet deployment has always been difficult, with weird bugs in particular versions of specific JREs in conjunction with particular browsers. My 'favorite' bug happened in a version of Firefox that triggered an applet to reload when the user scrolled up in the web page.
See also The Use of Multiple JFrames, Good/Bad Practice?
I just wanted to ask, how can we open Java Applet like a program, but not an application integrated in a web page.
You push a button in web page and java program will start, but not a java applet integrated in a web page.
Or like a webpage but without address bar :)
This is possible somehow , right?
Thank you for your time and for your answers!
UPDATE
This would be like a solution: http://orangoo.com/labs/greybox/normal_usage.html
Greybox!
Everything is okey, except you cant drag / move that popup window anywhere. Maybe someone is familar with Greybox and can suggest how this is possible? ( To move popup window)
:)
How about using Java Web Start technology instead?
http://docs.oracle.com/javase/tutorial/deployment/webstart/
Java Web Start software provides the power to launch full-featured
applications with a single click. Users can download and launch
applications, such as a complete spreadsheet program or an Internet
chat client, without going through lengthy installation procedures.
With Java Web Start software, users can launch a Java application by
clicking a link in a web page. The link points to a Java Network
Launch Protocol (JNLP) file, which instructs Java Web Start software
to download, cache, and run the application.