Layout/on top order


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Layout/on top order

  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,

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