Help with putting a button in an Applet


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Help with putting a button in an Applet

  1. #1
    Join Date
    May 2005
    Posts
    5

    Help with putting a button in an Applet

    Hey all
    I was just wondering how you you go about putting a Button object into an applet? I understand how to handle the event of the Button, i just don't know how to get the Button in the applet

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    You use the applets add(Component cmp) method as the Button is a Component
    descendant. Where the button will show up, and what its gonna look like is
    determined by the LayoutManager (setLayout) you have set for the applet.
    eschew obfuscation

  3. #3
    Join Date
    May 2005
    Posts
    5
    thanks alot man!! i have it all working now thanks!!

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