Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-04-2008, 04:09 PM
Member
 
Join Date: Oct 2008
Posts: 1
Rep Power: 0
spike is on a distinguished road
Default Custom painter for standard component
Using the IDE graphical layout tool (Palette?) I have created a UI with many nested components. I have a Tabbed Pane which has standard components in most of the tabs. I want one tab to contain a a Scroller with a component (e.g. a Panel called "foo") with a custom painter and mouse handler.

Everything works except the painting of the Panel called foo. Foo can receive mouse updates, but it just won't paint. I bet I have missed something fundamental.

Is there some model code I can copy? I just can't find an example where a standard component has been overridden with a custom painter. Do I have to create the whole UI programatically, and punt on the graphical layout tool?

Thanks,
Spike
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 10-04-2008, 05:06 PM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,225
Rep Power: 4
Norm is on a distinguished road
Default
Can you post your code for the panel foo? Perhaps with in a small simple program what can be compiled and tested.
What is a "custom painter"?
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
standard deviation and mean for an array peterdfl New To Java 3 05-29-2008 04:09 AM
OMA standard for data synchronisation - SyncML JavaForums Java Blogs 0 04-22-2008 09:10 AM
Introduction to Standard Widget Toolkit (III) JavaForums Java Blogs 0 12-28-2007 11:11 AM
Sun Java Platform, Standard Edition 6u3 JavaBean Java Announcements 0 10-04-2007 09:10 PM
Help with custom component Falcon1 AWT / Swing 8 07-21-2007 12:39 PM


All times are GMT +2. The time now is 03:04 AM.



VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org