DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2003
    Posts
    36

    Layout/on top order

    Hi

    I'm new to java and have been trying to program a GUI. I have several components siting on a panel and am having some problems understanding Java.

    Is there an order to how items are displayed on the screen? Also, how can I have an item "on-top"?

    It seems that the items are placed on the screen in the reverse order that I want them. That is I created a Shadow, a box (i.e., panel), button, and text area. If the order of my code is text area, button, box shadow all is well. Any other combination and items are missing.

    Thanks...

  2. #2
    Join Date
    Mar 2003
    Posts
    834
    You don't appear to have come across Layout Managers. I suggest you do this tutorial:

    http://java.sun.com/docs/books/tutorial/uiswing/layout/

    Some people find layout managers too complicated and use absolute positioning of componenets e.g. (20, 31).
    ArchAngel.
    O:-)

  3. #3
    Join Date
    Sep 2003
    Posts
    36
    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