-
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...
-
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:-)
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks