8471

Swing application on web browser

Question:

I have a big swing application that i have developed. There are several classes that each creates its own JFrame while closing the previous one which called this class. I wish to deploy this into a web browser and understand that i need to convert it to an applet. Do i have to add in code for creating applet in each of these classes? or is there some other way. In my current situation each of the class creates a JFrame which has some buttons which on being clicked will close the current JFrame and instantiate a new class which creates another JFrame. Could you please help me and advice me on how to resolve my problem.

Answer1:

Look into <a href="http://docs.oracle.com/javase/tutorial/deployment/webstart/index.html" rel="nofollow">Java Web Start</a>. This enables you to launch a Swing app from the web without changing a thing.

Answer2:

You can also go to Swing to Ajax by this link <a href="http://www.creamtec.com/products/ajaxswing/solutions/convert_swing_to_ajax.html" rel="nofollow">http://www.creamtec.com/products/ajaxswing/solutions/convert_swing_to_ajax.html</a>

Answer3:

<ol><li>Download creamtec.com-->AjaxSwing application</li> <li>Install this application in your system</li> <li>configure java in SetEnv.sh file and also configure the Ajaxswing application path</li> <li>Presently ajaxswing application launched.</li> <li>AjaxSwing > webapps > lib > paste your jar file and related images also</li> <li>To create configure file in Ajaxswing > config > this configure file name should be same on your package name</li> <li>run ajaxswing application</li> <li>select new</li> <li>type project name</li> <li>add related lib file (The all related jar connectors and jar files)</li> <li>type packagename.mainclass</li> <li>run server</li> <li>The system display the url and also launch in ie</li> </ol>

By G.ArulRaj TVS Group of companies Chennai

Answer4:

I have just used <a href="http://webswing.org/" rel="nofollow">http://webswing.org/</a> Just upload your jar, add your application to webswing.config and and use java 1.6 or 1.7 After that start webswing server and the added application swing window will appear in your browser at <a href="http://localhost:8080/" rel="nofollow">http://localhost:8080/</a> by default

Recommend

  • Wait for Swing to finish updating JProgressBar before continuing
  • Redisplay results list on AutoCompleteExtender through javascript
  • Does Swing come with Calendar and time field components?
  • JPS useBean with HashMap
  • EJB @Schedule issue
  • Threads in jMonkey and Nifty?
  • Cannot instantiate the type Image java?
  • Why “propdp” code snippet doesn't use the nameof operator for the name of the registered proper
  • Is it possible to run an application built on sql server 2008 to run with 2005
  • Android - Call default browser with and redirect to a designated url
  • Persistent stty Settings?
  • Run EF6 Query in separate Thread on WinForm Button Click Event
  • AVCaptureSession VS UIImagePickerController camera preview
  • How to initialize context? [closed]
  • Python adding lots of things to PATH. How do I stop?
  • Accessing the variables from a PHP Anonymous Function
  • CORS with socket.io
  • Primefaces lazy datascroller calling load twice
  • Adding a model to a Marionette CollectionView's collection doesn't trigger onItemAdd callb
  • How to access meteor package name inside package?
  • Rest Services conventions
  • How to use jQuery's $.post() method with async/await and typescript
  • SonarQube: Cannot deactivate rule with missing quality profile
  • Overlapping controls in Windows XP
  • Swing - Get new component under mouseReleased
  • MVC3 Razor - ListBox pre-select not working
  • Setting up SourceTree to merge unity3d scenes with UnityYAMLMerge
  • Atlas images wrong size on iPad iOS 9
  • Unity3D & Android: Difference between “UnityMain” and “main” threads?
  • Reading JSON from a file using C++ REST SDK (Casablanca)
  • FB SDK and cURL: Unknown SSL protocol error in connection to graph.facebook.com:443
  • req.body is undefined - nodejs
  • Symfony2: How to get request parameter
  • Akka Routing: Reply's send to router ends up as dead letters
  • Is there a mandatory requirement to switch app.yaml?
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • python regex in pyparsing
  • Android Google Maps API OnLocationChanged only called once
  • UserPrincipal.Current returns apppool on IIS
  • How can I use threading to 'tick' a timer to be accessed by other threads?