|
-
NetBeans Form Builder and using paintComponent method()?
Hello everyone. I'm a little new to NetBeans so forgive me if this is an easy question but for the life of me I can't seem to figure this out. Anyways, I'm trying to use the form builder in Netbeans and I want to include a JPanel and override the paintComponent method do so some drawing. So, If I include the Standard JPanel I'm not inheriting from it and can't override the paintComponent method. However, if I try and create a JavaBean class that inherits from JPanel and overrides the paintComponent method and add it to the palette... it is invisible when I go to add it to the form.
This is really stumping me as to how I can override the method and yet still use the Form Builder...
Any ideas? I also noticed you could add a AWT Canvas class but I'm confused. Why would you add a Canvas if you don't have the paint method()? Am I missing something obvious or what because it seems like too simple a task to be having such a big problem.
Thanks for your help in advance!
-Shaunt
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