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


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

Re: How to use getGraphic

From "partoti_ajay" <partoti_ajay@THRWHITE.remove-dii-this>
Subject Re: How to use getGraphic
Message-ID <1165818384.148832.178360@j72g2000cwa.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
References <1165536230.407229.73420@j72g2000cwa.googlegroups.com>
Date 2011-04-27 15:27 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui

I had made something like this

import javax.swing.*;
import java.awt.*;

public class Show extends JApplet
{
     private Graphics g;
     private JPanel p;
     public void init()
     {
          JComponent com = new JComponent();
          com = this.getContentPane();
         g = com.getGraphics();
          g.drawString("Hello how are you",20,20);
     }

    public void paint(Graphics g)
    {}
}

see something! may be you can plot some mistakes

---
 * 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 | Find similar


Thread

How to use getGraphics() "partoti_ajay" <partoti_ajay@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
  Re: How to use getGraphic "Thomas Kellerer" <thomas.kellerer@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
  Re: How to use getGraphic "hiwa" <hiwa@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
  Re: How to use getGraphic "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
    Re: How to use getGraphic "partoti_ajay" <partoti_ajay@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000

csiph-web