Results 1 to 4 of 4
Thread: Convert Java program to web-app
- 12-04-2010, 02:13 PM #1
Senior Member
- Join Date
- Nov 2007
- Posts
- 160
- Rep Power
- 6
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.
- 12-04-2010, 05:43 PM #2
Member
- Join Date
- Nov 2010
- Posts
- 54
- Rep Power
- 0
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.
- 12-06-2010, 07:57 AM #3
Senior Member
- Join Date
- Nov 2007
- Posts
- 160
- Rep Power
- 6
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.
- 12-08-2010, 06:10 PM #4
Senior Member
- Join Date
- Nov 2007
- Posts
- 160
- Rep Power
- 6
Similar Threads
-
how to convert * into : using java
By Ricks in forum New To JavaReplies: 2Last Post: 02-02-2010, 04:57 PM -
Convert .java to .exe
By susan in forum New To JavaReplies: 6Last Post: 02-11-2009, 06:47 AM -
Convert java to .exe
By heartysnowy in forum New To JavaReplies: 13Last Post: 11-21-2008, 08:16 AM -
Java Program To Convert A Number In To Words With Decimals
By javanewbie in forum New To JavaReplies: 1Last Post: 07-02-2008, 01:58 PM -
Convert a program to Applet
By carl in forum Java AppletsReplies: 2Last Post: 08-09-2007, 09:33 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks