how to generate applet window


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: how to generate applet window

  1. #1
    Join Date
    Jul 2004
    Posts
    2

    Question how to generate applet window

    hi,

    I don't how to generate applet window in wed. This applet window have File to save/load. Would you give me source code or related java class to let me see API please?????

    thanks
    wilson^^

  2. #2
    Join Date
    Jul 2004
    Posts
    83
    i wrote this in JCreator LE:

    import java.applet.*;

    public class title extends Applet
    {
    public void paint(Grahpics screen)
    {
    //code in here
    }
    }

    umm once you get used to that you can add on features to interact with the mouse..make sure in your html (because applets run in html) that you have the code

    <applet code="filename.class" width=400 height=400></applet>

    It helps if you write your html file in the same file that your .class file is in

    IM me on aim if you have any questions - Sportsdude11751
    They say if you play a Microsoft Windows CD backwards it will play satanic messages. But thats nothing, if you play it forwards it installs Windows.

  3. #3
    Join Date
    Feb 2004
    Posts
    808
    Originally posted by Sportsdude11751
    i wrote this in JCreator LE:

    import java.applet.*;

    public class title extends Applet
    {
    public void paint(Grahpics screen)
    {
    //code in here
    }
    }
    JCreator must be a crock of censored then, because i've never seen an object in the class hierarchy called Grahpics

    i dont know what WED is.. wednesday? hmm
    anyways.. i odnt know how much you know about applets, but i'll tell you for free that they cant save or load anything - that would be a security risk.. so creating a save and load menu in an applet, youre only going to have to grey it out anyway, because it wont work..
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center