Results 1 to 8 of 8
- 04-17-2009, 03:57 AM #1
convert application to applet in netbeans
I have managed to locate a tutorial that explains in a way that I understand how to create an applet in netbeans.
however I cannot find one that enables you to convert a current completed application in netbeans to an applet.Java Code:http://blogs.sun.com/pc/entry/how_to_create_applet_with
Can anyone suggest any apart from netbeans.
Thanks in advance
-
Does your netbeans application subclass JFrame? If so, re-write it so that it subclasses JPanel (or better, produces a JPanel). Then you can place this JPanel into a JFrame or a JApplet as you desire.
- 04-17-2009, 03:50 PM #3
I have to admit you have lost me, my application is structured using a number of classes with a Main and a Jpanel gui.
Does this answer what you are asking me
We are not actually being taught java, apparently the methodology is more important, education in the uk is so wonderful!
- 04-17-2009, 06:45 PM #4
Senior Member
- Join Date
- Sep 2008
- Posts
- 564
- Rep Power
- 5
i suppose it's a trade off for your class, then. when in class, would you rather learn a specific shortcut to convert a swing app into an applet, or actually learn concepts that will help you organize your thoughts, encourage you to research more, and overall make you a better programmer?
- 04-17-2009, 06:52 PM #5
I would prefer the having some idea of what we are doing rather than just going through the motions however I am trying to pick up more information regarding Java but this is as well as doing the work required.
- 04-17-2009, 08:20 PM #6
Have a method that creates the GUI and returns a JPanel. Have your main class subclass JApplet. Then use init() to add the JPanel to getContentPane() and use main() to add the JPanel to a new JFrame.
Bingo - an applet and an applicationLast edited by OrangeDog; 04-18-2009 at 03:22 AM.
Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
How To Ask Questions The Smart Way
-
Yep, I agree 100% with OrangeDog. Creating your GUI this way will give you loads of flexibility. Shoot you can even place your GUI into the JPanel of another GUI if you so desire.
- 04-18-2009, 03:49 AM #8
Similar Threads
-
Converting an Application to an Applet in NetBeans
By RaefWolfe in forum NetBeansReplies: 1Last Post: 03-27-2009, 05:47 PM -
Convert to Applet
By Urgle in forum New To JavaReplies: 1Last Post: 11-12-2008, 01:15 PM -
Convert the application from 9i to 10g
By rahul999 in forum JDBCReplies: 5Last Post: 09-03-2008, 03:55 PM -
How to convert batch application to server app?
By johann_p in forum New To JavaReplies: 0Last Post: 03-28-2008, 09:39 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