Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PaintOn extends java.applet.Applet {
- /** Initializes the applet PaintOn */
- public void init() {
- try {
- java.awt.EventQueue.invokeAndWait(new Runnable() {
- public void run() {
- initComponents();
- }
- });
- } catch (Exception ex) {
- ex.printStackTrace();
- }
- }
- /** This method is called from within the init() method to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- // <editor-fold defaultstate="collapsed" desc="Generated Code">
- private void initComponents() {
- canvas1 = new java.awt.Canvas();
- setName("Form"); // NOI18N
- setLayout(new java.awt.BorderLayout());
- canvas1.setName("canvas1"); // NOI18N
- add(canvas1, java.awt.BorderLayout.CENTER);
- canvas1.getAccessibleContext().setAccessibleParent(null);
- }// </editor-fold>
- // Variables declaration - do not modify
- private java.awt.Canvas canvas1;
- // End of variables declaration
- final void OnRepaint (Graphics g){
- g.drawString("Test", 10,10);
- }
- }
Add Comment
Please, Sign In to add comment