Results 1 to 5 of 5
  1. #1
    aryowap is offline Member
    Join Date
    Jul 2010
    Posts
    2
    Rep Power
    0

    Default Change Applet to Swing

    I have a applet source code. how to change this to swing source?thanks before..
    Attached Files Attached Files

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Is this your code or did you obtain it from an online or other source?

    edit: I looked at the code and it's all AWT code. There's no automatic way to translate this to Swing. Your solution is to study the Swing tutorials, learn Swing and re-code this as a Swing application.

    Much luck!
    Last edited by Fubarable; 07-06-2010 at 08:10 PM.

  3. #3
    aryowap is offline Member
    Join Date
    Jul 2010
    Posts
    2
    Rep Power
    0

    Default

    can anyone help me? I'm confused

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    There's nothing that we can say other than for you to study the tutorials and learn how to code in Swing. I'm not sure what else you are asking of us that is feasible for us to do. No one is going to code this for you.

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,332
    Rep Power
    25

    Default

    Quick and dirty change: Add J as prefix to AWT class names to make them Swing class names. Then fix the compile errors. Then fix the runtime errors.

Similar Threads

  1. Convert THE APPLET CODE TO SWING USING JPANEL
    By jammyjamsticy in forum AWT / Swing
    Replies: 2
    Last Post: 12-22-2011, 09:16 AM
  2. How can I change webpage by applet?
    By fantasyme in forum Java Applets
    Replies: 10
    Last Post: 04-23-2010, 07:24 PM
  3. Replies: 4
    Last Post: 02-22-2009, 06:31 AM
  4. starting a Swing application from an applet
    By FakeRabbit in forum Java Applets
    Replies: 9
    Last Post: 09-21-2008, 07:00 PM
  5. Create Windows, Applet & Swing
    By Eric in forum AWT / Swing
    Replies: 1
    Last Post: 07-05-2007, 06:36 AM

Posting Permissions

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