示例#1
0
 // --------------------------------------------------------------------------------
 // Name: Paint
 // Abstract: Override the paint event to draw grid marks
 // --------------------------------------------------------------------------------
 public void paint(Graphics g) {
   super.paint(g);
   try {
     //			CUtilities.DrawGridMarks( this, g );
   } catch (Exception excError) {
     // Display error message
     CUtilities.WriteLog(excError);
   }
 }
示例#2
0
    @Override
    public void paint(Graphics g) {
      if (!SystemInfo.isMac
          || UIUtil
              .isUnderAquaLookAndFeel()) { // avoid rendering problems with non-aqua (alloy) LaFs
                                           // under mac
        // actually, it's a bad idea to globally enable this for dialog graphics since renderers,
        // for example, may not
        // inherit graphics so rendering hints won't be applied and trees or lists may render ugly.
        UIUtil.applyRenderingHints(g);
      }

      super.paint(g);
    }