DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  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!!

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links