Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #2727

Re: Graphics and JVMs

From "sshark" <sshark@THRWHITE.remove-dii-this>
Subject Re: Graphics and JVMs
Message-ID <1194328309.987241.61750@i13g2000prf.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
References <qvuvi3dps7v6eir0q1j6uef4js9nlebmds@4ax.com>
Date 2011-04-27 15:40 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
On Nov 6, 1:31 pm, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
> On Mon, 05 Nov 2007 03:39:38 -0000, ssh...@gmail.com wrote, quoted or
> indirectly quoted someone who said :
>
> >  Graphics g = c.getGraphics();
> >            int w = g.getFontMetrics().stringWidth(message) + 10;
> >            int h = g.getFontMetrics().getHeight() + 4;
>
> >            g.setColor(new Color(0x33, 0xFF, 0xFF, 50));
> >            g.fillRect(5, 5, w, h);
> >            g.setColor(new Color(0x33, 0xFF, 0xFF));
> >            g.drawRect(5, 5, w, h);
> >            g.setColor(Color.BLACK);
> >            g.drawString(message, 8, (5 + h - 4));
> >        }
>
> the indentations are not regular so it is hard to tell, but should
> that code not be living inside some method?
> --
> Roedy Green Canadian Mind Products
> The Java Glossaryhttp://mindprod.com

The indentations are fine on Google Groups.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Graphics and JVMs "sshark" <sshark@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
  Re: Graphics and JVMs "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
    Re: Graphics and JVMs "sshark" <sshark@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
      Re: Graphics and JVMs "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
        Re: Graphics and JVMs "sshark" <sshark@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
          Re: Graphics and JVMs "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
      Re: Graphics and JVMs "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
    Re: Graphics and JVMs "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
  Re: Graphics and JVMs "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
  Re: Graphics and JVMs "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
    Re: Graphics and JVMs "sshark" <sshark@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
      Re: Graphics and JVMs "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
        Re: Graphics and JVMs "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
          Re: Graphics and JVMs "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
            Re: Graphics and JVMs "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000

csiph-web