Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-04-2008, 06:09 PM
Member
 
Join Date: Oct 2008
Posts: 1
spike is on a distinguished road
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
Sponsored Links
  #2 (permalink)  
Old 10-04-2008, 07:06 PM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,225
Norm is on a distinguished road
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
Sponsored Links
Reply


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

vB 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 06:09 AM
OMA standard for data synchronisation - SyncML JavaForums Java Blogs 0 04-22-2008 11:10 AM
Introduction to Standard Widget Toolkit (III) JavaForums Java Blogs 0 12-28-2007 01:11 PM
Sun Java Platform, Standard Edition 6u3 JavaBean Java Announcements 0 10-04-2007 11:10 PM
Help with custom component Falcon1 AWT / Swing 8 07-21-2007 02:39 PM


All times are GMT +3. The time now is 12:21 PM.


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