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: please help me. actually i have starting a small project where i don't understand how to performed ActionListener for mention button. please suggest ..

  1. #1
    Junior Member
    Join Date
    Jun 2013
    Location
    Bangalore
    Posts
    15
    My Mood
    Confused
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default please help me. actually i have starting a small project where i don't understand how to performed ActionListener for mention button. please suggest ..

    String address,createcustomerAddress;
    int inward, issue;

    JFrame fm= new JFrame("Alfa Enterprise");
    JLabel label=new JLabel("MyAddress");
    JLabel label1=new JLabel("CreatCustomerAddress");
    JTextField f= new JTextField(50);
    JTextField f1= new JTextField(60);
    JButton b = new JButton("ADD");
    JButton b1 = new JButton("SAVE");
    JButton b2 = new JButton("Edit");
    JButton b3 = new JButton("Exit");

    Scanner in = new Scanner(System.in);
    public void welCome()
    {
    connect();
    frame();
    }
    public void connect()
    {

    }
    public void frame()
    {
    fm.setSize(600, 700);
    fm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    fm.setVisible(true);

    JPanel p = new JPanel();
    p.add(label);
    p.add(f);
    p.add(label1);
    p.add(f1);
    p.add(b);
    p.add(b1);
    p.add(b2);
    p.add(b3);

    fm.add(p);
    }
    public void
    public static void main(String args[])
    {

    }
    }


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: please help me. actually i have starting a small project where i don't understand how to performed ActionListener for mention button. please suggest ..

    Format your code, that is unreadable.
    Do you have a question?

Similar Threads

  1. I don't understand what's wrong in my programme
    By si3012 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 16th, 2013, 07:58 AM
  2. Don't understand void methods, need help!
    By alex067 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: October 9th, 2012, 07:02 AM
  3. can you suggest me a PROJECT?
    By Samaras in forum Object Oriented Programming
    Replies: 10
    Last Post: August 28th, 2012, 03:21 PM
  4. Simply don't understand minimax...
    By Herah in forum Algorithms & Recursion
    Replies: 3
    Last Post: October 13th, 2011, 12:45 PM
  5. I don't understand what I'm supposed to do
    By dmcettrick in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 11th, 2011, 09:34 AM