Type: Posts; User: ChandanSharma

Search: Search took 0.20 seconds.

  1. [SOLVED] Re: Java run time error: 'java.lang.NullPointerException"

    //small program for displaying buttons etc. on image existing on frame

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

    class javalang extends JFrame
    JLabel l1,l2,l3;
    JPanel p;
  2. [SOLVED] Re: Java run time error: 'java.lang.NullPointerException"

    i looked at the variables.i got the mistake,was some simple error,i created the object of 'font' but didn't initialize it carelessly using new due to which 'ok' contained null.

    1)if i have...
  3. [SOLVED] Re: Java run time error: 'java.lang.NullPointerException"

    This line contains font "ok.setFont(o)"
    "ok" is a button on 1 of the frames .
    2)o is object of font class
    "Font o=new Font("Lucida...
  4. [SOLVED] Java run time error: 'java.lang.NullPointerException"

    Hi everyone. I am a newbie and a working on a mini project. Need Help.

    a)While running one of my program, I encountered this error (marked in red)
    b) As per output problem lies in line number...
Results 1 to 4 of 4