How do you guys recommend we listen for design time/preview mode? I’m using Beans.isDesignTime() to detect preview mode but if there isn’t an event should I code a timed task into the component that constantly checks this?
I would just check it in the component’s paint method(s). Like the following for a trial expiration notice (overlay):[code]
/* Properties used when Trial Mode expires */
private static TextBlock exptxt = TextUtilities.createTextBlock(“Trial Expired”, new Font(“Dialog”, Font.BOLD, 16), Color.BLACK);
private static Stroke expstr = new BasicStroke(3.0f);