Ejemplo n.º 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);
   }
 }
Ejemplo n.º 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);
    }