Results 1 to 2 of 2
  1. #1
    spike is offline Member
    Join Date
    Oct 2008
    Rep Power

    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?


  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power


    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"?

Similar Threads

  1. standard deviation and mean for an array
    By peterdfl in forum New To Java
    Replies: 3
    Last Post: 05-29-2008, 04:09 AM
  2. Sun Java Platform, Standard Edition 6u3
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 10-04-2007, 09:10 PM
  3. Help with custom component
    By Falcon1 in forum AWT / Swing
    Replies: 8
    Last Post: 07-21-2007, 12:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts