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: Java Swing

  1. #1
    Junior Member
    Join Date
    Jan 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java Swing

    Hello Sir,
    i am beginner level.i had some quetion about using swing classes.i develop a simple addition program in Swing Using Three Labels,Three Text Boxes and one command Button.i create all of the label,text and button.but the frame window display only the last components.for example i create three labels.but only last label displayed.what is the problem? and Please Tell Me What is the usage of Action Listener? how it works? tell me the simple Program for using Action Listener?
    Thank u Sir,


  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: Java Swing

    .what is the problem?
    Can you post the code that compiles, executes and shows the problem

    What is the usage of Action Listener?
    see: How to Write an Action Listener (The Java™ Tutorials > Creating a GUI With JFC/Swing > Writing Event Listeners)
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Java Swing
    By kompeh in forum AWT / Java Swing
    Replies: 1
    Last Post: July 14th, 2012, 08:44 AM
  2. Java Swing
    By Rootntootn in forum AWT / Java Swing
    Replies: 2
    Last Post: April 2nd, 2012, 12:50 PM
  3. Java program to Add a JMenu toolbar to a Java Swing application
    By JavaPF in forum Java Swing Tutorials
    Replies: 6
    Last Post: March 6th, 2012, 12:25 PM
  4. How to display a Java method using Java Swing
    By IHeartProgramming in forum What's Wrong With My Code?
    Replies: 14
    Last Post: May 18th, 2011, 01:08 PM
  5. java swing help
    By JM_4ever in forum AWT / Java Swing
    Replies: 3
    Last Post: October 7th, 2009, 06:42 AM