Results 1 to 4 of 4
  1. #1
    carderne is offline Senior Member
    Join Date
    Nov 2007
    Posts
    160
    Rep Power
    8

    Default Convert Java program to web-app

    I have a music playing program that I coded in Java and currently run from a .jar file. I'd like to know if it would be very easy to change it to run from a web browser? Is that quite a simply change of just a few basic things, or will it make all sorts of other things different too? For instance all the Swing packages, will they still work?

    Also can I use the standard JDK and standard Netbeans with only Java SE support? Or must I get the Java Web version?

    Sorry if I sound a bit clueless, but I've never worked with the applet side of Java and it's been a while since I touched Java at all, so I've forgotten a bit of the terminology.

  2. #2
    couling is offline Member
    Join Date
    Nov 2010
    Posts
    54
    Rep Power
    0

    Default

    The last time I touched Applets was with Java 1.4.2. But if memory serves you need to package your main class inside an JApplet.

    How easy the conversion is will most likely depend on how you've divided your code. From memory the JApplet can be used in a very simular way to a JFrame but one that's created automatically by the browser. You can still use the same SDK.

    If you've built your GUI as a single JFrame in swing then it should be pretty straight forward.
    ----Signature ----
    Please use [CODE] tags and indent correctly. It really helps when reading your code.

  3. #3
    carderne is offline Senior Member
    Join Date
    Nov 2007
    Posts
    160
    Rep Power
    8

    Default

    Thanks, I'm gonna start giving it a go. My class-code is completely separate from my GUI code, so it shouldn't be too difficult then to repackage the JFrame inside a JApplet.

    If anyone else has tips or anything I'd greatly appreciate it.

  4. #4
    carderne is offline Senior Member
    Join Date
    Nov 2007
    Posts
    160
    Rep Power
    8

Similar Threads

  1. how to convert * into : using java
    By Ricks in forum New To Java
    Replies: 2
    Last Post: 02-02-2010, 05:57 PM
  2. Convert .java to .exe
    By susan in forum New To Java
    Replies: 6
    Last Post: 02-11-2009, 07:47 AM
  3. Convert java to .exe
    By heartysnowy in forum New To Java
    Replies: 13
    Last Post: 11-21-2008, 09:16 AM
  4. Replies: 1
    Last Post: 07-02-2008, 02:58 PM
  5. Convert a program to Applet
    By carl in forum Java Applets
    Replies: 2
    Last Post: 08-09-2007, 10:33 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •