Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-1200189

paint3DRect set foreground color

XMLWordPrintable

    • 1.0prebeta1
    • sparc
    • solaris_2.4
    • Not verified

      From: ###@###.### (Keith Bornhorst (developer))

      > Q: The following does not work as I would think...
      > public void paint()
      > {
      > Graphics g = new Graphics( this );
      >
      > g.setForeground( Color.lightGray );
      > g.paint3DRect( 70, 240, 510, 41, true, true );
      > g.paint3DRect( 20, 290, 510, 41, true, true );
      >
      > g.dispose();
      > }
      >
      > - The background color of the Window was set to Color.white in the
      > constructor. I would think that the foreground color would would
      > be set to lightGray and stay that way until changed, but the first
      > 3DRect is painted lightGray while the second is black ???

            flar Jim Graham
            ahoffsunw Arthur Hoff (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: