|
-
swing Components
Hello friends,
I have a problem in placing a components.
I have a JPanel whose background is set by backgroundpanel(backgroundpanel
is JPanel in which the image is painted(using graphics)).
So JPanel's background image is set like this.
Now i am adding swing components(JButton,JTextField..) over this JPanel.
JPanel.add(Backgroundpanel);
backgroundpanel.add(jtextfield1);
....
But these swing components are not visible.But if these components are AWT
components then its visible.
How come be overcome.
Light weight component(JButton,JTextField..) is being placed over the lightweightcomponent(JPanel).
Then why is not possible.I need Swing components to be placed.
Excepting ur replies,
with regards,
Sonararahul.
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