Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: i am new to java plzz help to remove error in this programme

  1. #1
    Junior Member
    Join Date
    Aug 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question i am new to java plzz help to remove error in this programme

    import java.awt.*;
    import java.awt.event.*;
    class MouseEvent1 extend Frame
    {
    private TextField tf;
    public MouseEvent1 (String s)
    {
    super (s);
    this.SetLayout(new FlowLayout());
    tf=new TextField(30);
    this.add MouseMotionListner(new MouseMotionListner());
    add (tf);
    }
    class MyMouseMotionListner extends MouseMotionAdapter
    {
    public void main Dragged (MouseEvent e)
    {
    String s= "Mousedragging="+e.getx()+"y"=+e.gety();
    if.setText(s);
    }
    }
    public static void main (String s[])
    {
    MouseEvent1 c=new MouseEvent1("Testing event....");
    c.setSize(200,200);
    c.show();
    }
    }


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: i am new to java plzz help to remove error in this programme

    Please explain what the error is. If you get an error please post its full contents here.

    Please Edit your post and wrap your code with
    [code=java]
    <YOUR CODE HERE>
    [/code]
    to get highlighting and preserve formatting.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Java programme to colour in a grid
    By why_always_me in forum Java Theory & Questions
    Replies: 20
    Last Post: March 29th, 2012, 06:09 AM
  2. How to call a java programme from an applet?
    By prativa in forum Java Applets
    Replies: 2
    Last Post: December 19th, 2011, 11:01 AM
  3. Java jar programme with a microcontroller
    By bczm8703 in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: September 11th, 2011, 08:01 AM
  4. plz help me with this.....plzz....
    By renny in forum Java Theory & Questions
    Replies: 25
    Last Post: May 18th, 2010, 08:19 AM
  5. access cisco router with java programme
    By vigneswara in forum Java Theory & Questions
    Replies: 1
    Last Post: May 11th, 2010, 01:36 AM