Results 1 to 2 of 2
- 10-04-2008, 04:09 PM #1Member
- Join Date
- Oct 2008
- Rep Power
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?
- 10-04-2008, 05:06 PM #2
- By peterdfl in forum New To JavaReplies: 3Last Post: 05-29-2008, 04:09 AM
- By JavaBean in forum Java SoftwareReplies: 0Last Post: 10-04-2007, 09:10 PM
- By Falcon1 in forum AWT / SwingReplies: 8Last Post: 07-21-2007, 12:39 PM