For Programmers: Free Programming Magazines  


Home > Archive > Java Beans > March 2004 > Display bean differently in runtime from visual editor









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Display bean differently in runtime from visual editor
Mark McKay

2004-03-19, 8:45 pm

I'm designing a bean which extends JComponent and would like to have
it paint differently in the NetBeans form editor than it does when I
execute it at runtime. Is there a way to do this? Perhaps a system
property to check to see if it is running from within an editor?

Another problem I encountered - when I paint the bean using
paintComponent() in the NetBeans for editor, it causes a
StackOverflowError and NetBeans crashes. Am I not supposed to use
this method for repainting, or is this a NetBeans problem?

Mark McKay
--
http://www.kitfox.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com